From 0161f19ba7ac63c40933bb4550f5397ddecd3452 Mon Sep 17 00:00:00 2001 From: Lauri Ojansivu Date: Wed, 2 Aug 2023 06:01:00 +0300 Subject: [PATCH] Upgrade WeKan Snap Candidate to Node.js 14.21.4 . Thanks to Meteor and xet7 ! --- snapcraft.yaml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/snapcraft.yaml b/snapcraft.yaml index 4ff510d92..d273dc6e0 100644 --- a/snapcraft.yaml +++ b/snapcraft.yaml @@ -111,6 +111,8 @@ parts: source: . plugin: npm npm-node-version: 14.21.3 + ## Node.js 14.21.4 from Meteor only exists URL below where it's downloaded and installed. + ## It does not exists in that npm-node-version above. #npm-packages: # - node-gyp # - node-pre-gyp @@ -140,7 +142,7 @@ parts: #echo "registry=http://registry.npmjs.org/" > ~/.npmrc #echo "Installing npm, node-gyp, node-pre-gyp, fibers" #npm -g install n --unsafe-perm - #n 14.21.3 + #n 14.21.4 #npm -g install node-gyp --unsafe-perm #npm -g install node-pre-gyp --unsafe-perm #npm -g install fibers --unsafe-perm @@ -185,12 +187,12 @@ parts: #rm fibers-multi.7z #cd ../../../../../../.. # Copy to Snap - wget https://nodejs.org/dist/latest-v14.x/node-v14.21.3-linux-x64.tar.xz - tar -xf node-v14.21.3-linux-x64.tar.xz node-v14.21.3-linux-x64/bin/node - rm node-v14.21.3-linux-x64.tar.xz + wget https://github.com/wekan/node-v14-esm/releases/download/v14.21.4/node-v14.21.4-linux-x64.tar.xz + tar -xf node-v14.21.4-linux-x64.tar.xz node-v14.21.4-linux-x64/bin/node + rm node-v14.21.4-linux-x64.tar.xz mkdir $SNAPCRAFT_PART_INSTALL/bin - cp -p node-v14.21.3-linux-x64/bin/node $SNAPCRAFT_PART_INSTALL/bin/ - rm -rf node-v14.21.3-linux-x64 + cp -p node-v14.21.4-linux-x64/bin/node $SNAPCRAFT_PART_INSTALL/bin/ + rm -rf node-v14.21.4-linux-x64 cp -r .build/bundle/* $SNAPCRAFT_PART_INSTALL/ cp .build/bundle/.node_version.txt $SNAPCRAFT_PART_INSTALL/ rm -f $SNAPCRAFT_PART_INSTALL/lib/node_modules/wekan