Compile the code insteaf

This commit is contained in:
CactiChameleon9 2022-05-27 19:16:10 +01:00
parent cc04ea05a5
commit 856fc23d01
2 changed files with 11 additions and 4 deletions

View File

@ -10,8 +10,15 @@ srcdir=$BUILD_DIR
pkgdir=$INSTALL_DIR
mkdir -p $srcdir $pkgdir
wget https://github.com/00-Evan/shattered-pixel-dungeon/releases/download/$pkgver/ShatteredPD-$pkgver-Desktop.jar -O ShatteredPD.jar
cp ShatteredPD.jar $pkgdir/
git clone https://github.com/00-Evan/shattered-pixel-dungeon
cd shattered-pixel-dungeon/
git stash
git pull
rm -r android ios
./gradlew desktop:release
cd ../
cp shattered-pixel-dungeon/desktop/build/libs/*.jar $pkgdir/ShatteredPD.jar
cp $ROOT/manifest.json $pkgdir/
sed -i "s/@CLICK_ARCH@/$CLICK_ARCH/g" $pkgdir/manifest.json

View File

@ -15,7 +15,8 @@
"libpng16-16",
"libgtk-3-0",
"libdbusmenu-glib4",
"default-jdk"
"default-jdk",
"libc6"
],
"install_lib": [
"/usr/lib/${ARCH_TRIPLET}/libgtk-3.so*",
@ -24,6 +25,5 @@
"/usr/lib/${ARCH_TRIPLET}/libvorbis.so.0*",
"/usr/lib/${ARCH_TRIPLET}/libSDL2-2.0.so*",
"/usr/lib/${ARCH_TRIPLET}/libsndio.so*",
"/usr/lib/${ARCH_TRIPLET}/libm.so.*"
]
}