-
Notifications
You must be signed in to change notification settings - Fork 11.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update snapcraft.yaml * Add node prep script * Make executable * Remove devDependency that caused arm failure. Also removed packaged binary for sharp for arm * dev/null tar stdout. Remove sharp vendor folder only for arm so it will download and build * add missing slash * fix arm check to catch armv7l also * remove /dev/null and verbose flag. * Move extract to new line
- Loading branch information
1 parent
204baf6
commit 445ef8b
Showing
4 changed files
with
35 additions
and
65 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/bin/bash | ||
|
||
node_version="v8.11.3" | ||
|
||
unamem="$(uname -m)" | ||
if [[ $unamem == *aarch64* ]]; then | ||
node_arch="arm64" | ||
elif [[ $unamem == *64* ]]; then | ||
node_arch="x64" | ||
elif [[ $unamem == *86* ]]; then | ||
node_arch="x86" | ||
elif [[ $unamem == *armv6l* ]]; then | ||
node_arch="armv6l" | ||
elif [[ $unamem == *armv7l* ]]; then | ||
node_arch="armv7l" | ||
else | ||
echo "Aborted, unsupported or unknown architecture: $unamem" | ||
return 2 | ||
fi | ||
|
||
|
||
wget https://nodejs.org/dist/$node_version/node-$node_version-linux-$node_arch.tar.xz | ||
tar xf node-$node_version-linux-$node_arch.tar.xz --strip 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters