diff --git a/package.json b/package.json index ca5cf49..5767dcc 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,7 @@ "updateMeta": "tsx scripts/utils/updateMeta.mts" }, "dependencies": { - "arrpc": "github:OpenAsar/arrpc#c62ec6a04c8d870530aa6944257fe745f6c59a24", + "arrpc": "github:OpenAsar/arrpc#3898488be9de93165fe05b3077154e0f0d946894", "electron-updater": "^6.2.1" }, "optionalDependencies": { diff --git a/patches/arrpc@3.4.0.patch b/patches/arrpc@3.4.0.patch index 68fb28a..90ceb42 100644 --- a/patches/arrpc@3.4.0.patch +++ b/patches/arrpc@3.4.0.patch @@ -1,5 +1,5 @@ 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 +++ b/src/process/index.js @@ -1,12 +1,7 @@ @@ -16,27 +16,18 @@ index 97ea651..28f0eb5 100644 import * as Natives from './native/index.js'; 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 -index ed94923..3170685 100644 +index ed94923..24deace 100644 --- a/update_db.js +++ b/update_db.js @@ -1,5 +1,5 @@ #!/usr/bin/env node -import { createWriteStream, readFileSync } from 'fs'; -+import { createWriteStream, readFileSync, writeFileSync} from 'fs'; ++import { createWriteStream, readFileSync, writeFileSync } from 'fs'; import { get } from 'https'; 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 newNames = updated.map(x => x.name); console.log(newNames.filter(x => !oldNames.includes(x))); @@ -56,3 +47,4 @@ index ed94923..3170685 100644 + writeFileSync(path, JSON.stringify(updated), 'utf8'); }) }); +\ No newline at end of file diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index e67ad18..bbc8ef5 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -6,7 +6,7 @@ settings: patchedDependencies: arrpc@3.4.0: - hash: biyukfa6dww2wxujy4eyvkhrti + hash: 5y62pyz5uz22dpw2tkbo3xeuo4 path: patches/arrpc@3.4.0.patch importers: @@ -14,8 +14,8 @@ importers: .: dependencies: arrpc: - specifier: github:OpenAsar/arrpc#c62ec6a04c8d870530aa6944257fe745f6c59a24 - version: https://codeload.github.com/OpenAsar/arrpc/tar.gz/c62ec6a04c8d870530aa6944257fe745f6c59a24(patch_hash=biyukfa6dww2wxujy4eyvkhrti) + specifier: github:OpenAsar/arrpc#3898488be9de93165fe05b3077154e0f0d946894 + version: https://codeload.github.com/OpenAsar/arrpc/tar.gz/3898488be9de93165fe05b3077154e0f0d946894(patch_hash=5y62pyz5uz22dpw2tkbo3xeuo4) electron-updater: specifier: ^6.2.1 version: 6.2.1 @@ -775,8 +775,8 @@ packages: resolution: {integrity: sha512-bMxMKAjg13EBSVscxTaYA4mRc5t1UAXa2kXiGTNfZ079HIWXEkKmkgFrh/nJqamaLSrXO5H4WFFkPEaLJWbs3A==} engines: {node: '>= 0.4'} - arrpc@https://codeload.github.com/OpenAsar/arrpc/tar.gz/c62ec6a04c8d870530aa6944257fe745f6c59a24: - resolution: {tarball: 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/3898488be9de93165fe05b3077154e0f0d946894} version: 3.4.0 hasBin: true @@ -3441,7 +3441,7 @@ snapshots: 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: '@develar/schema-utils': 2.6.5 '@electron/notarize': 2.2.1 @@ -3455,7 +3455,7 @@ snapshots: builder-util-runtime: 9.2.4 chromium-pickle-js: 0.2.0 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 electron-builder-squirrel-windows: 24.13.3(dmg-builder@25.0.1) electron-publish: 24.13.1 @@ -3475,7 +3475,7 @@ snapshots: transitivePeerDependencies: - 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: '@develar/schema-utils': 2.6.5 '@electron/notarize': 2.3.2 @@ -3490,7 +3490,7 @@ snapshots: builder-util-runtime: 9.2.5 chromium-pickle-js: 0.2.0 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 electron-builder-squirrel-windows: 24.13.3(dmg-builder@25.0.1) electron-publish: 25.0.1 @@ -3613,7 +3613,7 @@ snapshots: is-array-buffer: 3.0.4 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: ws: 8.18.0 transitivePeerDependencies: @@ -4051,9 +4051,9 @@ snapshots: '@types/react': 17.0.2 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: - 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-runtime: 9.2.5 fs-extra: 10.1.0 @@ -4104,7 +4104,7 @@ snapshots: electron-builder-squirrel-windows@24.13.3(dmg-builder@25.0.1): 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 builder-util: 24.13.1 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)): 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-runtime: 9.2.5 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 is-ci: 3.0.1 lazy-val: 1.0.5