-
Notifications
You must be signed in to change notification settings - Fork 0
/
dist.sh
executable file
·39 lines (27 loc) · 1.14 KB
/
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
27
28
29
30
31
32
33
34
35
36
37
38
39
sh dist-clean.sh
gradleVersion=$(grep version gradle.properties)
appVersion=${gradleVersion#"version="}
jarFile=vaporwave-"${appVersion}".jar
distLinuxFolder=vaporwave-linux-"${appVersion}"
distWin64Folder=vaporwave-win64-jre-"${appVersion}"
echo "release: ${appVersion}"
echo "jarFile: ${jarFile}"
./gradlew clean build
mkdir $distLinuxFolder
mkdir $distWin64Folder
cp build/libs/"${jarFile}" "${distLinuxFolder}"/"${jarFile}"
cp build/libs/"${jarFile}" "${distWin64Folder}"/"${jarFile}"
mkdir "${distLinuxFolder}"/data
mkdir "${distWin64Folder}"/data
cp -rv data/extensions.csv "${distLinuxFolder}"/data/extensions.csv
cp -rv data/extensions.csv "${distWin64Folder}"/data/extensions.csv
cp -rv README.md "${distLinuxFolder}"
cp -rv README.md "${distWin64Folder}"
echo "java -jar ${jarFile}" >"${distLinuxFolder}"/vaporwave.sh
echo 'jre1.8.0_251\\bin\\java -jar '"${jarFile}"'' >"${distWin64Folder}"/vaporwave.bat
chmod +x "${distLinuxFolder}"/*.sh
cp -r ~/Dev/jre1.8.0_251 "${distWin64Folder}"/
zip -r "${distLinuxFolder}".zip "${distLinuxFolder}"
zip -r "${distWin64Folder}".zip "${distWin64Folder}"
rm -r "${distLinuxFolder}"
rm -r "${distWin64Folder}"