Skip to content

Commit

Permalink
Arm uname
Browse files Browse the repository at this point in the history
  • Loading branch information
NeoTheThird committed Oct 7, 2020
1 parent cbbc4cc commit 1aaedb8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ parts:
echo "updating npm" && npm install npm@latest -g
echo "installing dependencies" && npx cross-env ELECTRON_GET_USE_PROXY=true GLOBAL_AGENT_HTTPS_PROXY=$https_proxy npm install
echo "prerendering" && npm run prerender
[ `uname -m` == "arm64" ] && UBPORTS_ARCH=arm64 || UBPORTS_ARCH=x64
[ `uname -m` == "arm64" ] && UBPORTS_DISTDIR=linux-arm64-unpacked || UBPORTS_DISTDIR=linux-unpacked
[ `uname -m` == "aarch64" ] && UBPORTS_ARCH=arm64 || UBPORTS_ARCH=x64
[ `uname -m` == "aarch64" ] && UBPORTS_DISTDIR=linux-arm64-unpacked || UBPORTS_DISTDIR=linux-unpacked
./build.js -o 'linux' -p 'dir' -a $UBPORTS_ARCH -e '{"package": "snap"}'
mkdir -p $SNAPCRAFT_PART_INSTALL/app
rm -rf $SNAPCRAFT_PART_INSTALL/app/*
Expand Down

0 comments on commit 1aaedb8

Please sign in to comment.