diff --git a/scripts/build_javaapp.sh b/scripts/build_javaapp.sh deleted file mode 100755 index f1aa7c39..00000000 --- a/scripts/build_javaapp.sh +++ /dev/null @@ -1,14 +0,0 @@ -#!/usr/bin/env bash - -set -e - -# Compile java app -cd JavaApp -chmod +x gradlew -./gradlew clean build -cd .. - -# Copy to target app -mkdir Natives/build/Release-iphoneos/PojavLauncher.app/libs -cp JavaApp/build/libs/PojavLauncher.jar Natives/build/Release-iphoneos/PojavLauncher.app/libs/launcher.jar -cp JavaApp/libs/* Natives/build/Release-iphoneos/PojavLauncher.app/libs/ diff --git a/scripts/build_natives.sh b/scripts/build_natives.sh deleted file mode 100755 index 2715c8eb..00000000 --- a/scripts/build_natives.sh +++ /dev/null @@ -1,27 +0,0 @@ -#!/usr/bin/env bash - -set -e - -rm -rf Natives/build - -# Compile natives -cd Natives -mkdir -p build -cd build -wget https://github.com/leetal/ios-cmake/raw/master/ios.toolchain.cmake -cmake .. -G Xcode -DCMAKE_TOOLCHAIN_FILE=ios.toolchain.cmake -DDEPLOYMENT_TARGET="12.0" -DENABLE_ARC=TRUE -DENABLE_VISIBILITY=FALSE -DPLATFORM=OS64 -DENABLE_BITCODE=FALSE -DENABLE_STRICT_TRY_COMPILE=FALSE -DCMAKE_XCODE_ATTRIBUTE_CODE_SIGNING_REQUIRED="NO" -DCMAKE_XCODE_ATTRIBUTE_CODE_SIGNING_ALLOWED=NO -DCMAKE_XCODE_ATTRIBUTE_CODE_SIGN_IDENTITY="" -cmake --build . --config Release --target pojavexec PojavLauncher -cd ../.. - -# Compile Assets.car -xcrun actool Natives/Assets.xcassets --compile Natives/resources --platform iphoneos --minimum-deployment-target 12.0 --app-icon AppIcon --output-partial-info-plist /dev/null - -# Compile storyboards -mkdir -p Natives/build/Release-iphoneos/PojavLauncher.app/Base.lproj -ibtool --compile Natives/build/Release-iphoneos/PojavLauncher.app/Base.lproj/MinecraftSurface.storyboardc Natives/en.lproj/MinecraftSurface.storyboard -ibtool --compile Natives/build/Release-iphoneos/PojavLauncher.app/Base.lproj/LaunchScreen.storyboardc Natives/en.lproj/LaunchScreen.storyboard - -# Copy to target app -mkdir -p Natives/build/Release-iphoneos/PojavLauncher.app/Frameworks -cp Natives/build/Release-iphoneos/libpojavexec.dylib Natives/build/Release-iphoneos/PojavLauncher.app/Frameworks/ -cp -R Natives/resources/* Natives/build/Release-iphoneos/PojavLauncher.app/ diff --git a/scripts/build_package.sh b/scripts/build_package.sh deleted file mode 100755 index cf1c784d..00000000 --- a/scripts/build_package.sh +++ /dev/null @@ -1,26 +0,0 @@ -#!/usr/bin/env bash - -set -e - -mkdir -p packages/pojavlauncher_iphoneos-arm/{Applications,var/mobile/Documents/minecraft,var/mobile/Documents/.pojavlauncher} -sudo chown 501:501 packages/pojavlauncher_iphoneos-arm/var/mobile/Documents/* -cp -R Natives/build/Release-iphoneos/PojavLauncher.app packages/pojavlauncher_iphoneos-arm/Applications -cp -R DEBIAN packages/pojavlauncher_iphoneos-arm/DEBIAN - -ldid -Sentitlements.xml packages/pojavlauncher_iphoneos-arm/Applications/PojavLauncher.app - -fakeroot dpkg-deb -b packages/pojavlauncher_iphoneos-arm - -if [[ "$DEVICE_IP" != "" ]]; -then - if [[ "$DEVICE_PORT" != "" ]]; - then - scp -P $DEVICE_PORT packages/pojavlauncher_iphoneos-arm.deb root@$DEVICE_IP:/var/tmp/pojavlauncher_iphoneos-arm.deb - ssh root@$DEVICE_IP -p $DEVICE_PORT -t "apt remove pojavlauncher; apt remove pojavlauncher-dev; dpkg -i /var/tmp/pojavlauncher_iphoneos-arm.deb; uicache -p /Applications/PojavLauncher.app" - else - scp packages/pojavlauncher_iphoneos-arm.deb root@$DEVICE_IP:/var/tmp/pojavlauncher_iphoneos-arm.deb - ssh root@$DEVICE_IP -t "apt remove pojavlauncher; apt remove pojavlauncher-dev; dpkg -i /var/tmp/pojavlauncher_iphoneos-arm.deb; uicache -p /Applications/PojavLauncher.app" - fi -else - echo "Device address not set, not installing." -fi diff --git a/scripts/javaapp_aminimake.sh b/scripts/javaapp_aminimake.sh deleted file mode 100644 index 609ef8ec..00000000 --- a/scripts/javaapp_aminimake.sh +++ /dev/null @@ -1,23 +0,0 @@ -# This one is only used for local compile on developer iphone, do not execute if -# - You don't know what will it does. -# - No OpenJDK installed. - -/bin/bash <<'EOF' - -set -e - -cd JavaApp - -shopt -s globstar - -mkdir -p local_out/classes -javac -cp "libs/*" -d local_out/classes src/main/java/**/*.java - -cd local_out/classes -jar -c -f ../launcher.jar * - -cp ../launcher.jar /Applications/PojavLauncher.app/libs/launcher.jar - -echo "BUILD SUCCESSFUL" - -EOF diff --git a/scripts/natives_aminimake.sh b/scripts/natives_aminimake.sh deleted file mode 100644 index 97e11614..00000000 --- a/scripts/natives_aminimake.sh +++ /dev/null @@ -1,41 +0,0 @@ -# This one is only used for local compile on developer iphone, do not execute if -# - You don't know what will it does. -# - No SDK and clang installed. - -#!/bin/bash -set -e - -cd Natives - -CFLAGS="-Wl,-rpath,/Applications/PojavLauncher.app/Frameworks -fobjc-arc -x objective-c -Fresources/Frameworks -Iresources/Frameworks/MetalANGLE.framework/Headers -isysroot /var/mobile/theos/sdks/iPhoneOS13.4.sdk" - -clang -framework UIKit $CFLAGS -o PojavLauncher main.c log.m JavaLauncher.c -clang -framework UIKit -framework MetalANGLE -framework CoreGraphics -framework AuthenticationServices \ - -dynamiclib $CFLAGS -o libpojavexec.dylib \ - log.m \ - AppDelegate.m \ - SceneDelegate.m \ - UILauncher.m \ - LauncherViewController.m \ - LauncherPreferencesViewController.m \ - LoginViewController.m \ - SurfaceViewController.m \ - AboutLauncherViewController.m \ - LauncherFAQViewController.m \ - egl_bridge_ios.m \ - ios_uikit_bridge.m \ - customcontrols/ControlButton.m \ - egl_bridge.c \ - input_bridge_v3.c \ - utils.c \ -\ - -DGLES_TESTZ -DUSE_EGLZ -# -Wl,-undefined,dynamic_lookup - -ldid -S../entitlements.xml PojavLauncher -ldid -S../entitlements.xml libpojavexec.dylib - -cp PojavLauncher /Applications/PojavLauncher.app/PojavLauncher -cp libpojavexec.dylib /Applications/PojavLauncher.app/Frameworks/libpojavexec.dylib - -echo "BUILD SUCCESSFUL"