forked from sker65/go-dmd-clock
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build-dist.sh
executable file
·27 lines (26 loc) · 973 Bytes
/
build-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
26
#!/bin/bash
version=$(git describe --always --tags | awk -F- '{print $1}')
rm -rf build/
mkdir build
mvn -Pwin clean package assembly:single launch4j:launch4j
cp target/pin2dmd-editor.exe build/pin2dmd-editor-${version}.exe
mvn -Pwin_64 clean package assembly:single launch4j:launch4j
cp target/pin2dmd-editor64.exe build/pin2dmd-editor64-${version}.exe
mvn -Plinux_x86_64 clean package assembly:single
cat dist/stub.sh target/go-dmd-clock-*-jar-with-dependencies.jar >pin2dmd-editor-${version} && chmod a+x pin2dmd-editor-${version}
mv pin2dmd-editor-${version} build/
mvn -Pmac_64 clean package assembly:single
cd dist
rm -rf Pin2Dmd-Editor.app/
ant
zip -r Pin2Dmd-Editor64-${version}.zip Pin2Dmd-Editor.app
cd ..
mv dist/Pin2Dmd-Editor64-${version}.zip build
mvn -Pmac clean package assembly:single
cd dist
rm -rf Pin2Dmd-Editor.app/
ant
zip -r Pin2Dmd-Editor-${version}.zip Pin2Dmd-Editor.app
cd ..
mv dist/Pin2Dmd-Editor-${version}.zip build
echo "Successfull build"