actually make the patch work & bump arrpc

This commit is contained in:
Kylie C 2024-08-21 22:11:54 -04:00
parent b7d40b3556
commit 5a9a0a6596
3 changed files with 21 additions and 29 deletions

View file

@ -24,7 +24,7 @@
"updateMeta": "tsx scripts/utils/updateMeta.mts" "updateMeta": "tsx scripts/utils/updateMeta.mts"
}, },
"dependencies": { "dependencies": {
"arrpc": "github:OpenAsar/arrpc#c62ec6a04c8d870530aa6944257fe745f6c59a24", "arrpc": "github:OpenAsar/arrpc#3898488be9de93165fe05b3077154e0f0d946894",
"electron-updater": "^6.2.1" "electron-updater": "^6.2.1"
}, },
"optionalDependencies": { "optionalDependencies": {

View file

@ -1,5 +1,5 @@
diff --git a/src/process/index.js b/src/process/index.js diff --git a/src/process/index.js b/src/process/index.js
index 97ea651..28f0eb5 100644 index 97ea651..29e964e 100644
--- a/src/process/index.js --- a/src/process/index.js
+++ b/src/process/index.js +++ b/src/process/index.js
@@ -1,12 +1,7 @@ @@ -1,12 +1,7 @@
@ -16,27 +16,18 @@ index 97ea651..28f0eb5 100644
import * as Natives from './native/index.js'; import * as Natives from './native/index.js';
const Native = Natives[process.platform]; const Native = Natives[process.platform];
@@ -38,7 +33,7 @@ export default class ProcessServer {
const path = _path.toLowerCase().replaceAll('\\', '/');
const toCompare = [];
const splitPath = path.split('/');
- for (let i = 1; i < splitPath.length; i++) {
+ for (let i = 0; i < splitPath.length; i++) {
toCompare.push(splitPath.slice(-i).join('/'));
}
diff --git a/update_db.js b/update_db.js diff --git a/update_db.js b/update_db.js
index ed94923..3170685 100644 index ed94923..24deace 100644
--- a/update_db.js --- a/update_db.js
+++ b/update_db.js +++ b/update_db.js
@@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
#!/usr/bin/env node #!/usr/bin/env node
-import { createWriteStream, readFileSync } from 'fs'; -import { createWriteStream, readFileSync } from 'fs';
+import { createWriteStream, readFileSync, writeFileSync} from 'fs'; +import { createWriteStream, readFileSync, writeFileSync } from 'fs';
import { get } from 'https'; import { get } from 'https';
import { dirname, join } from 'path'; import { dirname, join } from 'path';
@@ -25,5 +25,21 @@ get('https://discord.com/api/v9/applications/detectable', res => { @@ -25,5 +25,19 @@ get('https://discord.com/api/v9/applications/detectable', res => {
const oldNames = current.map(x => x.name); const oldNames = current.map(x => x.name);
const newNames = updated.map(x => x.name); const newNames = updated.map(x => x.name);
console.log(newNames.filter(x => !oldNames.includes(x))); console.log(newNames.filter(x => !oldNames.includes(x)));
@ -56,3 +47,4 @@ index ed94923..3170685 100644
+ writeFileSync(path, JSON.stringify(updated), 'utf8'); + writeFileSync(path, JSON.stringify(updated), 'utf8');
}) })
}); });
\ No newline at end of file

View file

