mirror of
https://github.com/wekan/wekan.git
synced 2025-09-22 01:50:48 +02:00
Try to make release sizes smaller by deleting phantomjs.
Thanks to xet7 !
This commit is contained in:
parent
972e7a9971
commit
1fc3a1db2e
5 changed files with 22 additions and 0 deletions
|
@ -257,6 +257,11 @@ RUN \
|
|||
#cd /home/wekan/app_build/bundle/programs/server/npm/node_modules/meteor/npm-bcrypt && \
|
||||
#gosu wekan:wekan rm -rf node_modules/bcrypt && \
|
||||
#gosu wekan:wekan npm install bcrypt && \
|
||||
#
|
||||
# Delete phantomjs
|
||||
cd /home/wekan/app_build/bundle && \
|
||||
find . -name "*phantomjs*" | xargs rm -rf && \
|
||||
#
|
||||
cd /home/wekan/app_build/bundle/programs/server/ && \
|
||||
gosu wekan:wekan npm install && \
|
||||
#gosu wekan:wekan npm install bcrypt && \
|
||||
|
|
3
releases/delete-phantomjs.sh
Executable file
3
releases/delete-phantomjs.sh
Executable file
|
@ -0,0 +1,3 @@
|
|||
cd ~/repos/wekan/.build
|
||||
find . -name "*phantomjs*" | xargs rm -rf
|
||||
cd ~/repos/wekan
|
7
releases/release-bundle.sh
Normal file
7
releases/release-bundle.sh
Normal file
|
@ -0,0 +1,7 @@
|
|||
cd ~/repos/wekan
|
||||
./rebuild-wekan.sh
|
||||
./releases/delete-phantomjs.sh
|
||||
cd ~/repos/wekan/.build
|
||||
zip -r wekan-$1.zip bundle
|
||||
scp wekan-$1.zip x2:/var/snap/wekan/common/releases.wekan.team/
|
||||
cd ..
|
|
@ -203,6 +203,9 @@ parts:
|
|||
meteor npm install --allow-superuser
|
||||
meteor build .build --directory --allow-superuser
|
||||
cp -f fix-download-unicode/cfs_access-point.txt .build/bundle/programs/server/packages/cfs_access-point.js
|
||||
cd .build
|
||||
find . -name "*phantomjs*" | xargs rm -rf
|
||||
cd ..
|
||||
#Removed binary version of bcrypt because of security vulnerability that is not fixed yet.
|
||||
#https://github.com/wekan/wekan/commit/4b2010213907c61b0e0482ab55abb06f6a668eac
|
||||
#https://github.com/wekan/wekan/commit/7eeabf14be3c63fae2226e561ef8a0c1390c8d3c
|
||||
|
|
|
@ -79,4 +79,8 @@ sudo rm /home/wekan/app_build/bundle/programs/server/npm/node_modules/meteor/raj
|
|||
cd /home/wekan/app_build/bundle/programs/server/
|
||||
sudo npm install
|
||||
sudo chown -R wekan:wekan ./node_modules
|
||||
|
||||
cd /home/wekan/app_build/bundle
|
||||
find . -name "*phantomjs*" | sudo xargs rm -rf
|
||||
|
||||
sudo mv /home/wekan/app_build/bundle /build
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue