-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.sh
More file actions
executable file
·39 lines (30 loc) · 992 Bytes
/
build.sh
File metadata and controls
executable file
·39 lines (30 loc) · 992 Bytes
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
#!/bin/sh
# Make icon with ImageMagick
#convert -background transparent resources/SpeakerSim.png -define icon:auto-resize=16,24,32,48,64,72,96,128 SpeakerSim.ico
# Build using Maven
mvn package
#mvn package -Dmaven.test.skip=true
# Move jar
mv ./target/SpeakerSim-jar-with-dependencies.jar ./SpeakerSim.jar
# Zip jar
7za a -tzip -mx=9 SpeakerSim.zip SpeakerSim.jar
# Download JRE for Windows 32-bit
OPENJDK_WINDOWS_URL=https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.17%2B10/OpenJDK17U-jre_x86-32_windows_hotspot_17.0.17_10.zip
OPENJDK_WINDOWS_FILE=OpenJDK17U-jre_x86-32_windows_hotspot_17.0.17_10.zip
if [ ! -d ./jre ]; then
if [ ! -f $OPENJDK_WINDOWS_FILE ]; then
wget $OPENJDK_WINDOWS_URL
fi
unzip $OPENJDK_WINDOWS_FILE
mv ./jdk-17.0.17+10-jre ./jre
fi
# Windows setup
makensis ./SpeakerSimSetup.nsi
# Recompress jar
rm -rf ./jar
unzip ./SpeakerSim.jar -d ./jar
rm ./SpeakerSim.jar
cd ./jar
7za a -tzip -mx=9 ../SpeakerSim.jar
cd ../
rm -rf ./jar