Skip to content

Commit

Permalink
Add macos arm build quirks to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
soerenbf committed Jan 28, 2025
1 parent 968d3f5 commit e673818
Show file tree
Hide file tree
Showing 3 changed files with 336 additions and 330 deletions.
12 changes: 9 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ PYTHON=python2.7 yarn
On Windows you can run the above through e.g. Git bash, or if you want to run it from the Command Prompt, then
you must add `sh` to your PATH for the proto build to run. You can get `sh` bundled with Git bash.

### MacOS ARM

You'll likely see a lot of errors in the console when installing native dependencies. Ignore these and try to
build and run the application in the next steps to see if the installation was successful.

## Starting Development

Start the app in the `dev` environment.
Expand Down Expand Up @@ -78,13 +83,14 @@ which is only recompiled with a full restart.

## Targeting specific network

To build the application for a specific network you must supply the `TARGET_NET` variable. The value
has to be one of `stagenet`, `testnet`, `protonet`, or `mainnet`, otherwise the build will fail. If `TARGET_NET` is not
To build the application for a specific network you must supply the `TARGET_NET` variable. If `TARGET_NET` is not
set the build will be for `mainnet`. Note that the `TARGET_NET` will be appended to the filenames for
`stagenet` and `testnet`.

Valid networks options are: `stagenet`, `testnet`, `protonet`, or `mainnet`. Default is `mainnet`.

```bash
TARGET_NET=stagenet yarn package
TARGET_NET=testnet yarn package # or any other build/run command
```

## Targeting Ledger emulator (Speculos)
Expand Down
4 changes: 2 additions & 2 deletions app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@
"postinstall": "yarn electron-rebuild install-app-deps"
},
"license": "MIT",
"dependencies": {
"dependencies": {
"@journeyapps/sqlcipher": "^5.2.0",
"@ledgerhq/hw-transport-node-hid-singleton": "^6.28.14",
"@types/ledgerhq__hw-transport-node-hid": "^4.22.2",
"knex": "0.95.5",
"node-abi": "^2.30.0",
"sqlite3": "5.0.0",
"usb": "2.9.0"
},
},
"resolutions": {
"buffer": "^6.0.3"
}
Expand Down
Loading

0 comments on commit e673818

Please sign in to comment.