Compile the code insteaf
This commit is contained in:
parent
cc04ea05a5
commit
856fc23d01
11
build.sh
11
build.sh
@ -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
|
||||
|
@ -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.*"
|
||||
]
|
||||
}
|
||||
|
Reference in New Issue
Block a user