-
Notifications
You must be signed in to change notification settings - Fork 2
/
create_prod_dist.sh
executable file
·25 lines (25 loc) · 1.4 KB
/
create_prod_dist.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
#!/usr/bin/env bash
breadboard_version="v2.3.1"
cd frontend
webpack -p --config webpack/webpack.prod.js
cd ..
activator dist
rm -r install/breadboard-${breadboard_version}
rm install/breadboard-${breadboard_version}.zip
unzip target/universal/breadboard-${breadboard_version}.zip -d install
mkdir install/breadboard-${breadboard_version}/groovy
cp groovy/*.groovy install/breadboard-${breadboard_version}/groovy
mkdir install/breadboard-${breadboard_version}/db
cp db/breadboard.h2.db.default.${breadboard_version} install/breadboard-${breadboard_version}/db/breadboard.h2.db
cp prod_dist/license.txt install/breadboard-${breadboard_version}/
cp breadboard-${breadboard_version}.bat install/breadboard-${breadboard_version}/breadboard.bat
cp breadboard-${breadboard_version}.sh install/breadboard-${breadboard_version}/breadboard.sh
cp ../breadboard-wiki/Release-History.md install/breadboard-${breadboard_version}/CHANGELOG.md
rm -r install/breadboard-${breadboard_version}/conf/evolutions
rm -r install/breadboard-${breadboard_version}/share
rm install/breadboard-${breadboard_version}/conf/application.conf
rm install/breadboard-${breadboard_version}/conf/application-dev.conf
rm install/breadboard-${breadboard_version}/conf/generated.keystore
cp prod_dist/${breadboard_version}/bin/breadboard install/breadboard-${breadboard_version}/bin/
cd install
zip -r breadboard-${breadboard_version}.zip breadboard-${breadboard_version}