mirror of
https://github.com/wekan/wekan.git
synced 2025-09-22 01:50:48 +02:00
Use Meteor 1.6.0.1 dependencies on Snap.
Thanks to xet7 !
This commit is contained in:
parent
b9a25ecfac
commit
74a4b28313
13 changed files with 5423 additions and 63 deletions
18
.meteor-1.6-snap/.meteor/.finished-upgraders
Normal file
18
.meteor-1.6-snap/.meteor/.finished-upgraders
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
# This file contains information which helps Meteor properly upgrade your
|
||||||
|
# app when you run 'meteor update'. You should check it into version control
|
||||||
|
# with your project.
|
||||||
|
|
||||||
|
notices-for-0.9.0
|
||||||
|
notices-for-0.9.1
|
||||||
|
0.9.4-platform-file
|
||||||
|
notices-for-facebook-graph-api-2
|
||||||
|
1.2.0-standard-minifiers-package
|
||||||
|
1.2.0-meteor-platform-split
|
||||||
|
1.2.0-cordova-changes
|
||||||
|
1.2.0-breaking-changes
|
||||||
|
1.3.0-split-minifiers-package
|
||||||
|
1.3.5-remove-old-dev-bundle-link
|
||||||
|
1.4.0-remove-old-dev-bundle-link
|
||||||
|
1.4.1-add-shell-server-package
|
||||||
|
1.4.3-split-account-service-packages
|
||||||
|
1.5-add-dynamic-import-package
|
2
.meteor-1.6-snap/.meteor/.gitignore
vendored
Normal file
2
.meteor-1.6-snap/.meteor/.gitignore
vendored
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
dev_bundle
|
||||||
|
local
|
7
.meteor-1.6-snap/.meteor/.id
Normal file
7
.meteor-1.6-snap/.meteor/.id
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
# This file contains a token that is unique to your project.
|
||||||
|
# Check it into your repository along with the rest of this directory.
|
||||||
|
# It can be used for purposes such as:
|
||||||
|
# - ensuring you don't accidentally deploy one app on top of another
|
||||||
|
# - providing package authors with aggregated statistics
|
||||||
|
|
||||||
|
dvyihgykyzec6y1dpg
|
0
.meteor-1.6-snap/.meteor/cordova-plugins
Normal file
0
.meteor-1.6-snap/.meteor/cordova-plugins
Normal file
93
.meteor-1.6-snap/.meteor/packages
Normal file
93
.meteor-1.6-snap/.meteor/packages
Normal file
|
@ -0,0 +1,93 @@
|
||||||
|
# Meteor packages used by this project, one per line.
|
||||||
|
#
|
||||||
|
# 'meteor add' and 'meteor remove' will edit this file for you,
|
||||||
|
# but you can also edit it by hand.
|
||||||
|
|
||||||
|
meteor-base@1.2.0
|
||||||
|
|
||||||
|
# Build system
|
||||||
|
ecmascript
|
||||||
|
stylus@2.513.13
|
||||||
|
standard-minifier-css@1.3.5
|
||||||
|
standard-minifier-js@2.2.0
|
||||||
|
mquandalle:jade
|
||||||
|
|
||||||
|
# Polyfills
|
||||||
|
es5-shim@4.6.15
|
||||||
|
|
||||||
|
# Collections
|
||||||
|
aldeed:collection2
|
||||||
|
cfs:standard-packages
|
||||||
|
cottz:publish-relations
|
||||||
|
dburles:collection-helpers
|
||||||
|
idmontie:migrations
|
||||||
|
matb33:collection-hooks
|
||||||
|
matteodem:easy-search
|
||||||
|
mongo@1.3.1
|
||||||
|
mquandalle:collection-mutations
|
||||||
|
|
||||||
|
# Account system
|
||||||
|
kenton:accounts-sandstorm
|
||||||
|
service-configuration@1.0.11
|
||||||
|
useraccounts:unstyled
|
||||||
|
useraccounts:flow-routing
|
||||||
|
wekan-ldap
|
||||||
|
wekan-accounts-cas
|
||||||
|
wekan-accounts-oidc
|
||||||
|
|
||||||
|
# Utilities
|
||||||
|
check@1.2.5
|
||||||
|
jquery@1.11.10
|
||||||
|
random@1.0.10
|
||||||
|
reactive-dict@1.2.0
|
||||||
|
session@1.1.7
|
||||||
|
tracker@1.1.3
|
||||||
|
underscore@1.0.10
|
||||||
|
3stack:presence
|
||||||
|
alethes:pages
|
||||||
|
arillo:flow-router-helpers
|
||||||
|
audit-argument-checks@1.0.7
|
||||||
|
kadira:blaze-layout
|
||||||
|
kadira:dochead
|
||||||
|
meteorhacks:picker
|
||||||
|
meteorhacks:subs-manager
|
||||||
|
mquandalle:autofocus
|
||||||
|
ongoworks:speakingurl
|
||||||
|
raix:handlebar-helpers
|
||||||
|
tap:i18n
|
||||||
|
http@1.3.0
|
||||||
|
|
||||||
|
# UI components
|
||||||
|
blaze
|
||||||
|
reactive-var@1.0.11
|
||||||
|
fortawesome:fontawesome
|
||||||
|
mousetrap:mousetrap
|
||||||
|
mquandalle:jquery-textcomplete
|
||||||
|
mquandalle:jquery-ui-drag-drop-sort
|
||||||
|
mquandalle:mousetrap-bindglobal
|
||||||
|
peerlibrary:blaze-components@=0.15.1
|
||||||
|
templates:tabs
|
||||||
|
verron:autosize
|
||||||
|
simple:json-routes
|
||||||
|
rajit:bootstrap3-datepicker
|
||||||
|
shell-server@0.3.0
|
||||||
|
simple:rest-accounts-password
|
||||||
|
useraccounts:core
|
||||||
|
email@1.2.3
|
||||||
|
horka:swipebox
|
||||||
|
dynamic-import@0.2.0
|
||||||
|
staringatlights:fast-render
|
||||||
|
|
||||||
|
accounts-password@1.5.0
|
||||||
|
cfs:gridfs
|
||||||
|
rzymek:fullcalendar
|
||||||
|
momentjs:moment@2.22.2
|
||||||
|
browser-policy-framing
|
||||||
|
mquandalle:moment
|
||||||
|
msavin:usercache
|
||||||
|
wekan-scrollbar
|
||||||
|
mquandalle:perfect-scrollbar
|
||||||
|
mdg:meteor-apm-agent
|
||||||
|
meteorhacks:unblock
|
||||||
|
lucasantoniassi:accounts-lockout
|
||||||
|
wekan-markdown
|
2
.meteor-1.6-snap/.meteor/platforms
Normal file
2
.meteor-1.6-snap/.meteor/platforms
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
server
|
||||||
|
browser
|
1
.meteor-1.6-snap/.meteor/release
Normal file
1
.meteor-1.6-snap/.meteor/release
Normal file
|
@ -0,0 +1 @@
|
||||||
|
METEOR@1.6.0.1
|
189
.meteor-1.6-snap/.meteor/versions
Normal file
189
.meteor-1.6-snap/.meteor/versions
Normal file
|
@ -0,0 +1,189 @@
|
||||||
|
3stack:presence@1.1.2
|
||||||
|
accounts-base@1.4.0
|
||||||
|
accounts-oauth@1.1.15
|
||||||
|
accounts-password@1.5.0
|
||||||
|
aldeed:collection2@2.10.0
|
||||||
|
aldeed:collection2-core@1.2.0
|
||||||
|
aldeed:schema-deny@1.1.0
|
||||||
|
aldeed:schema-index@1.1.1
|
||||||
|
aldeed:simple-schema@1.5.3
|
||||||
|
alethes:pages@1.8.6
|
||||||
|
allow-deny@1.1.0
|
||||||
|
arillo:flow-router-helpers@0.5.2
|
||||||
|
audit-argument-checks@1.0.7
|
||||||
|
autoupdate@1.3.12
|
||||||
|
babel-compiler@6.24.7
|
||||||
|
babel-runtime@1.1.1
|
||||||
|
base64@1.0.10
|
||||||
|
binary-heap@1.0.10
|
||||||
|
blaze@2.3.2
|
||||||
|
blaze-tools@1.0.10
|
||||||
|
boilerplate-generator@1.3.1
|
||||||
|
browser-policy-common@1.0.11
|
||||||
|
browser-policy-framing@1.1.0
|
||||||
|
caching-compiler@1.1.9
|
||||||
|
caching-html-compiler@1.1.2
|
||||||
|
callback-hook@1.0.10
|
||||||
|
cfs:access-point@0.1.49
|
||||||
|
cfs:base-package@0.0.30
|
||||||
|
cfs:collection@0.5.5
|
||||||
|
cfs:collection-filters@0.2.4
|
||||||
|
cfs:data-man@0.0.6
|
||||||
|
cfs:file@0.1.17
|
||||||
|
cfs:gridfs@0.0.34
|
||||||
|
cfs:http-methods@0.0.32
|
||||||
|
cfs:http-publish@0.0.13
|
||||||
|
cfs:power-queue@0.9.11
|
||||||
|
cfs:reactive-list@0.0.9
|
||||||
|
cfs:reactive-property@0.0.4
|
||||||
|
cfs:standard-packages@0.5.9
|
||||||
|
cfs:storage-adapter@0.2.3
|
||||||
|
cfs:tempstore@0.1.5
|
||||||
|
cfs:upload-http@0.0.20
|
||||||
|
cfs:worker@0.1.4
|
||||||
|
check@1.2.5
|
||||||
|
chuangbo:cookie@1.1.0
|
||||||
|
coffeescript@1.12.7_3
|
||||||
|
coffeescript-compiler@1.12.7_3
|
||||||
|
cottz:publish-relations@2.0.8
|
||||||
|
dburles:collection-helpers@1.1.0
|
||||||
|
ddp@1.4.0
|
||||||
|
ddp-client@2.2.0
|
||||||
|
ddp-common@1.3.0
|
||||||
|
ddp-rate-limiter@1.0.7
|
||||||
|
ddp-server@2.1.1
|
||||||
|
deps@1.0.12
|
||||||
|
diff-sequence@1.0.7
|
||||||
|
dynamic-import@0.2.1
|
||||||
|
ecmascript@0.9.0
|
||||||
|
ecmascript-runtime@0.5.0
|
||||||
|
ecmascript-runtime-client@0.5.0
|
||||||
|
ecmascript-runtime-server@0.5.0
|
||||||
|
ejson@1.1.0
|
||||||
|
email@1.2.3
|
||||||
|
es5-shim@4.6.15
|
||||||
|
fastclick@1.0.13
|
||||||
|
fortawesome:fontawesome@4.7.0
|
||||||
|
geojson-utils@1.0.10
|
||||||
|
horka:swipebox@1.0.2
|
||||||
|
hot-code-push@1.0.4
|
||||||
|
html-tools@1.0.11
|
||||||
|
htmljs@1.0.11
|
||||||
|
http@1.3.0
|
||||||
|
id-map@1.0.9
|
||||||
|
idmontie:migrations@1.0.3
|
||||||
|
jquery@1.11.10
|
||||||
|
kadira:blaze-layout@2.3.0
|
||||||
|
kadira:dochead@1.5.0
|
||||||
|
kadira:flow-router@2.12.1
|
||||||
|
kenton:accounts-sandstorm@0.7.0
|
||||||
|
lamhieu:meteorx@2.0.1
|
||||||
|
launch-screen@1.1.1
|
||||||
|
livedata@1.0.18
|
||||||
|
localstorage@1.2.0
|
||||||
|
logging@1.1.19
|
||||||
|
lucasantoniassi:accounts-lockout@1.0.0
|
||||||
|
matb33:collection-hooks@0.8.4
|
||||||
|
matteodem:easy-search@1.6.4
|
||||||
|
mdg:meteor-apm-agent@3.1.2
|
||||||
|
mdg:validation-error@0.5.1
|
||||||
|
meteor@1.8.0
|
||||||
|
meteor-base@1.2.0
|
||||||
|
meteor-platform@1.2.6
|
||||||
|
meteorhacks:aggregate@1.3.0
|
||||||
|
meteorhacks:collection-utils@1.2.0
|
||||||
|
meteorhacks:meteorx@1.4.1
|
||||||
|
meteorhacks:picker@1.0.3
|
||||||
|
meteorhacks:subs-manager@1.6.4
|
||||||
|
meteorhacks:unblock@1.1.0
|
||||||
|
meteorspark:util@0.2.0
|
||||||
|
minifier-css@1.2.16
|
||||||
|
minifier-js@2.2.2
|
||||||
|
minifiers@1.1.8-faster-rebuild.0
|
||||||
|
minimongo@1.4.3
|
||||||
|
mobile-status-bar@1.0.14
|
||||||
|
modules@0.11.0
|
||||||
|
modules-runtime@0.9.1
|
||||||
|
momentjs:moment@2.22.2
|
||||||
|
mongo@1.3.1
|
||||||
|
mongo-dev-server@1.1.0
|
||||||
|
mongo-id@1.0.6
|
||||||
|
mongo-livedata@1.0.12
|
||||||
|
mousetrap:mousetrap@1.4.6_1
|
||||||
|
mquandalle:autofocus@1.0.0
|
||||||
|
mquandalle:collection-mutations@0.1.0
|
||||||
|
mquandalle:jade@0.4.9
|
||||||
|
mquandalle:jade-compiler@0.4.5
|
||||||
|
mquandalle:jquery-textcomplete@0.8.0_1
|
||||||
|
mquandalle:jquery-ui-drag-drop-sort@0.2.0
|
||||||
|
mquandalle:moment@1.0.1
|
||||||
|
mquandalle:mousetrap-bindglobal@0.0.1
|
||||||
|
mquandalle:perfect-scrollbar@0.6.5_2
|
||||||
|
msavin:usercache@1.0.0
|
||||||
|
npm-bcrypt@0.9.3
|
||||||
|
npm-mongo@2.2.33
|
||||||
|
oauth@1.2.1
|
||||||
|
oauth2@1.2.0
|
||||||
|
observe-sequence@1.0.16
|
||||||
|
ongoworks:speakingurl@1.1.0
|
||||||
|
ordered-dict@1.0.9
|
||||||
|
peerlibrary:assert@0.2.5
|
||||||
|
peerlibrary:base-component@0.16.0
|
||||||
|
peerlibrary:blaze-components@0.15.1
|
||||||
|
peerlibrary:computed-field@0.7.0
|
||||||
|
peerlibrary:reactive-field@0.3.0
|
||||||
|
percolate:synced-cron@1.1.1
|
||||||
|
promise@0.10.0
|
||||||
|
raix:eventemitter@0.1.3
|
||||||
|
raix:handlebar-helpers@0.2.5
|
||||||
|
rajit:bootstrap3-datepicker@1.7.1
|
||||||
|
random@1.0.10
|
||||||
|
rate-limit@1.0.8
|
||||||
|
reactive-dict@1.2.0
|
||||||
|
reactive-var@1.0.11
|
||||||
|
reload@1.1.11
|
||||||
|
retry@1.0.9
|
||||||
|
routepolicy@1.0.12
|
||||||
|
rzymek:fullcalendar@3.8.0
|
||||||
|
service-configuration@1.0.11
|
||||||
|
session@1.1.7
|
||||||
|
sha@1.0.9
|
||||||
|
shell-server@0.3.1
|
||||||
|
simple:authenticate-user-by-token@1.0.1
|
||||||
|
simple:json-routes@2.1.0
|
||||||
|
simple:rest-accounts-password@1.1.2
|
||||||
|
simple:rest-bearer-token-parser@1.0.1
|
||||||
|
simple:rest-json-error-handler@1.0.1
|
||||||
|
softwarerero:accounts-t9n@1.3.11
|
||||||
|
spacebars@1.0.15
|
||||||
|
spacebars-compiler@1.1.3
|
||||||
|
srp@1.0.10
|
||||||
|
standard-minifier-css@1.3.5
|
||||||
|
standard-minifier-js@2.2.3
|
||||||
|
staringatlights:fast-render@2.16.5
|
||||||
|
staringatlights:inject-data@2.0.5
|
||||||
|
stylus@2.513.13
|
||||||
|
tap:i18n@1.8.2
|
||||||
|
templates:tabs@2.3.0
|
||||||
|
templating@1.3.2
|
||||||
|
templating-compiler@1.3.3
|
||||||
|
templating-runtime@1.3.2
|
||||||
|
templating-tools@1.1.2
|
||||||
|
tracker@1.1.3
|
||||||
|
ui@1.0.13
|
||||||
|
underscore@1.0.10
|
||||||
|
url@1.1.0
|
||||||
|
useraccounts:core@1.14.2
|
||||||
|
useraccounts:flow-routing@1.14.2
|
||||||
|
useraccounts:unstyled@1.14.2
|
||||||
|
verron:autosize@3.0.8
|
||||||
|
webapp@1.4.0
|
||||||
|
webapp-hashing@1.0.9
|
||||||
|
wekan-accounts-cas@0.1.0
|
||||||
|
wekan-accounts-oidc@1.0.10
|
||||||
|
wekan-ldap@0.0.2
|
||||||
|
wekan-markdown@1.0.7
|
||||||
|
wekan-oidc@1.0.12
|
||||||
|
wekan-scrollbar@3.1.3
|
||||||
|
yasaricli:slugify@0.0.7
|
||||||
|
zimme:active-route@2.3.2
|
4572
.meteor-1.6-snap/package-lock.json
generated
Normal file
4572
.meteor-1.6-snap/package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load diff
68
.meteor-1.6-snap/package.json
Normal file
68
.meteor-1.6-snap/package.json
Normal file
|
@ -0,0 +1,68 @@
|
||||||
|
{
|
||||||
|
"name": "wekan",
|
||||||
|
"version": "v3.03.0",
|
||||||
|
"description": "Open-Source kanban",
|
||||||
|
"private": true,
|
||||||
|
"scripts": {
|
||||||
|
"lint": "eslint --cache --ext .js --ignore-path .eslintignore .",
|
||||||
|
"lint:eslint:fix": "eslint --ext .js --ignore-path .eslintignore --fix .",
|
||||||
|
"lint:staged": "lint-staged",
|
||||||
|
"prettify": "prettier --write '**/*.js' '**/*.jsx'",
|
||||||
|
"test": "npm run lint"
|
||||||
|
},
|
||||||
|
"lint-staged": {
|
||||||
|
"*.js": [
|
||||||
|
"meteor npm run prettify",
|
||||||
|
"meteor npm run lint:eslint:fix",
|
||||||
|
"git add --force"
|
||||||
|
],
|
||||||
|
"*.jsx": [
|
||||||
|
"meteor npm run prettify",
|
||||||
|
"meteor npm run lint:eslint:fix",
|
||||||
|
"git add --force"
|
||||||
|
],
|
||||||
|
"*.json": [
|
||||||
|
"prettier --write",
|
||||||
|
"git add --force"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"pre-commit": "lint:staged",
|
||||||
|
"eslintConfig": {
|
||||||
|
"extends": "@meteorjs/eslint-config-meteor"
|
||||||
|
},
|
||||||
|
"repository": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "git+https://github.com/wekan/wekan.git"
|
||||||
|
},
|
||||||
|
"license": "MIT",
|
||||||
|
"bugs": {
|
||||||
|
"url": "https://github.com/wekan/wekan/issues"
|
||||||
|
},
|
||||||
|
"homepage": "https://wekan.github.io",
|
||||||
|
"devDependencies": {
|
||||||
|
"eslint": "^5.16.0",
|
||||||
|
"eslint-config-meteor": "0.0.9",
|
||||||
|
"eslint-config-prettier": "^3.6.0",
|
||||||
|
"eslint-import-resolver-meteor": "^0.4.0",
|
||||||
|
"eslint-plugin-import": "^2.18.0",
|
||||||
|
"eslint-plugin-meteor": "^5.1.0",
|
||||||
|
"eslint-plugin-prettier": "^3.1.0",
|
||||||
|
"lint-staged": "^7.3.0",
|
||||||
|
"pre-commit": "^1.2.2",
|
||||||
|
"prettier": "^1.18.2",
|
||||||
|
"prettier-eslint": "^8.8.2"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"@babel/runtime": "^7.1.2",
|
||||||
|
"babel-runtime": "^6.26.0",
|
||||||
|
"bson-ext": "^2.0.0",
|
||||||
|
"es6-promise": "^4.2.4",
|
||||||
|
"hoek": "^5.0.4",
|
||||||
|
"meteor-node-stubs": "^0.4.1",
|
||||||
|
"os": "^0.1.1",
|
||||||
|
"page": "^1.8.6",
|
||||||
|
"qs": "^6.5.2",
|
||||||
|
"source-map-support": "^0.5.9",
|
||||||
|
"xss": "^1.0.6"
|
||||||
|
}
|
||||||
|
}
|
161
.meteor-1.6-snap/rebuild-wekan.sh
Executable file
161
.meteor-1.6-snap/rebuild-wekan.sh
Executable file
|
@ -0,0 +1,161 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
echo "Note: If you use other locale than en_US.UTF-8 , you need to additionally install en_US.UTF-8"
|
||||||
|
echo " with 'sudo dpkg-reconfigure locales' , so that MongoDB works correctly."
|
||||||
|
echo " You can still use any other locale as your main locale."
|
||||||
|
|
||||||
|
#Below script installs newest node 8.x for Debian/Ubuntu/Mint.
|
||||||
|
#NODE_VERSION=8.16.0
|
||||||
|
#X64NODE="https://nodejs.org/dist/v${NODE_VERSION}/node-v${NODE_VERSION}-linux-x64.tar.gz"
|
||||||
|
|
||||||
|
function pause(){
|
||||||
|
read -p "$*"
|
||||||
|
}
|
||||||
|
|
||||||
|
function cprec(){
|
||||||
|
if [[ -d "$1" ]]; then
|
||||||
|
if [[ ! -d "$2" ]]; then
|
||||||
|
sudo mkdir -p "$2"
|
||||||
|
fi
|
||||||
|
|
||||||
|
for i in $(ls -A "$1"); do
|
||||||
|
cprec "$1/$i" "$2/$i"
|
||||||
|
done
|
||||||
|
else
|
||||||
|
sudo cp "$1" "$2"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
# sudo npm doesn't work right, so this is a workaround
|
||||||
|
function npm_call(){
|
||||||
|
TMPDIR="/tmp/tmp_npm_prefix"
|
||||||
|
if [[ -d "$TMPDIR" ]]; then
|
||||||
|
rm -rf $TMPDIR
|
||||||
|
fi
|
||||||
|
mkdir $TMPDIR
|
||||||
|
NPM_PREFIX="$(npm config get prefix)"
|
||||||
|
npm config set prefix $TMPDIR
|
||||||
|
npm "$@"
|
||||||
|
npm config set prefix "$NPM_PREFIX"
|
||||||
|
|
||||||
|
echo "Moving files to $NPM_PREFIX"
|
||||||
|
for i in $(ls -A $TMPDIR); do
|
||||||
|
cprec "$TMPDIR/$i" "$NPM_PREFIX/$i"
|
||||||
|
done
|
||||||
|
rm -rf $TMPDIR
|
||||||
|
}
|
||||||
|
|
||||||
|
#function wekan_repo_check(){
|
||||||
|
## UNCOMMENTING, IT'S NOT REQUIRED THAT /HOME/USERNAME IS /HOME/WEKAN
|
||||||
|
# git_remotes="$(git remote show 2>/dev/null)"
|
||||||
|
# res=""
|
||||||
|
# for i in $git_remotes; do
|
||||||
|
# res="$(git remote get-url $i | sed 's/.*wekan\/wekan.*/wekan\/wekan/')"
|
||||||
|
# if [[ "$res" == "wekan/wekan" ]]; then
|
||||||
|
# break
|
||||||
|
# fi
|
||||||
|
# done
|
||||||
|
#
|
||||||
|
# if [[ "$res" != "wekan/wekan" ]]; then
|
||||||
|
# echo "$PWD is not a wekan repository"
|
||||||
|
# exit;
|
||||||
|
# fi
|
||||||
|
#}
|
||||||
|
|
||||||
|
echo
|
||||||
|
PS3='Please enter your choice: '
|
||||||
|
options=("Install Wekan dependencies" "Build Wekan" "Quit")
|
||||||
|
select opt in "${options[@]}"
|
||||||
|
do
|
||||||
|
case $opt in
|
||||||
|
"Install Wekan dependencies")
|
||||||
|
|
||||||
|
if [[ "$OSTYPE" == "linux-gnu" ]]; then
|
||||||
|
echo "Linux";
|
||||||
|
# Debian, Ubuntu, Mint
|
||||||
|
sudo apt-get install -y build-essential gcc g++ make git curl wget
|
||||||
|
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
|
||||||
|
sudo apt-get install -y nodejs
|
||||||
|
elif [[ "$OSTYPE" == "darwin"* ]]; then
|
||||||
|
echo "macOS";
|
||||||
|
pause '1) Install XCode 2) Install Node 8.x from https://nodejs.org/en/ 3) Press [Enter] key to continue.'
|
||||||
|
elif [[ "$OSTYPE" == "cygwin" ]]; then
|
||||||
|
# POSIX compatibility layer and Linux environment emulation for Windows
|
||||||
|
echo "TODO: Add Cygwin";
|
||||||
|
exit;
|
||||||
|
elif [[ "$OSTYPE" == "msys" ]]; then
|
||||||
|
# Lightweight shell and GNU utilities compiled for Windows (part of MinGW)
|
||||||
|
echo "TODO: Add msys on Windows";
|
||||||
|
exit;
|
||||||
|
elif [[ "$OSTYPE" == "win32" ]]; then
|
||||||
|
# I'm not sure this can happen.
|
||||||
|
echo "TODO: Add Windows";
|
||||||
|
exit;
|
||||||
|
elif [[ "$OSTYPE" == "freebsd"* ]]; then
|
||||||
|
echo "TODO: Add FreeBSD";
|
||||||
|
exit;
|
||||||
|
else
|
||||||
|
echo "Unknown"
|
||||||
|
echo ${OSTYPE}
|
||||||
|
exit;
|
||||||
|
fi
|
||||||
|
|
||||||
|
## Latest npm with Meteor 1.6
|
||||||
|
npm_call -g install npm
|
||||||
|
npm_call -g install node-gyp
|
||||||
|
# Latest fibers for Meteor 1.6
|
||||||
|
npm_call -g install fibers@2.0.0
|
||||||
|
# Install Meteor, if it's not yet installed
|
||||||
|
curl https://install.meteor.com | bash
|
||||||
|
break
|
||||||
|
;;
|
||||||
|
"Build Wekan")
|
||||||
|
echo "Building Wekan."
|
||||||
|
#wekan_repo_check
|
||||||
|
# REPOS BELOW ARE INCLUDED TO WEKAN REPO
|
||||||
|
#rm -rf packages/kadira-flow-router packages/meteor-useraccounts-core packages/meteor-accounts-cas packages/wekan-ldap packages/wekan-ldap packages/wekan-scrfollbar packages/meteor-accounts-oidc packages/markdown
|
||||||
|
#mkdir 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/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
|
||||||
|
#rm -rf meteor-accounts-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 ..
|
||||||
|
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 .build/bundle/programs/server
|
||||||
|
rm -rf node_modules
|
||||||
|
meteor npm install
|
||||||
|
#meteor npm install bcrypt
|
||||||
|
cd ../../../..
|
||||||
|
echo Done.
|
||||||
|
break
|
||||||
|
;;
|
||||||
|
"Quit")
|
||||||
|
break
|
||||||
|
;;
|
||||||
|
*) echo invalid option;;
|
||||||
|
esac
|
||||||
|
done
|
262
releases/not-working-meteor-1.8-snapcraft.yaml
Normal file
262
releases/not-working-meteor-1.8-snapcraft.yaml
Normal file
|
@ -0,0 +1,262 @@
|
||||||
|
name: wekan
|
||||||
|
version: '0'
|
||||||
|
version-script: git describe --dirty --tags | cut -c 2-
|
||||||
|
summary: The open-source kanban
|
||||||
|
description: |
|
||||||
|
Wekan is an open-source and collaborative kanban board application.
|
||||||
|
|
||||||
|
Whether you’re maintaining a personal todo list, planning your holidays with some friends, or working in a team on your next revolutionary idea, Kanban boards are an unbeatable tool to keep your things organized. They give you a visual overview of the current state of your project, and make you productive by allowing you to focus on the few items that matter the most.
|
||||||
|
Depending on target environment, some configuration settings might need to be adjusted.
|
||||||
|
For full list of configuration options call:
|
||||||
|
$ wekan.help
|
||||||
|
|
||||||
|
confinement: strict
|
||||||
|
grade: stable
|
||||||
|
|
||||||
|
architectures:
|
||||||
|
- amd64
|
||||||
|
|
||||||
|
plugs:
|
||||||
|
mongodb-plug:
|
||||||
|
interface: content
|
||||||
|
target: $SNAP_DATA/shared
|
||||||
|
|
||||||
|
hooks:
|
||||||
|
configure:
|
||||||
|
plugs:
|
||||||
|
- network
|
||||||
|
- network-bind
|
||||||
|
|
||||||
|
slots:
|
||||||
|
mongodb-slot:
|
||||||
|
interface: content
|
||||||
|
write:
|
||||||
|
- $SNAP_DATA/share
|
||||||
|
|
||||||
|
apps:
|
||||||
|
wekan:
|
||||||
|
command: wekan-control
|
||||||
|
daemon: simple
|
||||||
|
plugs: [network, network-bind]
|
||||||
|
|
||||||
|
mongodb:
|
||||||
|
command: mongodb-control
|
||||||
|
daemon: simple
|
||||||
|
plugs: [network, network-bind]
|
||||||
|
|
||||||
|
caddy:
|
||||||
|
command: caddy-control
|
||||||
|
daemon: simple
|
||||||
|
plugs: [network, network-bind]
|
||||||
|
|
||||||
|
help:
|
||||||
|
command: wekan-help
|
||||||
|
|
||||||
|
database-backup:
|
||||||
|
command: mongodb-backup
|
||||||
|
plugs: [network, network-bind]
|
||||||
|
|
||||||
|
database-list-backups:
|
||||||
|
command: ls -al $SNAP_COMMON/db-backups/
|
||||||
|
|
||||||
|
database-restore:
|
||||||
|
command: mongodb-restore
|
||||||
|
plugs: [network, network-bind]
|
||||||
|
|
||||||
|
parts:
|
||||||
|
mongodb:
|
||||||
|
source: https://repo.mongodb.org/apt/ubuntu/dists/xenial/mongodb-org/4.0/multiverse/binary-amd64/mongodb-org-server_4.0.11_amd64.deb
|
||||||
|
plugin: dump
|
||||||
|
stage-packages: [libssl-dev]
|
||||||
|
filesets:
|
||||||
|
mongo:
|
||||||
|
- usr
|
||||||
|
- bin
|
||||||
|
- lib
|
||||||
|
# stage:
|
||||||
|
# - $mongo
|
||||||
|
# prime:
|
||||||
|
# - $mongo
|
||||||
|
wekan:
|
||||||
|
source: .
|
||||||
|
plugin: nodejs
|
||||||
|
node-engine: 8.16.0
|
||||||
|
# node-packages:
|
||||||
|
# - node-gyp
|
||||||
|
# - node-pre-gyp
|
||||||
|
# - fibers@4.0.1
|
||||||
|
build-packages:
|
||||||
|
- ca-certificates
|
||||||
|
- apt-utils
|
||||||
|
- bsdtar
|
||||||
|
- gnupg
|
||||||
|
- bzip2
|
||||||
|
## - python3
|
||||||
|
- g++
|
||||||
|
- build-essential
|
||||||
|
- git
|
||||||
|
# - capnproto
|
||||||
|
- curl
|
||||||
|
- libcurl3
|
||||||
|
- php-curl
|
||||||
|
# - execstack
|
||||||
|
# - nodejs
|
||||||
|
# - npm
|
||||||
|
## - python3-pip
|
||||||
|
## - python3-venv
|
||||||
|
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
|
||||||
|
##mkdir -p .build/python
|
||||||
|
##cd .build/python
|
||||||
|
##python3 -m venv env
|
||||||
|
##. ./env/bin/activate
|
||||||
|
##pip3 install -U setuptools wheel
|
||||||
|
##git clone --depth 1 -b master https://github.com/Kronuz/esprima-python
|
||||||
|
##cd esprima-python
|
||||||
|
##python3 setup.py install
|
||||||
|
##cd ../../..
|
||||||
|
##mkdir -p ./public/api
|
||||||
|
##python3 ./openapi/generate_openapi.py --release $(git describe --tags --abbrev=0) > ./public/api/wekan.yml
|
||||||
|
# we temporary need api2html and mkdirp
|
||||||
|
##npm install -g --unsafe-perm api2html@0.3.0
|
||||||
|
##npm install -g --unsafe-perm mkdirp
|
||||||
|
##api2html -c ./public/logo-header.png -o ./public/api/wekan.html ./public/api/wekan.yml
|
||||||
|
##npm uninstall -g --unsafe-perm mkdirp
|
||||||
|
##npm uninstall -g --unsafe-perm api2html
|
||||||
|
# Node Fibers 100% CPU usage issue:
|
||||||
|
# https://github.com/wekan/wekan-mongodb/issues/2#issuecomment-381453161
|
||||||
|
# https://github.com/meteor/meteor/issues/9796#issuecomment-381676326
|
||||||
|
# https://github.com/sandstorm-io/sandstorm/blob/0f1fec013fe7208ed0fd97eb88b31b77e3c61f42/shell/server/00-startup.js#L99-L129
|
||||||
|
# Also see beginning of wekan/server/authentication.js
|
||||||
|
# import Fiber from "fibers";
|
||||||
|
# Fiber.poolSize = 1e9;
|
||||||
|
# OLD: Download node version 8.12.0 prerelease build => Official node 8.12.0 has been released
|
||||||
|
# Description at https://releases.wekan.team/node.txt
|
||||||
|
##echo "375bd8db50b9c692c0bbba6e96d4114cd29bee3770f901c1ff2249d1038f1348 node" >> node-SHASUMS256.txt.asc
|
||||||
|
##curl https://releases.wekan.team/node -o node
|
||||||
|
# Verify Fibers patched node authenticity
|
||||||
|
##echo "Fibers 100% CPU issue patched node authenticity:"
|
||||||
|
##grep node node-SHASUMS256.txt.asc | shasum -a 256 -c -
|
||||||
|
##rm -f node-SHASUMS256.txt.asc
|
||||||
|
##chmod +x node
|
||||||
|
##mv node `which node`
|
||||||
|
# DOES NOT WORK: paxctl fix.
|
||||||
|
# Removed from build-packages: - paxctl
|
||||||
|
#echo "Applying paxctl fix for alpine linux: https://github.com/wekan/wekan/issues/1303"
|
||||||
|
#paxctl -mC `which node`
|
||||||
|
#echo "Installing npm"
|
||||||
|
#curl -L https://www.npmjs.com/install.sh | sh
|
||||||
|
echo "Installing meteor"
|
||||||
|
curl https://install.meteor.com/ -o install_meteor.sh
|
||||||
|
#sed -i "s|RELEASE=.*|RELEASE=\"1.8.1-beta.0\"|g" install_meteor.sh
|
||||||
|
chmod +x install_meteor.sh
|
||||||
|
sh install_meteor.sh
|
||||||
|
rm install_meteor.sh
|
||||||
|
# REPOS BELOW ARE INCLUDED TO WEKAN REPO
|
||||||
|
#if [ ! -d "packages" ]; then
|
||||||
|
# mkdir packages
|
||||||
|
#fi
|
||||||
|
#if [ ! -d "packages/kadira-flow-router" ]; then
|
||||||
|
# cd packages
|
||||||
|
# git clone --depth 1 -b master https://github.com/wekan/flow-router.git kadira-flow-router
|
||||||
|
# cd ..
|
||||||
|
#fi
|
||||||
|
#if [ ! -d "packages/meteor-useraccounts-core" ]; then
|
||||||
|
# cd packages
|
||||||
|
# git clone --depth 1 -b master https://github.com/meteor-useraccounts/core.git meteor-useraccounts-core
|
||||||
|
# sed -i 's/api\.versionsFrom/\/\/api.versionsFrom/' meteor-useraccounts-core/package.js
|
||||||
|
# cd ..
|
||||||
|
#fi
|
||||||
|
#if [ ! -d "packages/meteor-accounts-cas" ]; then
|
||||||
|
# cd packages
|
||||||
|
# git clone --depth 1 -b master https://github.com/wekan/meteor-accounts-cas.git meteor-accounts-cas
|
||||||
|
# cd ..
|
||||||
|
#fi
|
||||||
|
#if [ ! -d "packages/wekan-ldap" ]; then
|
||||||
|
# cd packages
|
||||||
|
# git clone --depth 1 -b master https://github.com/wekan/wekan-ldap.git
|
||||||
|
# cd ..
|
||||||
|
#fi
|
||||||
|
#if [ ! -d "packages/wekan-scrollbar" ]; then
|
||||||
|
# cd packages
|
||||||
|
# git clone --depth 1 -b master https://github.com/wekan/wekan-scrollbar.git
|
||||||
|
# cd ..
|
||||||
|
#fi
|
||||||
|
#if [ ! -d "packages/wekan_accounts-oidc" ]; then
|
||||||
|
# cd packages
|
||||||
|
# git clone --depth 1 -b master https://github.com/wekan/meteor-accounts-oidc.git
|
||||||
|
# mv meteor-accounts-oidc/packages/switch_accounts-oidc wekan-accounts-oidc
|
||||||
|
# mv meteor-accounts-oidc/packages/switch_oidc wekan-oidc
|
||||||
|
# rm -rf meteor-accounts-oidc
|
||||||
|
# cd ..
|
||||||
|
#fi
|
||||||
|
#if [ ! -d "packages/markdown" ]; then
|
||||||
|
# cd packages
|
||||||
|
# git clone --depth 1 -b master --recurse-submodules https://github.com/wekan/markdown.git
|
||||||
|
# cd ..
|
||||||
|
#fi
|
||||||
|
rm -rf package-lock.json .build
|
||||||
|
#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
|
||||||
|
# Disable code coverage on Snap, because it crashes Wekan starting.
|
||||||
|
# https://github.com/wekan/wekan/issues/2533#issuecomment-513506939
|
||||||
|
#sed -i 's|Profile(fileInfo.path, func).apply(global, args);|//Profile(fileInfo.path, func).apply(global, args);|g' .build/bundle/programs/server/boot.js
|
||||||
|
# although it did not help, it said unable to find main function.
|
||||||
|
# Other option to fix would be to drop indexes at start of snap:
|
||||||
|
# https://stackoverflow.com/questions/24241742/drop-all-indexes-from-all-collections-in-a-mongodb-database-using-the-command-li
|
||||||
|
#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 .build/bundle/programs/server/npm/node_modules/meteor/npm-bcrypt
|
||||||
|
#rm -rf node_modules/bcrypt
|
||||||
|
#meteor npm install --save bcrypt
|
||||||
|
# Change from npm-bcrypt directory back to .build/bundle/programs/server directory.
|
||||||
|
#cd ../../../../
|
||||||
|
# Change to directory .build/bundle/programs/server
|
||||||
|
cd .build/bundle/programs/server
|
||||||
|
npm install --unsafe-perm
|
||||||
|
#meteor npm install --save bcrypt
|
||||||
|
# Change back to Wekan source directory
|
||||||
|
cd ../../../..
|
||||||
|
cp -r .build/bundle/* $SNAPCRAFT_PART_INSTALL/
|
||||||
|
cp .build/bundle/.node_version.txt $SNAPCRAFT_PART_INSTALL/
|
||||||
|
# rm $SNAPCRAFT_PART_INSTALL/lib/node_modules/wekan
|
||||||
|
#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:
|
||||||
|
- -lib/node_modules/node-pre-gyp/node_modules/tar/lib/.unpack.js.swp
|
||||||
|
|
||||||
|
helpers:
|
||||||
|
source: snap-src
|
||||||
|
plugin: dump
|
||||||
|
|
||||||
|
caddy:
|
||||||
|
plugin: dump
|
||||||
|
source: https://caddyserver.com/download/linux/amd64?license=personal&telemetry=off
|
||||||
|
source-type: tar
|
||||||
|
organize:
|
||||||
|
caddy: bin/caddy
|
||||||
|
CHANGES.txt: CADDY_CHANGES.txt
|
||||||
|
EULA.txt: CADDY_EULA.txt
|
||||||
|
LICENSES.txt: CADDY_LICENSES.txt
|
||||||
|
README.txt: CADDY_README.txt
|
||||||
|
stage:
|
||||||
|
- -init
|
111
snapcraft.yaml
111
snapcraft.yaml
|
@ -1,6 +1,6 @@
|
||||||
name: wekan
|
name: wekan
|
||||||
version: '0'
|
version: 0
|
||||||
version-script: git describe --dirty --tags | cut -c 2-
|
version-script: git describe --dirty --tags | cut -c 2-
|
||||||
summary: The open-source kanban
|
summary: The open-source kanban
|
||||||
description: |
|
description: |
|
||||||
Wekan is an open-source and collaborative kanban board application.
|
Wekan is an open-source and collaborative kanban board application.
|
||||||
|
@ -65,75 +65,68 @@ apps:
|
||||||
|
|
||||||
parts:
|
parts:
|
||||||
mongodb:
|
mongodb:
|
||||||
source: https://repo.mongodb.org/apt/ubuntu/dists/xenial/mongodb-org/4.0/multiverse/binary-amd64/mongodb-org-server_4.0.11_amd64.deb
|
source: https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-ubuntu1604-3.2.22.tgz
|
||||||
plugin: dump
|
plugin: dump
|
||||||
stage-packages: [libssl-dev]
|
stage-packages: [libssl1.0.0]
|
||||||
filesets:
|
filesets:
|
||||||
mongo:
|
mongo:
|
||||||
- usr
|
- usr
|
||||||
- bin
|
- bin
|
||||||
- lib
|
- lib
|
||||||
# stage:
|
stage:
|
||||||
# - $mongo
|
- $mongo
|
||||||
# prime:
|
prime:
|
||||||
# - $mongo
|
- $mongo
|
||||||
|
|
||||||
wekan:
|
wekan:
|
||||||
source: .
|
source: .
|
||||||
plugin: nodejs
|
plugin: nodejs
|
||||||
node-engine: 8.16.0
|
node-engine: 8.16.0
|
||||||
# node-packages:
|
node-packages:
|
||||||
# - node-gyp
|
- node-gyp
|
||||||
# - node-pre-gyp
|
- node-pre-gyp
|
||||||
# - fibers@4.0.1
|
- fibers@2.0.0
|
||||||
build-packages:
|
build-packages:
|
||||||
- ca-certificates
|
- ca-certificates
|
||||||
- apt-utils
|
- apt-utils
|
||||||
- bsdtar
|
- python
|
||||||
- gnupg
|
# - python3
|
||||||
- bzip2
|
|
||||||
## - python3
|
|
||||||
- g++
|
- g++
|
||||||
- build-essential
|
- capnproto
|
||||||
- git
|
|
||||||
# - capnproto
|
|
||||||
- curl
|
- curl
|
||||||
- libcurl3
|
- execstack
|
||||||
- php-curl
|
- nodejs
|
||||||
# - execstack
|
- npm
|
||||||
# - nodejs
|
|
||||||
# - npm
|
|
||||||
## - python3-pip
|
|
||||||
## - python3-venv
|
|
||||||
stage-packages:
|
stage-packages:
|
||||||
- libfontconfig1
|
- libfontconfig1
|
||||||
override-build: |
|
override-build: |
|
||||||
set -o xtrace
|
|
||||||
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
|
||||||
# Meteor installer doesn't work with the default tar binary, so using bsdtar while installing.
|
# Delete meteor 1.8.x dependencies and
|
||||||
# https://github.com/coreos/bugs/issues/1095#issuecomment-350574389
|
# move Snap's working meteor 1.6.0.1 dependencies to be used at Wekan Snap
|
||||||
cp $(which tar) $(which tar)~
|
rm -rf .meteor
|
||||||
ln -sf $(which bsdtar) $(which tar)
|
mv .meteor-1.6-snap/.meteor .
|
||||||
|
mv .meteor-1.6-snap/package-lock.json .
|
||||||
|
mv .meteor-1.6-snap/package.json .
|
||||||
|
mv .meteor-1.6-snap/rebuild-wekan.sh .
|
||||||
|
mv .meteor-1.6-snap/package.json .
|
||||||
|
rm -rf .meteor-1.6-snap
|
||||||
# Create the OpenAPI specification
|
# Create the OpenAPI specification
|
||||||
rm -rf .build
|
rm -rf .build
|
||||||
mkdir .build
|
#mkdir -p .build/python
|
||||||
##mkdir -p .build/python
|
#cd .build/python
|
||||||
##cd .build/python
|
#git clone --depth 1 -b master https://github.com/Kronuz/esprima-python
|
||||||
##python3 -m venv env
|
#cd esprima-python
|
||||||
##. ./env/bin/activate
|
#python3 setup.py install
|
||||||
##pip3 install -U setuptools wheel
|
#cd ../../..
|
||||||
##git clone --depth 1 -b master https://github.com/Kronuz/esprima-python
|
#mkdir -p ./public/api
|
||||||
##cd esprima-python
|
#python3 ./openapi/generate_openapi.py --release $(git describe --tags --abbrev=0) > ./public/api/wekan.yml
|
||||||
##python3 setup.py install
|
|
||||||
##cd ../../..
|
|
||||||
##mkdir -p ./public/api
|
|
||||||
##python3 ./openapi/generate_openapi.py --release $(git describe --tags --abbrev=0) > ./public/api/wekan.yml
|
|
||||||
# we temporary need api2html and mkdirp
|
# we temporary need api2html and mkdirp
|
||||||
##npm install -g --unsafe-perm api2html@0.3.0
|
#npm install -g api2html@0.3.0
|
||||||
##npm install -g --unsafe-perm mkdirp
|
#npm install -g mkdirp
|
||||||
##api2html -c ./public/logo-header.png -o ./public/api/wekan.html ./public/api/wekan.yml
|
#api2html -c ./public/logo-header.png -o ./public/api/wekan.html ./public/api/wekan.yml
|
||||||
##npm uninstall -g --unsafe-perm mkdirp
|
#npm uninstall -g mkdirp
|
||||||
##npm uninstall -g --unsafe-perm api2html
|
#npm uninstall -g api2html
|
||||||
# Node Fibers 100% CPU usage issue:
|
# Node Fibers 100% CPU usage issue:
|
||||||
# https://github.com/wekan/wekan-mongodb/issues/2#issuecomment-381453161
|
# https://github.com/wekan/wekan-mongodb/issues/2#issuecomment-381453161
|
||||||
# https://github.com/meteor/meteor/issues/9796#issuecomment-381676326
|
# https://github.com/meteor/meteor/issues/9796#issuecomment-381676326
|
||||||
|
@ -207,16 +200,10 @@ parts:
|
||||||
# cd ..
|
# cd ..
|
||||||
#fi
|
#fi
|
||||||
rm -rf package-lock.json .build
|
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 npm install --allow-superuser
|
||||||
meteor build .build --directory --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
|
cp -f fix-download-unicode/cfs_access-point.txt .build/bundle/programs/server/packages/cfs_access-point.js
|
||||||
# Disable code coverage on Snap, because it crashes Wekan starting.
|
|
||||||
# https://github.com/wekan/wekan/issues/2533#issuecomment-513506939
|
|
||||||
#sed -i 's|Profile(fileInfo.path, func).apply(global, args);|//Profile(fileInfo.path, func).apply(global, args);|g' .build/bundle/programs/server/boot.js
|
|
||||||
# although it did not help, it said unable to find main function.
|
|
||||||
# Other option to fix would be to drop indexes at start of snap:
|
|
||||||
# https://stackoverflow.com/questions/24241742/drop-all-indexes-from-all-collections-in-a-mongodb-database-using-the-command-li
|
|
||||||
#Removed binary version of bcrypt because of security vulnerability that is not fixed yet.
|
#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/4b2010213907c61b0e0482ab55abb06f6a668eac
|
||||||
#https://github.com/wekan/wekan/commit/7eeabf14be3c63fae2226e561ef8a0c1390c8d3c
|
#https://github.com/wekan/wekan/commit/7eeabf14be3c63fae2226e561ef8a0c1390c8d3c
|
||||||
|
@ -227,18 +214,16 @@ parts:
|
||||||
#cd ../../../../
|
#cd ../../../../
|
||||||
# Change to directory .build/bundle/programs/server
|
# Change to directory .build/bundle/programs/server
|
||||||
cd .build/bundle/programs/server
|
cd .build/bundle/programs/server
|
||||||
npm install --unsafe-perm
|
npm install
|
||||||
#meteor npm install --save bcrypt
|
#meteor npm install --save bcrypt
|
||||||
# Change back to Wekan source directory
|
# Change back to Wekan source directory
|
||||||
cd ../../../..
|
cd ../../../..
|
||||||
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/
|
||||||
# rm $SNAPCRAFT_PART_INSTALL/lib/node_modules/wekan
|
rm $SNAPCRAFT_PART_INSTALL/lib/node_modules/wekan
|
||||||
#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/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-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
|
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:
|
organize:
|
||||||
README: README.wekan
|
README: README.wekan
|
||||||
prime:
|
prime:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue