GooseMod / OpenAsar

Open-source alternative of Discord desktop's app.asar
https://openasar.dev
GNU Affero General Public License v3.0
2.54k stars 67 forks source link

OpenAsar not working with Vesktop #176

Closed ayildirim21 closed 8 months ago

ayildirim21 commented 8 months ago

Recently downloaded vesktop via flatpak. Replaced app.asar located at /var/lib/flatpak/app/dev.vencord.Vesktop/x86_64/stable/70a623e0e430953bbd39aac618662b4009459692c82c335b1131f412e4e9b047/files/bin/vesktop/resources/app.asar . Proceeded to launch vesktop with flatpak run dev.vencord.Vesktop and got the following error:

OpenAsar > Init] OpenAsar nightly-4f264d8
A JavaScript error occurred in the main process
Uncaught Exception:
Error: ENOENT: no such file or directory, open '/app/bin/vesktop/resources/build_info.json'
    at Object.openSync (node:fs:603:3)
    at Object.func [as openSync] (node:electron/js2c/asar_bundle:2:2238)
    at Object.readFileSync (node:fs:471:35)
    at t.readFileSync (node:electron/js2c/asar_bundle:2:9777)
    at Object.<anonymous> (/app/bin/vesktop/resources/app.asar/utils/buildInfo.js:1:41)
    at Module._compile (node:internal/modules/cjs/loader:1271:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1326:10)
    at Module.load (node:internal/modules/cjs/loader:1126:32)
    at Module._load (node:internal/modules/cjs/loader:967:12)
    at l._load (node:electron/js2c/asar_bundle:2:13642)
CanadaHonk commented 8 months ago

It only works with the official desktop app.