build(snap): add architectures to snapcraft.yaml (#2938) [skip ci]

This commit is contained in:
Ryan Cohen
2022-08-18 10:57:40 +09:00
committed by GitHub
parent 17ac5069e5
commit 7a5fab35ff
2 changed files with 7 additions and 56 deletions

View File

@@ -8,6 +8,11 @@ description: >
base: core18
confinement: strict
architectures:
- build-on: amd64
- build-on: arm64
- build-on: armhf
parts:
overseerr:
plugin: nodejs
@@ -37,7 +42,7 @@ parts:
VERSION='v'$(cat package.json | grep 'version' | head -1 | sed 's/.*"\(.*\)"\,/\1/')
if [ "$VERSION" = "v0.1.0" ]; then
SNAP_VERSION=$COMMIT_SHORT
GRADE=devel
GRADE=stable
else
SNAP_VERSION=$VERSION
GRADE=stable
@@ -77,7 +82,7 @@ parts:
prime: [.next, ./*]
apps:
deamon:
daemon:
command: /bin/sh -c "cd $SNAP && node dist/index.js"
daemon: simple
restart-condition: on-failure