mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 07:20:12 +01:00
Try to fix double slash on snap #962
This commit is contained in:
parent
37b2771a9d
commit
428465d361
1 changed files with 5 additions and 7 deletions
|
|
@ -72,7 +72,6 @@ parts:
|
||||||
plugin: nodejs
|
plugin: nodejs
|
||||||
node-engine: 4.8.7
|
node-engine: 4.8.7
|
||||||
node-packages:
|
node-packages:
|
||||||
- n
|
|
||||||
- npm@4.6.1
|
- npm@4.6.1
|
||||||
- node-gyp
|
- node-gyp
|
||||||
- node-pre-gyp
|
- node-pre-gyp
|
||||||
|
|
@ -88,8 +87,6 @@ parts:
|
||||||
prepare: |
|
prepare: |
|
||||||
echo "Cleaning environment first"
|
echo "Cleaning environment first"
|
||||||
rm -rf ~/.meteor ~/.npm /usr/local/lib/node_modules
|
rm -rf ~/.meteor ~/.npm /usr/local/lib/node_modules
|
||||||
echo "Installing node"
|
|
||||||
n 4.8.7
|
|
||||||
echo "Applying paxctl fix for alpine linux: https://github.com/wekan/wekan/issues/1303"
|
echo "Applying paxctl fix for alpine linux: https://github.com/wekan/wekan/issues/1303"
|
||||||
paxctl -mC `which node`
|
paxctl -mC `which node`
|
||||||
echo "Installing meteor"
|
echo "Installing meteor"
|
||||||
|
|
@ -98,11 +95,11 @@ parts:
|
||||||
chmod +x install_meteor.sh
|
chmod +x install_meteor.sh
|
||||||
sh install_meteor.sh
|
sh install_meteor.sh
|
||||||
rm install_meteor.sh
|
rm install_meteor.sh
|
||||||
mkdir -p ~/.meteor/packages
|
mkdir packages
|
||||||
cd ~/.meteor/packages
|
cd packages
|
||||||
git clone --depth 1 -b master https://github.com/wekan/flow-router.git kadira-flow-router
|
git clone --depth 1 -b master https://github.com/wekan/flow-router.git kadira-flow-router
|
||||||
git clone --depth 1 -b master https://github.com/meteor-useraccounts/core.git meteor-useraccounts-core
|
git clone --depth 1 -b master https://github.com/meteor-useraccounts/core.git meteor-useraccounts-core
|
||||||
sed -i 's/api\.versionsFrom/\/\/api.versionsFrom/' ~/.meteor/packages/meteor-useraccounts-core/package.js
|
sed -i 's/api\.versionsFrom/\/\/api.versionsFrom/' meteor-useraccounts-core/package.js
|
||||||
cd ..
|
cd ..
|
||||||
build: |
|
build: |
|
||||||
rm -rf package-lock.json .build
|
rm -rf package-lock.json .build
|
||||||
|
|
@ -113,9 +110,10 @@ parts:
|
||||||
sed -i "s|build\/Release\/bson|browser_build\/bson|g" .build/bundle/programs/server/npm/node_modules/meteor/cfs_gridfs/node_modules/mongodb/node_modules/bson/ext/index.js
|
sed -i "s|build\/Release\/bson|browser_build\/bson|g" .build/bundle/programs/server/npm/node_modules/meteor/cfs_gridfs/node_modules/mongodb/node_modules/bson/ext/index.js
|
||||||
cd .build/bundle/programs/server/npm/node_modules/meteor/npm-bcrypt
|
cd .build/bundle/programs/server/npm/node_modules/meteor/npm-bcrypt
|
||||||
rm -rf node_modules/bcrypt
|
rm -rf node_modules/bcrypt
|
||||||
npm install bcrypt
|
meteor npm install --save bcrypt
|
||||||
cd ../../../../
|
cd ../../../../
|
||||||
npm install
|
npm install
|
||||||
|
meteor npm install --save bcrypt
|
||||||
install: |
|
install: |
|
||||||
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/
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue