diff options
| author | Oskar Nyberg <oskar@mullvad.net> | 2022-04-25 10:24:21 +0200 |
|---|---|---|
| committer | Oskar Nyberg <oskar@mullvad.net> | 2022-04-25 10:24:21 +0200 |
| commit | 410965e0ba1ec6a59dea1e128822dd545cd58ab8 (patch) | |
| tree | 5a29dc36031a90e787e32602d2e5ec17cb8411b3 | |
| parent | d8f763f8330befff480ec696f441092e4900d6f9 (diff) | |
| parent | f525e88a823fe9a493e5e77cf4910693d963bcd1 (diff) | |
| download | mullvadvpn-410965e0ba1ec6a59dea1e128822dd545cd58ab8.tar.xz mullvadvpn-410965e0ba1ec6a59dea1e128822dd545cd58ab8.zip | |
Merge branch 'make-build-script-use-correct-node'
| -rw-r--r-- | README.md | 16 | ||||
| -rwxr-xr-x | build.sh | 2 |
2 files changed, 5 insertions, 13 deletions
@@ -275,29 +275,21 @@ storePassword = keystore-password versions that we target are specified in `package.json` in the `volta` section. Those versions will be used automatically if volta is installed and setup. - To install Volta, run: + To install Volta on Linux and macOS, run: ``` cargo install --git https://github.com/volta-cli/volta volta setup ``` or follow the their instructions: https://github.com/volta-cli/volta. + #### Windows + Install the `msi` hosted here: https://github.com/volta-cli/volta. + If installing Node.js manually then the latest version of npm can be installed by running: ``` npm install -g npm ``` - #### macOS - ```bash - brew install node - ``` - - #### Linux - Just download and unpack the `node-v16.xxxx.tar.xz` tarball and add its `bin` directory to your - `PATH`. - - #### Windows - Download the Node.js installer from the official website. 1. Install Go (ideally version `1.16`) by following the [official instructions](https://golang.org/doc/install). Newer versions may work @@ -45,7 +45,7 @@ function log_info { RUSTC_VERSION=$(rustc --version) CARGO_TARGET_DIR=${CARGO_TARGET_DIR:-"target"} -PRODUCT_VERSION=$(node -p "require('./gui/package.json').version" | sed -Ee 's/\.0//g') +PRODUCT_VERSION=$(cd gui/; node -p "require('./package.json').version" | sed -Ee 's/\.0//g') # If compiler optimization and artifact compression should be turned on or not OPTIMIZE="false" |
