Skip to content

Commit

Permalink
fix(lld): fix the default mac build by signing it
Browse files Browse the repository at this point in the history
(Simply by leaving `CSC_IDENTITY_AUTO_DISCOVER` to true)
  • Loading branch information
thesan committed Jan 7, 2025
1 parent 3d51147 commit e2b45f6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ protocols:
schemes:
- ledgerlive

afterPack: scripts/afterPack.js
beforePack: scripts/beforePack.js
afterPack: scripts/afterPack.js

mac:
artifactName: ${name}-${version}-${os}.${ext}
Expand Down
2 changes: 1 addition & 1 deletion apps/ledger-live-desktop/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"scripts": {
"start:prod": "electron ./.webpack/main.bundle.js",
"start": "cross-env NODE_ENV=development node ./tools/main.js",
"build": "cross-env CSC_IDENTITY_AUTO_DISCOVERY=false STAGING=1 node ./tools/dist --nosign -v",
"build": "cross-env STAGING=1 node ./tools/dist --nonotarize -v",
"build:js": "cross-env NODE_ENV=production node ./tools/main.js build",
"build:testing": "cross-env NODE_ENV=production TESTING=1 node ./tools/main.js build",
"build:staging": "cross-env NODE_ENV=production STAGING=1 node ./tools/main.js build",
Expand Down
7 changes: 3 additions & 4 deletions apps/ledger-live-desktop/tools/dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,8 @@ const buildTasks = args => [
} else if (args.pre) {
commands.push("--config");
commands.push("electron-builder-pre.yml");
} else if (args.nosign) {
commands.push("--config");
commands.push("electron-builder-nosign.yml");
} else if (args.nonotarize) {
commands.push("--config", "electron-builder-nonotarize.yml");
commands.push("-c.afterSign='lodash/noop'");
commands.push("--publish", "never");
}
Expand Down Expand Up @@ -242,7 +241,7 @@ yargs
type: "boolean",
describe: "make it a release build",
})
.option("nosign", {
.option("nonotarize", {
type: "boolean",
})
.option("dirty", {
Expand Down

0 comments on commit e2b45f6

Please sign in to comment.