mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 15:30:13 +01:00
Try to fix builds.
This commit is contained in:
parent
d3ca3e25d7
commit
b9b6aef4c8
2 changed files with 21 additions and 9 deletions
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue