Skip to content

Commit

Permalink
Merge branch 'release'
Browse files Browse the repository at this point in the history
  • Loading branch information
live-github-bot[bot] committed Jan 28, 2025
2 parents a9407e8 + a991c2c commit f26a8ef
Show file tree
Hide file tree
Showing 410 changed files with 6,494 additions and 1,096 deletions.
1 change: 1 addition & 0 deletions .github/workflows/bot-nonreg-nitrogen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,4 @@ jobs:
BOT_ENVIRONMENT: production
# We don't run these currencies daily because fees are expensive
BOT_DISABLED_CURRENCIES: bitcoin,ethereum,qtum,decred,cardano,axelar,cosmos,secret_network,avalanche_c_chain,bsc,filecoin,tron,cronos,fantom,boba,telos_evm,polygon_zk_evm,polkadot
BOT_FILTER_FEATURES: send
1 change: 1 addition & 0 deletions .github/workflows/bot-nonreg-oxygen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,4 @@ jobs:
BOT_ENVIRONMENT: production
# We only run these currencies on a weekly basis because fees are expensive
BOT_FILTER_CURRENCIES: qtum,decred,cardano,axelar,cosmos,secret_network,avalanche_c_chain,bsc,filecoin,tron,cronos,fantom,boba,telos_evm,polygon_zk_evm,polkadot
BOT_FILTER_FEATURES: send
4 changes: 4 additions & 0 deletions .github/workflows/bot-testing-nitrogen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ on:
currencies:
description: currency ids to test, separated with commas (,)
required: false
features:
description: features to test(send,sendMax,tokens,staking)
required: false
speculos_websocket:
description: check to use speculos with Websocket
type: boolean
Expand Down Expand Up @@ -48,4 +51,5 @@ jobs:
BOT_ENVIRONMENT: testing
BOT_FILTER_FAMILIES: ${{github.event.inputs.families}}
BOT_FILTER_CURRENCIES: ${{github.event.inputs.currencies}}
BOT_FILTER_FEATURES: ${{github.event.inputs.features}}
SPECULOS_USE_WEBSOCKET: ${{inputs.speculos_websocket}}
2 changes: 2 additions & 0 deletions .github/workflows/build-and-test-pr.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
name: "[PR] Build and Test"
on:
merge_group:
types: [checks_requested]
pull_request:

concurrency:
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/generate-screenshots.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@ jobs:
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1
runs-on: [ledger-live-4xlarge]
steps:
- name: Docker Hub Login
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
- name: generate token
id: generate-token
uses: tibdex/github-app-token@v1
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/release-final-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@ jobs:
- name: commit
run: |
git add .
git commit -m "chore(nightly): :rocket: nightly release"
if [ "$(git status --porcelain --untracked-files=no)" ]; then
git commit -m "chore(nightly): :rocket: nightly release"
fi
- name: authenticate with npm
uses: actions/setup-node@v4
with:
Expand Down
13 changes: 10 additions & 3 deletions .github/workflows/test-mobile-e2e-reusable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@ on:
required: false
type: boolean
default: false
production_firebase:
description: "Target Production Firebase environment"
required: false
type: boolean
default: false

