Skip to content

Commit

Permalink
fix(lld): fix the app build
Browse files Browse the repository at this point in the history
  • Loading branch information
thesan committed Jan 7, 2025
1 parent 2232571 commit 3d51147
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 41 deletions.
1 change: 1 addition & 0 deletions apps/ledger-live-desktop/electron-builder-nosign.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ mac:
artifactName: ${name}-${version}-${os}.${ext}
category: public.app-category.wallet
# singleArchFiles: "**/*"
mergeASARs: false
target:
- target: dmg
arch:
Expand Down
3 changes: 1 addition & 2 deletions apps/ledger-live-desktop/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@
"chart.js": "2.9.4",
"color": "4.2.3",
"dotenv": "16.4.5",
"electron-app-universal-protocol-client": "1.3.0",
"electron-context-menu": "3.6.1",
"electron-store": "8.2.0",
"electron-updater": "6.1.8",
Expand Down Expand Up @@ -211,7 +210,7 @@
"chalk": "4.1.2",
"cross-env": "7.0.3",
"debug": "4.3.4",
"electron": "32.0.2",
"electron": "31.7.6",
"electron-builder": "25.1.8",
"electron-devtools-installer": "3.2.0",
"eslint-plugin-jest": "27.9.0",
Expand Down
6 changes: 6 additions & 0 deletions apps/ledger-live-desktop/scripts/afterPack.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,13 @@ exports.default = function (context) {

return flipFuses(electronBinaryPath, {
version: FuseVersion.V1,
[FuseV1Options.RunAsNode]: true,
[FuseV1Options.EnableCookieEncryption]: false,
[FuseV1Options.EnableNodeOptionsEnvironmentVariable]: true,
[FuseV1Options.EnableNodeCliInspectArguments]: true,
[FuseV1Options.EnableEmbeddedAsarIntegrityValidation]: true,
[FuseV1Options.OnlyLoadAppFromAsar]: true,
[FuseV1Options.LoadBrowserProcessSpecificV8Snapshot]: false,
[FuseV1Options.GrantFileProtocolExtraPrivileges]: true,
});
};
24 changes: 12 additions & 12 deletions apps/ledger-live-desktop/src/main/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import debounce from "lodash/debounce";
import sentry from "~/sentry/main";
import { SettingsState } from "~/renderer/reducers/settings";
import { User } from "~/renderer/storage";
import electronAppUniversalProtocolClient from "electron-app-universal-protocol-client";
// import electronAppUniversalProtocolClient from "electron-app-universal-protocol-client";

Store.initRenderer();

Expand Down Expand Up @@ -168,18 +168,18 @@ app.on("ready", async () => {
}, 300),
);

if (__DEV__) {
electronAppUniversalProtocolClient.on("request", requestUrl => {
// Handle the request
const win = getMainWindow();
if (win) win.webContents.send("deep-linking", requestUrl);
});
// if (__DEV__) {
// electronAppUniversalProtocolClient.on("request", requestUrl => {
// // Handle the request
// const win = getMainWindow();
// if (win) win.webContents.send("deep-linking", requestUrl);
// });

await electronAppUniversalProtocolClient.initialize({
protocol: "ledgerlive",
mode: "development",
});
}
// await electronAppUniversalProtocolClient.initialize({
// protocol: "ledgerlive",
// mode: "development",
// });
// }

await clearSessionCache(window.webContents.session);
});
Expand Down
32 changes: 5 additions & 27 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 3d51147

Please sign in to comment.