refactor: update Node.js to v20

This commit is contained in:
gauthier-th
2024-06-23 13:33:03 +02:00
parent f3e180afb1
commit ea43e3ba1e
7 changed files with 186 additions and 87 deletions

View File

@@ -12,7 +12,7 @@ confinement: strict
architectures:
- build-on: amd64
- build-on: arm64
- build-on: armhf
# - build-on: armhf
parts:
jellyseerr:
@@ -27,12 +27,12 @@ parts:
- automake
- python-gi
- python-gi-dev
- on armhf:
- libatomic1
- build-essential
- automake
- python-gi
- python-gi-dev
# - on armhf:
# - libatomic1
# - build-essential
# - automake
# - python-gi
# - python-gi-dev
source: .
override-pull: |
snapcraftctl pull
@@ -75,7 +75,7 @@ parts:
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
NODE_MAJOR=20
# 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
@@ -97,9 +97,9 @@ parts:
cp -R $SNAPCRAFT_PART_BUILD/node_modules $SNAPCRAFT_PART_INSTALL/
# Remove .github and gitbook as it will fail snap lint
rm -rf $SNAPCRAFT_PART_INSTALL/.github
stage-packages:
- on armhf:
- libatomic1
# stage-packages:
# - on armhf:
# - libatomic1
stage: [.next, ./*]
prime: [.next, ./*]