-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrelease.sh
executable file
·28 lines (26 loc) · 1.14 KB
/
release.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
echo "run this file as www-data user inside a Docker container"
echo "first, docker exec as root and chown /var/www/html/apps/sciencemesh to www-user"
echo "then, docker exec as www-user, and store sciencemesh.key into /var/www/sciencemesh.key"
echo "make sure to remove it or delete the container after you\'re done!"
echo "then cd into apps/sciencemesh, and run this script."
mkdir -p build/sciencemesh
rm -rf build/sciencemesh/*
cp -r appinfo build/sciencemesh/
cp -r css build/sciencemesh/
cp -r img build/sciencemesh/
cp -r js build/sciencemesh/
cp -r lib build/sciencemesh/
cp -r templates build/sciencemesh/
cp -r composer.* build/sciencemesh/
cd build/sciencemesh/ || exit
composer install
cd /var/www/html || exit
./occ integrity:sign-app --privateKey=/var/www/sciencemesh.key --certificate=apps/sciencemesh/sciencemesh.crt --path=apps/sciencemesh/build/sciencemesh
cd apps/sciencemesh/build || exit
tar -cf sciencemesh.tar sciencemesh
cd ../release || exit
mv ../build/sciencemesh.tar .
rm -f -- sciencemesh.tar.gz
gzip sciencemesh.tar
cd .. || exit
echo "now upload the .tar.gz to https://marketplace.owncloud.com/account/products (\"Add New\" / \"+\")"