@ -6,7 +6,7 @@ settings:
patchedDependencies: patchedDependencies:
arrpc@3.4.0: arrpc@3.4.0:
hash: biyukfa6dww2wxujy4eyvkhrti hash: 5y62pyz5uz22dpw2tkbo3xeuo4
path: patches/arrpc@3.4.0.patch path: patches/arrpc@3.4.0.patch
importers: importers:
@ -14,8 +14,8 @@ importers:
.: .:
dependencies: dependencies:
arrpc: arrpc:
specifier: github:OpenAsar/arrpc#c62ec6a04c8d870530aa6944257fe745f6c59a24 specifier: github:OpenAsar/arrpc#3898488be9de93165fe05b3077154e0f0d946894
version: https://codeload.github.com/OpenAsar/arrpc/tar.gz/c62ec6a04c8d870530aa6944257fe745f6c59a24(patch_hash=biyukfa6dww2wxujy4eyvkhrti) version: https://codeload.github.com/OpenAsar/arrpc/tar.gz/3898488be9de93165fe05b3077154e0f0d946894(patch_hash=5y62pyz5uz22dpw2tkbo3xeuo4)
electron-updater: electron-updater:
specifier: ^6.2.1 specifier: ^6.2.1
version: 6.2.1 version: 6.2.1
@ -775,8 +775,8 @@ packages:
resolution: {integrity: sha512-bMxMKAjg13EBSVscxTaYA4mRc5t1UAXa2kXiGTNfZ079HIWXEkKmkgFrh/nJqamaLSrXO5H4WFFkPEaLJWbs3A==} resolution: {integrity: sha512-bMxMKAjg13EBSVscxTaYA4mRc5t1UAXa2kXiGTNfZ079HIWXEkKmkgFrh/nJqamaLSrXO5H4WFFkPEaLJWbs3A==}
engines: {node: '>= 0.4'} engines: {node: '>= 0.4'}
arrpc@https://codeload.github.com/OpenAsar/arrpc/tar.gz/c62ec6a04c8d870530aa6944257fe745f6c59a24: arrpc@https://codeload.github.com/OpenAsar/arrpc/tar.gz/3898488be9de93165fe05b3077154e0f0d946894:
resolution: {tarball: https://codeload.github.com/OpenAsar/arrpc/tar.gz/c62ec6a04c8d870530aa6944257fe745f6c59a24} resolution: {tarball: https://codeload.github.com/OpenAsar/arrpc/tar.gz/3898488be9de93165fe05b3077154e0f0d946894}
version: 3.4.0 version: 3.4.0
hasBin: true hasBin: true
@ -3441,7 +3441,7 @@ snapshots:
app-builder-bin@5.0.0-alpha.6: {} app-builder-bin@5.0.0-alpha.6: {}
app-builder-lib@24.13.3(dmg-builder@25.0.1(electron-builder-squirrel-windows@24.13.3(dmg-builder@25.0.1)))(electron-builder-squirrel-windows@24.13.3(dmg-builder@25.0.1)): app-builder-lib@24.13.3(dmg-builder@25.0.1(electron-builder-squirrel-windows@24.13.3))(electron-builder-squirrel-windows@24.13.3(dmg-builder@25.0.1)):
dependencies: dependencies:
'@develar/schema-utils': 2.6.5 '@develar/schema-utils': 2.6.5
'@electron/notarize': 2.2.1 '@electron/notarize': 2.2.1
@ -3455,7 +3455,7 @@ snapshots:
builder-util-runtime: 9.2.4 builder-util-runtime: 9.2.4
chromium-pickle-js: 0.2.0 chromium-pickle-js: 0.2.0
debug: 4.3.5 debug: 4.3.5
dmg-builder: 25.0.1(electron-builder-squirrel-windows@24.13.3(dmg-builder@25.0.1)) dmg-builder: 25.0.1(electron-builder-squirrel-windows@24.13.3)
ejs: 3.1.10 ejs: 3.1.10
electron-builder-squirrel-windows: 24.13.3(dmg-builder@25.0.1) electron-builder-squirrel-windows: 24.13.3(dmg-builder@25.0.1)
electron-publish: 24.13.1 electron-publish: 24.13.1
@ -3475,7 +3475,7 @@ snapshots:
transitivePeerDependencies: transitivePeerDependencies:
- supports-color - supports-color
app-builder-lib@25.0.1(dmg-builder@25.0.1(electron-builder-squirrel-windows@24.13.3(dmg-builder@25.0.1)))(electron-builder-squirrel-windows@24.13.3(dmg-builder@25.0.1)): app-builder-lib@25.0.1(dmg-builder@25.0.1(electron-builder-squirrel-windows@24.13.3))(electron-builder-squirrel-windows@24.13.3(dmg-builder@25.0.1)):
dependencies: dependencies:
'@develar/schema-utils': 2.6.5 '@develar/schema-utils': 2.6.5
'@electron/notarize': 2.3.2 '@electron/notarize': 2.3.2
@ -3490,7 +3490,7 @@ snapshots:
builder-util-runtime: 9.2.5 builder-util-runtime: 9.2.5
chromium-pickle-js: 0.2.0 chromium-pickle-js: 0.2.0
debug: 4.3.5 debug: 4.3.5
dmg-builder: 25.0.1(electron-builder-squirrel-windows@24.13.3(dmg-builder@25.0.1)) dmg-builder: 25.0.1(electron-builder-squirrel-windows@24.13.3)
ejs: 3.1.10 ejs: 3.1.10
electron-builder-squirrel-windows: 24.13.3(dmg-builder@25.0.1) electron-builder-squirrel-windows: 24.13.3(dmg-builder@25.0.1)
electron-publish: 25.0.1 electron-publish: 25.0.1
@ -3613,7 +3613,7 @@ snapshots:
is-array-buffer: 3.0.4 is-array-buffer: 3.0.4
is-shared-array-buffer: 1.0.3 is-shared-array-buffer: 1.0.3
arrpc@https://codeload.github.com/OpenAsar/arrpc/tar.gz/c62ec6a04c8d870530aa6944257fe745f6c59a24(patch_hash=biyukfa6dww2wxujy4eyvkhrti): arrpc@https://codeload.github.com/OpenAsar/arrpc/tar.gz/3898488be9de93165fe05b3077154e0f0d946894(patch_hash=5y62pyz5uz22dpw2tkbo3xeuo4):
dependencies: dependencies:
ws: 8.18.0 ws: 8.18.0
transitivePeerDependencies: transitivePeerDependencies:
@ -4051,9 +4051,9 @@ snapshots:
'@types/react': 17.0.2 '@types/react': 17.0.2
moment: 2.30.1 moment: 2.30.1
dmg-builder@25.0.1(electron-builder-squirrel-windows@24.13.3(dmg-builder@25.0.1)): dmg-builder@25.0.1(electron-builder-squirrel-windows@24.13.3):
dependencies: dependencies:
app-builder-lib: 25.0.1(dmg-builder@25.0.1(electron-builder-squirrel-windows@24.13.3(dmg-builder@25.0.1)))(electron-builder-squirrel-windows@24.13.3(dmg-builder@25.0.1)) app-builder-lib: 25.0.1(dmg-builder@25.0.1(electron-builder-squirrel-windows@24.13.3))(electron-builder-squirrel-windows@24.13.3(dmg-builder@25.0.1))
builder-util: 25.0.1 builder-util: 25.0.1
builder-util-runtime: 9.2.5 builder-util-runtime: 9.2.5
fs-extra: 10.1.0 fs-extra: 10.1.0
@ -4104,7 +4104,7 @@ snapshots:
electron-builder-squirrel-windows@24.13.3(dmg-builder@25.0.1): electron-builder-squirrel-windows@24.13.3(dmg-builder@25.0.1):
dependencies: dependencies:
app-builder-lib: 24.13.3(dmg-builder@25.0.1(electron-builder-squirrel-windows@24.13.3(dmg-builder@25.0.1)))(electron-builder-squirrel-windows@24.13.3(dmg-builder@25.0.1)) app-builder-lib: 24.13.3(dmg-builder@25.0.1(electron-builder-squirrel-windows@24.13.3))(electron-builder-squirrel-windows@24.13.3(dmg-builder@25.0.1))
archiver: 5.3.2 archiver: 5.3.2
builder-util: 24.13.1 builder-util: 24.13.1
fs-extra: 10.1.0 fs-extra: 10.1.0
@ -4114,11 +4114,11 @@ snapshots:
electron-builder@25.0.1(electron-builder-squirrel-windows@24.13.3(dmg-builder@25.0.1)): electron-builder@25.0.1(electron-builder-squirrel-windows@24.13.3(dmg-builder@25.0.1)):
dependencies: dependencies:
app-builder-lib: 25.0.1(dmg-builder@25.0.1(electron-builder-squirrel-windows@24.13.3(dmg-builder@25.0.1)))(electron-builder-squirrel-windows@24.13.3(dmg-builder@25.0.1)) app-builder-lib: 25.0.1(dmg-builder@25.0.1(electron-builder-squirrel-windows@24.13.3))(electron-builder-squirrel-windows@24.13.3(dmg-builder@25.0.1))
builder-util: 25.0.1 builder-util: 25.0.1
builder-util-runtime: 9.2.5 builder-util-runtime: 9.2.5
chalk: 4.1.2 chalk: 4.1.2
dmg-builder: 25.0.1(electron-builder-squirrel-windows@24.13.3(dmg-builder@25.0.1)) dmg-builder: 25.0.1(electron-builder-squirrel-windows@24.13.3)
fs-extra: 10.1.0 fs-extra: 10.1.0
is-ci: 3.0.1 is-ci: 3.0.1
lazy-val: 1.0.5 lazy-val: 1.0.5