mirror of
https://github.com/tachiyomiorg/tachiyomi-extensions-inspector.git
synced 2024-12-25 00:01:49 +01:00
ditch packr because it can't load extension jars
This commit is contained in:
parent
083996a48d
commit
5e0c7d3c9d
1
scripts/resources/Tachidesk.bat
Normal file
1
scripts/resources/Tachidesk.bat
Normal file
@ -0,0 +1 @@
|
|||||||
|
start "" "jre/bin/javaw -jar Tachidesk.jar"
|
@ -6,11 +6,6 @@
|
|||||||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
||||||
|
|
||||||
echo "Downloading packr jar..."
|
|
||||||
|
|
||||||
packr="packr-all-4.0.0.jar"
|
|
||||||
curl -L "https://github.com/libgdx/packr/releases/download/4.0.0/packr-all-4.0.0.jar" -o $packr
|
|
||||||
|
|
||||||
echo "Downloading jre..."
|
echo "Downloading jre..."
|
||||||
|
|
||||||
jre="OpenJDK8U-jre_x64_windows_hotspot_8u292b10.zip"
|
jre="OpenJDK8U-jre_x64_windows_hotspot_8u292b10.zip"
|
||||||
@ -22,17 +17,15 @@ jar=$(ls ../server/build/Tachidesk-*.jar)
|
|||||||
jar_name=$(echo $jar | cut -d'/' -f4)
|
jar_name=$(echo $jar | cut -d'/' -f4)
|
||||||
release_name=$(echo $jar_name | cut -d'.' -f4 --complement)-win64
|
release_name=$(echo $jar_name | cut -d'.' -f4 --complement)-win64
|
||||||
|
|
||||||
cp $jar "Tachidesk.jar"
|
# make release dir
|
||||||
|
mkdir $release_name
|
||||||
|
|
||||||
java -jar $packr \
|
# move jre
|
||||||
--platform windows64 \
|
mv jdk8u292-b10-jre $release_name/jre
|
||||||
--jdk $jre \
|
|
||||||
--executable Tachidesk \
|
|
||||||
--classpath Tachidesk.jar \
|
|
||||||
--mainclass ir.armor.tachidesk.MainKt \
|
|
||||||
--vmargs Xmx4G \
|
|
||||||
--output $release_name
|
|
||||||
|
|
||||||
|
cp $jar $release_name/Tachidesk.jar
|
||||||
|
|
||||||
|
cp resources/Tachidesk.bat $release_name
|
||||||
cp resources/Tachidesk-debug.bat $release_name
|
cp resources/Tachidesk-debug.bat $release_name
|
||||||
|
|
||||||
zip_name=$release_name.zip
|
zip_name=$release_name.zip
|
||||||
|
Loading…
Reference in New Issue
Block a user