summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2019-04-20 17:04:59 +0300
committerLauri Ojansivu <x@xet7.org>2019-04-20 17:04:59 +0300
commitc7621f251f70983282aa7d53d4eb6831e1523e6e (patch)
tree988c7e3b1be4dbb1432e9038e765bd2b3b3f1a5f
parenta5122cc0764b57a163c3e8ca3e00e703669a98db (diff)
downloadwekan-c7621f251f70983282aa7d53d4eb6831e1523e6e.tar.gz
wekan-c7621f251f70983282aa7d53d4eb6831e1523e6e.tar.bz2
wekan-c7621f251f70983282aa7d53d4eb6831e1523e6e.zip
Fix release build script. package repos are included to Wekan now.
-rwxr-xr-xreleases/rebuild-release.sh82
1 files changed, 41 insertions, 41 deletions
diff --git a/releases/rebuild-release.sh b/releases/rebuild-release.sh
index 6aa83dd3..30814c73 100755
--- a/releases/rebuild-release.sh
+++ b/releases/rebuild-release.sh
@@ -1,43 +1,43 @@
#!/bin/bash
- echo "Building Wekan."
- cd ~/repos/wekan
- rm -rf packages
- mkdir -p ~/repos/wekan/packages
- cd ~/repos/wekan/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/meteor-useraccounts/core.git meteor-useraccounts-core
- git clone --depth 1 -b master https://github.com/wekan/meteor-accounts-cas.git
- git clone --depth 1 -b master https://github.com/wekan/wekan-ldap.git
- git clone --depth 1 -b master https://github.com/wekan/wekan-scrollbar.git
- git clone --depth 1 -b master https://github.com/wekan/meteor-accounts-oidc.git
- git clone --depth 1 -b master --recurse-submodules https://github.com/wekan/markdown.git
- mv meteor-accounts-oidc/packages/switch_accounts-oidc wekan_accounts-oidc
- mv meteor-accounts-oidc/packages/switch_oidc wekan_oidc
-
- if [[ "$OSTYPE" == "darwin"* ]]; then
- echo "sed at macOS";
- sed -i '' 's/api\.versionsFrom/\/\/api.versionsFrom/' ~/repos/wekan/packages/meteor-useraccounts-core/package.js
- else
- echo "sed at ${OSTYPE}"
- sed -i 's/api\.versionsFrom/\/\/api.versionsFrom/' ~/repos/wekan/packages/meteor-useraccounts-core/package.js
- fi
-
- cd ~/repos/wekan
- rm -rf node_modules
- meteor npm install
- rm -rf .build
- meteor build .build --directory
- cp -f fix-download-unicode/cfs_access-point.txt .build/bundle/programs/server/packages/cfs_access-point.js
- #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
- #cd ~/repos/wekan/.build/bundle/programs/server/npm/node_modules/meteor/npm-bcrypt
- #rm -rf node_modules/bcrypt
- #meteor npm install bcrypt
- cd ~/repos/wekan/.build/bundle/programs/server
- rm -rf node_modules
- meteor npm install
- #meteor npm install bcrypt
- cd ~/repos
- echo Building Wekan Done.
+echo "Building Wekan."
+cd ~/repos/wekan
+#rm -rf packages
+#mkdir -p ~/repos/wekan/packages
+#cd ~/repos/wekan/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/meteor-useraccounts/core.git meteor-useraccounts-core
+#git clone --depth 1 -b master https://github.com/wekan/meteor-accounts-cas.git
+#git clone --depth 1 -b master https://github.com/wekan/wekan-ldap.git
+#git clone --depth 1 -b master https://github.com/wekan/wekan-scrollbar.git
+#git clone --depth 1 -b master https://github.com/wekan/meteor-accounts-oidc.git
+#git clone --depth 1 -b master --recurse-submodules https://github.com/wekan/markdown.git
+#mv meteor-accounts-oidc/packages/switch_accounts-oidc wekan_accounts-oidc
+#mv meteor-accounts-oidc/packages/switch_oidc wekan_oidc
+#
+#if [[ "$OSTYPE" == "darwin"* ]]; then
+# echo "sed at macOS";
+# sed -i '' 's/api\.versionsFrom/\/\/api.versionsFrom/' ~/repos/wekan/packages/meteor-useraccounts-core/package.js
+#else
+# echo "sed at ${OSTYPE}"
+# sed -i 's/api\.versionsFrom/\/\/api.versionsFrom/' ~/repos/wekan/packages/meteor-useraccounts-core/package.js
+#fi
+#
+cd ~/repos/wekan
+rm -rf node_modules
+meteor npm install
+rm -rf .build
+meteor build .build --directory
+cp -f fix-download-unicode/cfs_access-point.txt .build/bundle/programs/server/packages/cfs_access-point.js
+#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
+#cd ~/repos/wekan/.build/bundle/programs/server/npm/node_modules/meteor/npm-bcrypt
+#rm -rf node_modules/bcrypt
+#meteor npm install bcrypt
+cd ~/repos/wekan/.build/bundle/programs/server
+rm -rf node_modules
+meteor npm install
+#meteor npm install bcrypt
+cd ~/repos
+echo Building Wekan Done.