Skip to content

Commit

Permalink
build(snap): use nil package and try to setup node in override-build …
Browse files Browse the repository at this point in the history
…step
  • Loading branch information
fallenbagel committed Nov 7, 2023
1 parent e8ee6f9 commit 9ac56a4
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,12 @@ architectures:

parts:
jellyseerr:
plugin: npm
npm-node-version: '18.18.2'
plugin: nil
build-packages:
- git
- ca-certificates
- curl
- gnupg
- on arm64:
- build-essential
- automake
Expand Down Expand Up @@ -67,6 +69,20 @@ parts:
- CYPRESS_INSTALL_BINARY: '0'
override-build: |
set -e
# Install necessary packages
mkdir -p /etc/apt/keyrings
# Add Node.js repository key
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
# Set Node.js version
NODE_MAJOR=18
# Add Node.js repository to sources list
echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list
# Update package sources and install Node.js
apt-get update
apt-get install nodejs -y
# Install Yarn
npm install -g yarn
# Set COMMIT_TAG before the build begins
Expand Down

0 comments on commit 9ac56a4

Please sign in to comment.