diff options
author | Lauri Ojansivu <x@xet7.org> | 2019-08-05 13:55:04 +0300 |
---|---|---|
committer | Lauri Ojansivu <x@xet7.org> | 2019-08-05 13:55:04 +0300 |
commit | b9b6aef4c8626fbe0fbcf7b6b841d2c5140984d5 (patch) | |
tree | 2422bbebc419ce9c4e653791b242ae334d690bb2 | |
parent | d3ca3e25d7a96fda37c8d7c48367c1eb99522392 (diff) | |
download | wekan-b9b6aef4c8626fbe0fbcf7b6b841d2c5140984d5.tar.gz wekan-b9b6aef4c8626fbe0fbcf7b6b841d2c5140984d5.tar.bz2 wekan-b9b6aef4c8626fbe0fbcf7b6b841d2c5140984d5.zip |
Try to fix builds.
-rw-r--r-- | snapcraft.yaml | 28 | ||||
-rwxr-xr-x | stacksmith/user-scripts/build.sh | 2 |
2 files changed, 21 insertions, 9 deletions
diff --git a/snapcraft.yaml b/snapcraft.yaml index 80013a23..88e947f8 100644 --- a/snapcraft.yaml +++ b/snapcraft.yaml @@ -73,10 +73,10 @@ parts: - usr - bin - lib - # stage: - # - $mongo - # prime: - # - $mongo + stage: + - $mongo + prime: + - $mongo wekan: source: . plugin: nodejs @@ -88,8 +88,13 @@ parts: build-packages: - ca-certificates - apt-utils + - bsdtar + - gnupg + - bzip2 ## - python3 - # - gcc++-8 + - g++ + - build-essential + - git # - capnproto - curl - libcurl3 @@ -99,11 +104,16 @@ parts: # - npm ## - python3-pip ## - python3-venv - # stage-packages: - # - libfontconfig1 + stage-packages: + - libfontconfig1 override-build: | + set -o xtrace echo "Cleaning environment first" rm -rf ~/.meteor ~/.npm /usr/local/lib/node_modules + # Meteor installer doesn't work with the default tar binary, so using bsdtar while installing. + # https://github.com/coreos/bugs/issues/1095#issuecomment-350574389 + cp $(which tar) $(which tar)~ + ln -sf $(which bsdtar) $(which tar) # Create the OpenAPI specification rm -rf .build mkdir .build @@ -197,7 +207,7 @@ parts: # cd .. #fi rm -rf package-lock.json .build - meteor add standard-minifier-js --allow-superuser + #meteor add standard-minifier-js --allow-superuser meteor npm install --allow-superuser --unsafe-perm meteor build .build --directory --allow-superuser cp -f fix-download-unicode/cfs_access-point.txt .build/bundle/programs/server/packages/cfs_access-point.js @@ -227,6 +237,8 @@ parts: #rm $SNAPCRAFT_PART_INSTALL/programs/server/npm/node_modules/meteor/rajit_bootstrap3-datepicker/lib/bootstrap-datepicker/node_modules/phantomjs-prebuilt/lib/phantom/bin/phantomjs # rm $SNAPCRAFT_PART_INSTALL/lib/node_modules/node-pre-gyp/node_modules/tar/lib/.mkdir.js.swp # rm $SNAPCRAFT_PART_INSTALL/lib/node_modules/node-gyp/node_modules/tar/lib/.mkdir.js.swp + # Put back the original tar + mv $(which tar)~ $(which tar) organize: README: README.wekan prime: diff --git a/stacksmith/user-scripts/build.sh b/stacksmith/user-scripts/build.sh index d7a18fec..7ed9de79 100755 --- a/stacksmith/user-scripts/build.sh +++ b/stacksmith/user-scripts/build.sh @@ -70,7 +70,7 @@ sudo -u wekan /home/wekan/.meteor/meteor -- help # Build app cd /home/wekan/app meteor=/home/wekan/.meteor/meteor -sudo -u wekan ${meteor} add standard-minifier-js +#sudo -u wekan ${meteor} add standard-minifier-js sudo -u wekan ${meteor} npm install sudo -u wekan ${meteor} build --directory /home/wekan/app_build sudo cp /home/wekan/app/fix-download-unicode/cfs_access-point.txt /home/wekan/app_build/bundle/programs/server/packages/cfs_access-point.js |