forked from MarcGuiot/budgetview
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgenerate_version.sh
More file actions
executable file
·52 lines (40 loc) · 1.45 KB
/
generate_version.sh
File metadata and controls
executable file
·52 lines (40 loc) · 1.45 KB
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#!/bin/sh
if [ $# != 1 ];
then
echo "Error: missing jar version number"
exit -1
fi
export BV_ROOT=$PWD
export RELEASE_DIR=$BV_ROOT/releases
export BV_INSTALL_DIR=$BV_ROOT/budgetview/bv_desktop/dev/install
export BV_WIN_INSTALL_DIR=$BV_ROOT/budgetview/bv_desktop/dev/install/windows
export GENERATED_JAR=$BV_ROOT/budgetview/bv_desktop/target/obfuscated/budgetview.jar
cd $BV_ROOT/globs
mvn install -Dmaven.test.skip.exec=true
cd $BV_ROOT/uispec4j
mvn install -Dmaven.test.skip.exec=true
cd $BV_ROOT/budgetview/bv_shared
mvn install -Dmaven.test.skip.exec=true
cd $BV_ROOT/budgetview/bv_desktop
mvn install -Dmaven.test.skip.exec=true -am -pl picsou -Pgen-demo
mvn install -Dmaven.test.skip.exec=true -Pgen-version
if [ ! -e $GENERATED_JAR ];
then
echo "Error: file" $GENERATED_JAR "not found"
exit -1
fi
cd $BV_ROOT/
cp $GENERATED_JAR $RELEASE_DIR
cp $GENERATED_JAR $RELEASE_DIR/budgetview_bundle.jar
cp $BV_ROOT/budgetview/bv_desktop/ChangeLogOutput*.txt $RELEASE_DIR/ChangeLogOutput$1.txt
### Prepare Mac & Linux installer
cp $RELEASE_DIR/budgetview_bundle.jar $BV_INSTALL_DIR
### Prepare Windows installer
cp $RELEASE_DIR/budgetview_bundle.jar $BV_WIN_INSTALL_DIR
cd $BV_WIN_INSTALL_DIR
zip bv_windows_install_files$1.zip *
mv $BV_WIN_INSTALL_DIR/bv_windows_install_files$1.zip $RELEASE_DIR
cd $BV_ROOT
echo "Done"
echo "Installer for Mac & Linux ready to be prepared: " $BV_INSTALL_DIR
echo "Installer for Windows ready to be prepared: " $BV_WIN_INSTALL_DIR