-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdeploy.sh
More file actions
executable file
·46 lines (40 loc) · 1.31 KB
/
Copy pathdeploy.sh
File metadata and controls
executable file
·46 lines (40 loc) · 1.31 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
targetDir=build/deploy/LazyGui
sourceJarName=LazyGui-with-gson.jar
targetJarName=LazyGui.jar
echo "Deleting data/gui/ ..."
# testing saves are stored in /data/gui
rm -rf ./data/gui
echo "Cleaning up build/deploy/* ..."
# clean deploy directory
rm -rf ./build/deploy/*
echo "Copying sources..."
mkdir -p $targetDir/data/ && cp -r data/ $targetDir/
mkdir -p $targetDir/src/ && cp -r src $targetDir/
echo "Copying docs..."
mkdir -p $targetDir/reference/ && cp -r docs/* $targetDir/reference
mkdir -p $targetDir/examples/ && cp -r src/main/java/com/krab/lazy/examples $targetDir/
echo "Copying jar..."
mkdir -p $targetDir/library/ && cp build/libs/$sourceJarName $targetDir/library/$targetJarName
cp library.properties $targetDir/library.properties
cp README.md $targetDir/README.md
cp LICENSE.md $targetDir/src/LICENSE.md
name=LazyGui
echo "Zipping..."
cd $targetDir/.. || exit
rm -rf $name.zip
7z a -bb0 $name.zip $name/ > nul
cp $name/library.properties $name.txt
cp $name/library/$name.jar $name.jar
echo
echo "Deployed LazyGui successfully to:"
pwd
echo
echo "Version in library.properties:"
grep prettyVersion $name/library.properties
echo
echo "To publish this release upload these files"
echo " - LazyGui.jar"
echo " - LazyGui.txt"
echo " - LazyGui.zip"
echo
echo "--> https://github.com/KrabCode/LazyGui/releases/tag/latest"