2
0
Эх сурвалжийг харах

Try to fix Snap.

Thanks to xet7 !
Lauri Ojansivu 3 жил өмнө
parent
commit
17f8f8f14f
1 өөрчлөгдсөн 10 нэмэгдсэн , 10 устгасан
  1. 10 10
      snapcraft.yaml

+ 10 - 10
snapcraft.yaml

@@ -102,7 +102,7 @@ parts:
     wekan:
     wekan:
         source: .
         source: .
         plugin: npm
         plugin: npm
-        npm-node-version: 14.19.3
+        npm-node-version: 14.20.0
         #npm-packages:
         #npm-packages:
         #    - node-gyp
         #    - node-gyp
         #    - node-pre-gyp
         #    - node-pre-gyp
@@ -132,7 +132,7 @@ parts:
             #echo "registry=http://registry.npmjs.org/" > ~/.npmrc
             #echo "registry=http://registry.npmjs.org/" > ~/.npmrc
             #echo "Installing npm, node-gyp, node-pre-gyp, fibers"
             #echo "Installing npm, node-gyp, node-pre-gyp, fibers"
             #npm -g install n --unsafe-perm
             #npm -g install n --unsafe-perm
-            #n 14.19.3
+            #n 14.20.0
             #npm -g install node-gyp --unsafe-perm
             #npm -g install node-gyp --unsafe-perm
             #npm -g install node-pre-gyp --unsafe-perm
             #npm -g install node-pre-gyp --unsafe-perm
             #npm -g install fibers --unsafe-perm
             #npm -g install fibers --unsafe-perm
@@ -160,9 +160,9 @@ parts:
             # Cleanup
             # Cleanup
             mkdir .build
             mkdir .build
             cd .build
             cd .build
-            wget https://github.com/wekan/wekan/releases/download/v6.28/wekan-6.28-amd64.zip
-            unzip wekan-6.28-amd64.zip
-            rm wekan-6.28-amd64.zip
+            wget https://github.com/wekan/wekan/releases/download/v6.29/wekan-6.29-amd64.zip
+            unzip wekan-6.29-amd64.zip
+            rm wekan-6.29-amd64.zip
             cd ..
             cd ..
             ##cd .build/bundle
             ##cd .build/bundle
             ##find . -type d -name '*-garbage*' | xargs rm -rf
             ##find . -type d -name '*-garbage*' | xargs rm -rf
@@ -177,12 +177,12 @@ parts:
             #rm fibers-multi.7z
             #rm fibers-multi.7z
             #cd ../../../../../../..
             #cd ../../../../../../..
             # Copy to Snap
             # Copy to Snap
-            wget https://nodejs.org/dist/latest-v14.x/node-v14.19.3-linux-x64.tar.xz
-            tar -xf node-v14.19.3-linux-x64.tar.xz node-v14.19.3-linux-x64/bin/node
-            rm node-v14.19.3-linux-x64.tar.xz
+            wget https://nodejs.org/dist/latest-v14.x/node-v14.20.0-linux-x64.tar.xz
+            tar -xf node-v14.20.0-linux-x64.tar.xz node-v14.20.0-linux-x64/bin/node
+            rm node-v14.20.0-linux-x64.tar.xz
             mkdir $SNAPCRAFT_PART_INSTALL/bin
             mkdir $SNAPCRAFT_PART_INSTALL/bin
-            cp -p node-v14.19.3-linux-x64/bin/node $SNAPCRAFT_PART_INSTALL/bin/
-            rm -rf node-v14.19.3-linux-x64
+            cp -p node-v14.20.0-linux-x64/bin/node $SNAPCRAFT_PART_INSTALL/bin/
+            rm -rf node-v14.20.0-linux-x64
             cp -r .build/bundle/* $SNAPCRAFT_PART_INSTALL/
             cp -r .build/bundle/* $SNAPCRAFT_PART_INSTALL/
             cp .build/bundle/.node_version.txt $SNAPCRAFT_PART_INSTALL/
             cp .build/bundle/.node_version.txt $SNAPCRAFT_PART_INSTALL/
             rm -f $SNAPCRAFT_PART_INSTALL/lib/node_modules/wekan
             rm -f $SNAPCRAFT_PART_INSTALL/lib/node_modules/wekan