Release archive build script

This commit is contained in:
nelle 2024-02-17 19:30:07 -07:00
parent d71e863458
commit 8966c5555f
2 changed files with 31 additions and 0 deletions

28
makeRelease.sh Executable file
View file

@ -0,0 +1,28 @@
#!/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!

View file

@ -0,0 +1,3 @@
# How To Use kotRemote
:3