Skip to content

Commit

Permalink
Merge pull request #244 from jnsgruk/computed-node-version
Browse files Browse the repository at this point in the history
fix: read the correct node version from the package.json
  • Loading branch information
merlijn-sebrechts authored Dec 25, 2023
2 parents c6eb528 + d18e736 commit 99fe892
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,13 @@ parts:
plugin: dump
source: https://github.com/asdf-vm/asdf.git
source-tag: v0.13.1
build-environment:
- NODE_VERSION: 18.15.0
build-packages:
- jq
override-build: |
source "./asdf.sh"
NODE_VERSION="$(curl "https://raw.githubusercontent.com/signalapp/Signal-Desktop/v${SNAPCRAFT_PROJECT_VERSION}/package.json" | jq -r '.engines.node')"
# Install the correct version of nodejs required by Signal-Desktop
asdf plugin add nodejs
asdf install nodejs "$NODE_VERSION"
Expand Down

0 comments on commit 99fe892

Please sign in to comment.