# Uncomment to have log-level: trace on detox run and build
# (cf: apps/ledger-live-mobile/detox.config.js)
Expand Down Expand Up @@ -266,7 +271,9 @@ jobs:
shell: bash
- name: Build Android app for Detox test run
run: |
pnpm mobile e2e:ci -p android -b
pnpm mobile e2e:ci -p android -b $([[ "$PRODUCTION" == "true" ]] && printf %s '--production')
env:
PRODUCTION: ${{ inputs.production_firebase }}
- name: cache android emulator
timeout-minutes: 5
uses: tespkg/actions-cache@v1
Expand Down Expand Up @@ -313,15 +320,15 @@ jobs:
uses: LedgerHQ/ledger-live/tools/actions/composites/setup-e2e-broadcast@develop
with:
enable_broadcast: ${{ inputs.enable_broadcast }}
schedule_cron: ${{ github.event.schedule.cron }}
- name: Run Android Tests
id: detox
run: pnpm mobile e2e:ci -p android -t $([[ "$INPUT_SPECULOS" == "true" ]] && printf %s '--speculos') --shard ${{ matrix.shardIndex }}/${{ matrix.shardTotal }}
run: pnpm mobile e2e:ci -p android -t $([[ "$INPUT_SPECULOS" == "true" ]] && printf %s '--speculos') $([[ "$PRODUCTION" == "true" ]] && printf %s '--production') --shard ${{ matrix.shardIndex }}/${{ matrix.shardTotal }}
timeout-minutes: ${{ env.SPECULOS_RUN && 120 || 45 }}
env:
DETOX_INSTALL_TIMEOUT: 120000
SEED: ${{ secrets.SEED_QAA_B2C }}
INPUT_SPECULOS: ${{ env.SPECULOS_RUN }}
PRODUCTION: ${{ inputs.production_firebase }}
- name: Upload test artifacts
uses: actions/upload-artifact@v4
if: ${{ !cancelled() || steps.detox.outcome == 'cancelled' }}
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/test-mobile-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@ on:
required: false
type: boolean
default: false
production_firebase:
description: "Target Production Firebase environment"
required: false
type: boolean
default: false

# Uncomment to have log-level: trace on detox run and build
# (cf: apps/ledger-live-mobile/detox.config.js)
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/test-ui-e2e-only-desktop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,6 @@ jobs:
uses: LedgerHQ/ledger-live/tools/actions/composites/setup-e2e-broadcast@develop
with:
enable_broadcast: ${{ inputs.enable_broadcast }}
schedule_cron: ${{ github.event.schedule.cron }}

- name: Run playwright tests [Linux => xvfb-run]
id: tests
Expand Down
24 changes: 24 additions & 0 deletions apps/cli/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,29 @@
# @ledgerhq/live-cli

## 24.10.1

### Patch Changes

