28 lines
1 KiB
Bash
28 lines
1 KiB
Bash
|
#!/bin/bash
|
||
|
|
||
|
# STEPS
|
||
|
# gradle build
|
||
|
# gradle shadowJar
|
||
|
# mkdir build/makeRelease
|
||
|
# copy src/main/resources/assets/run-kotRemote.sh --> build/makeRelease/
|
||
|
# copy build/libs/kotRemote(version).jar --> build/makeRelease/kotRemote.jar
|
||
|
# copy src/main/resources/assets/HOW-TO-USE.md --> build/makeRelease/
|
||
|
# Create tar.gz archive from contents of build/makeRelease/ and put in build/releaseOut/
|
||
|
# Create zip archive from contents of build/makeRelease/ and put in build/releaseOut/
|
||
|
# Create 7z archive from contents of build/makeRelease/ and put in build/releaseOut/
|
||
|
|
||
|
./gradlew build
|
||
|
./gradlew shadowJar
|
||
|
mkdir build/makeRelease
|
||
|
mkdir build/releaseOut
|
||
|
cp src/main/resources/assets/run-kotRemote.sh build/makeRelease/
|
||
|
cp src/main/resources/assets/HOW-TO-USE.md build/makeRelease/
|
||
|
# Make this version agnostic later plez
|
||
|
cp build/libs/kotRemote-0.1.0-PREVIEW.jar build/makeRelease/kotRemote.jar
|
||
|
cd build/releaseOut
|
||
|
tar -czvf kotRemote.tar.gz ../makeRelease
|
||
|
7z a kotRemote.7z ../makeRelease
|
||
|
zip -r kotRemote.zip ../makeRelease
|
||
|
cd ../../
|
||
|
rm build/makeRelease/*
|
||
|
echo RELEASE BUILT!
|