- Updated dependencies [[`a8e2a6d`](https://github.com/LedgerHQ/ledger-live/commit/a8e2a6df475cea22a70856412dd916d412f46fb8), [`6844189`](https://github.com/LedgerHQ/ledger-live/commit/6844189cfd7121c122b91b4955a7087ab7ab830d), [`f5196c5`](https://github.com/LedgerHQ/ledger-live/commit/f5196c52453b971a3327d09966edb62bb3d6a293), [`14f55a2`](https://github.com/LedgerHQ/ledger-live/commit/14f55a2e3d863abdca7f3b1e8566e49e250eafd2), [`f299d90`](https://github.com/LedgerHQ/ledger-live/commit/f299d90944395800df1dedabdaabfb7ec7691cb8), [`b8dd543`](https://github.com/LedgerHQ/ledger-live/commit/b8dd543dba50abeec088334f060f0a030e776f52), [`3a65633`](https://github.com/LedgerHQ/ledger-live/commit/3a6563309c8cacbd6e9a73e3044b1ff7c3966f87), [`537141a`](https://github.com/LedgerHQ/ledger-live/commit/537141ab549b8dab57d3eb117e875faa67b54f4b)]:
- @ledgerhq/live-common@34.19.0
- @ledgerhq/live-wallet@0.9.0
- @ledgerhq/coin-bitcoin@0.10.0
- @ledgerhq/coin-framework@0.23.0
- @ledgerhq/device-core@0.4.12
- @ledgerhq/live-countervalues@0.2.18

## 24.10.1-next.0

### Patch Changes

- Updated dependencies [[`a8e2a6d`](https://github.com/LedgerHQ/ledger-live/commit/a8e2a6df475cea22a70856412dd916d412f46fb8), [`6844189`](https://github.com/LedgerHQ/ledger-live/commit/6844189cfd7121c122b91b4955a7087ab7ab830d), [`f5196c5`](https://github.com/LedgerHQ/ledger-live/commit/f5196c52453b971a3327d09966edb62bb3d6a293), [`14f55a2`](https://github.com/LedgerHQ/ledger-live/commit/14f55a2e3d863abdca7f3b1e8566e49e250eafd2), [`f299d90`](https://github.com/LedgerHQ/ledger-live/commit/f299d90944395800df1dedabdaabfb7ec7691cb8), [`b8dd543`](https://github.com/LedgerHQ/ledger-live/commit/b8dd543dba50abeec088334f060f0a030e776f52), [`3a65633`](https://github.com/LedgerHQ/ledger-live/commit/3a6563309c8cacbd6e9a73e3044b1ff7c3966f87), [`537141a`](https://github.com/LedgerHQ/ledger-live/commit/537141ab549b8dab57d3eb117e875faa67b54f4b)]:
- @ledgerhq/live-common@34.19.0-next.0
- @ledgerhq/live-wallet@0.9.0-next.0
- @ledgerhq/coin-bitcoin@0.10.0-next.0
- @ledgerhq/coin-framework@0.23.0-next.0
- @ledgerhq/device-core@0.4.12-next.0
- @ledgerhq/live-countervalues@0.2.18-next.0

## 24.10.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion apps/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ledgerhq/live-cli",
"version": "24.10.0",
"version": "24.10.1",
"description": "ledger-live CLI version",
"repository": {
"type": "git",
Expand Down
78 changes: 78 additions & 0 deletions apps/ledger-live-desktop/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,83 @@
# ledger-live-desktop

## 2.97.0

### Minor Changes

- [#8953](https://github.com/LedgerHQ/ledger-live/pull/8953) [`8e68e45`](https://github.com/LedgerHQ/ledger-live/commit/8e68e459a50b5a3a52bec099ee799ed0b82c5ea2) Thanks [@jdabbech-ledger](https://github.com/jdabbech-ledger)! - Fix windows scroll on change device language

- [#8945](https://github.com/LedgerHQ/ledger-live/pull/8945) [`80598ef`](https://github.com/LedgerHQ/ledger-live/commit/80598ef10742e697a5de81cfe34e31d58dcf1aaf) Thanks [@ejaycoleman](https://github.com/ejaycoleman)! - Add token deeplink parameters for Swap

- [#8910](https://github.com/LedgerHQ/ledger-live/pull/8910) [`fcfcd4e`](https://github.com/LedgerHQ/ledger-live/commit/fcfcd4ef1dfa5e2a0ef6ad8aad5d62313cefb5b4) Thanks [@mcayuelas-ledger](https://github.com/mcayuelas-ledger)! - Update Market spec test to handle flacky test on "Bitcoin" search

- [#8935](https://github.com/LedgerHQ/ledger-live/pull/8935) [`6844189`](https://github.com/LedgerHQ/ledger-live/commit/6844189cfd7121c122b91b4955a7087ab7ab830d) Thanks [@Justkant](https://github.com/Justkant)! - fix(wallet-api): only bypass derivation check on LL for ACRE flows

- [#8748](https://github.com/LedgerHQ/ledger-live/pull/8748) [`03c5920`](https://github.com/LedgerHQ/ledger-live/commit/03c59200a4f32a182b8d7f9f3ac5670f0c3d30eb) Thanks [@thesan](https://github.com/thesan)! - Enable ASAR integrity check on MacOS and Windows

- [#8892](https://github.com/LedgerHQ/ledger-live/pull/8892) [`694e041`](https://github.com/LedgerHQ/ledger-live/commit/694e041ff91f4b89165961d524a985418be15203) Thanks [@Wozacosta](https://github.com/Wozacosta)! - feat: make sure all transaction broadcast use the broadcastconfig parameter

- [#8917](https://github.com/LedgerHQ/ledger-live/pull/8917) [`40f3bcc`](https://github.com/LedgerHQ/ledger-live/commit/40f3bcced4a1b0e851047607f9c2311e0e112917) Thanks [@beths-ledger](https://github.com/beths-ledger)! - track all stake programs in analytics

- [#8926](https://github.com/LedgerHQ/ledger-live/pull/8926) [`e0b02b1`](https://github.com/LedgerHQ/ledger-live/commit/e0b02b179cacaf7c386722df4bb793bae9c8b130) Thanks [@beths-ledger](https://github.com/beths-ledger)! - capitalize Ethereum correctly in translations files.

- [#8933](https://github.com/LedgerHQ/ledger-live/pull/8933) [`3a65633`](https://github.com/LedgerHQ/ledger-live/commit/3a6563309c8cacbd6e9a73e3044b1ff7c3966f87) Thanks [@Canestin](https://github.com/Canestin)! - feat: create banner to warn users about potential issues

### Patch Changes

- Updated dependencies [[`7224a7d`](https://github.com/LedgerHQ/ledger-live/commit/7224a7d3e5643fee75575fab74c72a2aca260be6), [`c62cec9`](https://github.com/LedgerHQ/ledger-live/commit/c62cec9a911f41d2383effeb2ea1f92756ce0a09), [`a8e2a6d`](https://github.com/LedgerHQ/ledger-live/commit/a8e2a6df475cea22a70856412dd916d412f46fb8), [`6844189`](https://github.com/LedgerHQ/ledger-live/commit/6844189cfd7121c122b91b4955a7087ab7ab830d), [`f5196c5`](https://github.com/LedgerHQ/ledger-live/commit/f5196c52453b971a3327d09966edb62bb3d6a293), [`14f55a2`](https://github.com/LedgerHQ/ledger-live/commit/14f55a2e3d863abdca7f3b1e8566e49e250eafd2), [`f299d90`](https://github.com/LedgerHQ/ledger-live/commit/f299d90944395800df1dedabdaabfb7ec7691cb8), [`b8dd543`](https://github.com/LedgerHQ/ledger-live/commit/b8dd543dba50abeec088334f060f0a030e776f52), [`3a65633`](https://github.com/LedgerHQ/ledger-live/commit/3a6563309c8cacbd6e9a73e3044b1ff7c3966f87), [`537141a`](https://github.com/LedgerHQ/ledger-live/commit/537141ab549b8dab57d3eb117e875faa67b54f4b)]:
- @ledgerhq/[email protected]
- @ledgerhq/[email protected]
- @ledgerhq/[email protected]
- @ledgerhq/[email protected]
- @ledgerhq/[email protected]
- @ledgerhq/[email protected]
- @ledgerhq/[email protected]
- @ledgerhq/[email protected]
- @ledgerhq/[email protected]
- @ledgerhq/[email protected]
- @ledgerhq/[email protected]
- @ledgerhq/[email protected]
- @ledgerhq/[email protected]

## 2.97.0-next.0

### Minor Changes

- [#8953](https://github.com/LedgerHQ/ledger-live/pull/8953) [`8e68e45`](https://github.com/LedgerHQ/ledger-live/commit/8e68e459a50b5a3a52bec099ee799ed0b82c5ea2) Thanks [@jdabbech-ledger](https://github.com/jdabbech-ledger)! - Fix windows scroll on change device language

- [#8945](https://github.com/LedgerHQ/ledger-live/pull/8945) [`80598ef`](https://github.com/LedgerHQ/ledger-live/commit/80598ef10742e697a5de81cfe34e31d58dcf1aaf) Thanks [@ejaycoleman](https://github.com/ejaycoleman)! - Add token deeplink parameters for Swap

- [#8910](https://github.com/LedgerHQ/ledger-live/pull/8910) [`fcfcd4e`](https://github.com/LedgerHQ/ledger-live/commit/fcfcd4ef1dfa5e2a0ef6ad8aad5d62313cefb5b4) Thanks [@mcayuelas-ledger](https://github.com/mcayuelas-ledger)! - Update Market spec test to handle flacky test on "Bitcoin" search

- [#8935](https://github.com/LedgerHQ/ledger-live/pull/8935) [`6844189`](https://github.com/LedgerHQ/ledger-live/commit/6844189cfd7121c122b91b4955a7087ab7ab830d) Thanks [@Justkant](https://github.com/Justkant)! - fix(wallet-api): only bypass derivation check on LL for ACRE flows

- [#8748](https://github.com/LedgerHQ/ledger-live/pull/8748) [`03c5920`](https://github.com/LedgerHQ/ledger-live/commit/03c59200a4f32a182b8d7f9f3ac5670f0c3d30eb) Thanks [@thesan](https://github.com/thesan)! - Enable ASAR integrity check on MacOS and Windows

- [#8892](https://github.com/LedgerHQ/ledger-live/pull/8892) [`694e041`](https://github.com/LedgerHQ/ledger-live/commit/694e041ff91f4b89165961d524a985418be15203) Thanks [@Wozacosta](https://github.com/Wozacosta)! - feat: make sure all transaction broadcast use the broadcastconfig parameter

- [#8917](https://github.com/LedgerHQ/ledger-live/pull/8917) [`40f3bcc`](https://github.com/LedgerHQ/ledger-live/commit/40f3bcced4a1b0e851047607f9c2311e0e112917) Thanks [@beths-ledger](https://github.com/beths-ledger)! - track all stake programs in analytics

- [#8926](https://github.com/LedgerHQ/ledger-live/pull/8926) [`e0b02b1`](https://github.com/LedgerHQ/ledger-live/commit/e0b02b179cacaf7c386722df4bb793bae9c8b130) Thanks [@beths-ledger](https://github.com/beths-ledger)! - capitalize Ethereum correctly in translations files.

- [#8933](https://github.com/LedgerHQ/ledger-live/pull/8933) [`3a65633`](https://github.com/LedgerHQ/ledger-live/commit/3a6563309c8cacbd6e9a73e3044b1ff7c3966f87) Thanks [@Canestin](https://github.com/Canestin)! - feat: create banner to warn users about potential issues

### Patch Changes

- Updated dependencies [[`7224a7d`](https://github.com/LedgerHQ/ledger-live/commit/7224a7d3e5643fee75575fab74c72a2aca260be6), [`c62cec9`](https://github.com/LedgerHQ/ledger-live/commit/c62cec9a911f41d2383effeb2ea1f92756ce0a09), [`a8e2a6d`](https://github.com/LedgerHQ/ledger-live/commit/a8e2a6df475cea22a70856412dd916d412f46fb8), [`6844189`](https://github.com/LedgerHQ/ledger-live/commit/6844189cfd7121c122b91b4955a7087ab7ab830d), [`f5196c5`](https://github.com/LedgerHQ/ledger-live/commit/f5196c52453b971a3327d09966edb62bb3d6a293), [`14f55a2`](https://github.com/LedgerHQ/ledger-live/commit/14f55a2e3d863abdca7f3b1e8566e49e250eafd2), [`f299d90`](https://github.com/LedgerHQ/ledger-live/commit/f299d90944395800df1dedabdaabfb7ec7691cb8), [`b8dd543`](https://github.com/LedgerHQ/ledger-live/commit/b8dd543dba50abeec088334f060f0a030e776f52), [`3a65633`](https://github.com/LedgerHQ/ledger-live/commit/3a6563309c8cacbd6e9a73e3044b1ff7c3966f87), [`537141a`](https://github.com/LedgerHQ/ledger-live/commit/537141ab549b8dab57d3eb117e875faa67b54f4b)]:
- @ledgerhq/[email protected]
- @ledgerhq/[email protected]
- @ledgerhq/[email protected]
- @ledgerhq/[email protected]
- @ledgerhq/[email protected]
- @ledgerhq/[email protected]
- @ledgerhq/[email protected]
- @ledgerhq/[email protected]
- @ledgerhq/[email protected]
- @ledgerhq/[email protected]
- @ledgerhq/[email protected]
- @ledgerhq/[email protected]
- @ledgerhq/[email protected]

## 2.96.0

### Minor Changes
Expand Down
2 changes: 2 additions & 0 deletions apps/ledger-live-desktop/electron-builder-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ protocols:

beforePack: scripts/beforePack.js
afterSign: scripts/notarize.js
afterPack: scripts/afterPack.js

directories:
buildResources: "build-nightly"
Expand All @@ -18,6 +19,7 @@ mac:
entitlements: build-nightly/mac/entitlements.plist
entitlementsInherit: build-nightly/mac/entitlements.plist
icon: build-nightly/icon.icns
mergeASARs: false
target:
- target: dmg
arch:
Expand Down
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 @@ -11,6 +11,7 @@ mac:
artifactName: ${name}-${version}-${os}.${ext}
category: public.app-category.wallet
# singleArchFiles: "**/*"
mergeASARs: false
target:
- target: dmg
arch:
Expand Down
2 changes: 2 additions & 0 deletions apps/ledger-live-desktop/electron-builder-pre.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,15 @@ protocols:

beforePack: scripts/beforePack.js
afterSign: scripts/notarize.js
afterPack: scripts/afterPack.js

mac:
artifactName: ${name}-${version}-${os}.${ext}
category: public.app-category.wallet
hardenedRuntime: true
entitlements: build/mac/entitlements.plist
entitlementsInherit: build/mac/entitlements.plist
mergeASARs: false
target:
- target: dmg
arch:
Expand Down
2 changes: 2 additions & 0 deletions apps/ledger-live-desktop/electron-builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,15 @@ protocols:

beforePack: scripts/beforePack.js
afterSign: scripts/notarize.js
afterPack: scripts/afterPack.js

mac:
artifactName: ${name}-${version}-${os}.${ext}
category: public.app-category.wallet
hardenedRuntime: true
entitlements: build/mac/entitlements.plist
entitlementsInherit: build/mac/entitlements.plist
mergeASARs: false
target:
- target: dmg
arch:
Expand Down
11 changes: 6 additions & 5 deletions apps/ledger-live-desktop/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"license": "MIT",
"private": true,
"main": "./.webpack/main.bundle.js",
"version": "2.96.0",
"version": "2.97.0",
"scripts": {
"start:prod": "electron ./.webpack/main.bundle.js",
"start": "cross-env NODE_ENV=development node ./tools/main.js",
Expand Down Expand Up @@ -58,6 +58,7 @@
"@ledgerhq/coin-evm": "workspace:^",
"@ledgerhq/coin-filecoin": "workspace:^",
"@ledgerhq/coin-framework": "workspace:^",
"@ledgerhq/cryptoassets": "workspace:^",
"@ledgerhq/devices": "workspace:*",
"@ledgerhq/domain-service": "workspace:^",
"@ledgerhq/errors": "workspace:^",
Expand All @@ -82,7 +83,6 @@
"@ledgerhq/logs": "workspace:^",
"@ledgerhq/react-ui": "workspace:^",
"@ledgerhq/types-cryptoassets": "workspace:^",
"@ledgerhq/cryptoassets": "workspace:^",
"@ledgerhq/types-devices": "workspace:^",
"@ledgerhq/types-live": "workspace:^",
"@sentry/electron": "5.2.0",
Expand All @@ -100,7 +100,7 @@
"chart.js": "2.9.4",
"color": "4.2.3",
"dotenv": "16.4.5",
"electron-app-universal-protocol-client": "1.3.0",
"electron-app-universal-protocol-client": "2.1.1",
"electron-context-menu": "3.6.1",
"electron-store": "8.2.0",
"electron-updater": "6.1.8",
Expand Down Expand Up @@ -160,6 +160,7 @@
"xstate": "4.38.3"
},
"devDependencies": {
"@electron/fuses": "1.8.0",
"@electron/notarize": "2.3.2",
"@jest/globals": "29.7.0",
"@ledgerhq/esbuild-utils": "workspace:*",
Expand Down Expand Up @@ -210,8 +211,8 @@
"chalk": "4.1.2",
"cross-env": "7.0.3",
"debug": "4.3.4",
"electron": "32.0.2",
"electron-builder": "24.13.3",
"electron": "32.2.8",
"electron-builder": "25.1.8",
"electron-devtools-installer": "3.2.1",
"eslint-plugin-jest": "27.9.0",
"eslint-plugin-react": "7.34.1",
Expand Down
23 changes: 23 additions & 0 deletions apps/ledger-live-desktop/scripts/afterPack.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/* eslint-disable @typescript-eslint/no-var-requires */
const path = require("path");
const { flipFuses, FuseVersion, FuseV1Options } = require("@electron/fuses");

exports.default = function (context) {
const { appOutDir, electronPlatformName, packager } = context;
const ext = { darwin: ".app", win32: ".exe" }[electronPlatformName];
if (!ext) return; // ASAR integrity check is only supported on mac and windows

const electronBinaryPath = path.join(appOutDir, packager.appInfo.productFilename + ext);

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,
});
};
Loading

0 comments on commit f26a8ef

Please sign in to comment.