From 29fc93073c483397ece7cf7bdb597b23575ced3d Mon Sep 17 00:00:00 2001 From: Hayden Date: Thu, 31 Dec 2020 20:47:34 -0500 Subject: [PATCH] Create deb --- .github/workflows/ios.yml | 18 +++++++++++------- control | 8 ++++++++ entitlements.xml | 2 +- 3 files changed, 20 insertions(+), 8 deletions(-) create mode 100644 control diff --git a/.github/workflows/ios.yml b/.github/workflows/ios.yml index ab4eb52f..0ec2f94e 100644 --- a/.github/workflows/ios.yml +++ b/.github/workflows/ios.yml @@ -24,6 +24,10 @@ jobs: # clang -fpic -shared -Wl,-all_load libprism_common.a -o libprism_common.dylib # clang -fpic -shared -Wl,-all_load libprism_es2.a -o libprism_es2.dylib + - name: Setup Dependencies + run: | + brew install ldid dpkg fakeroot + - name: Native build run: | cd Natives @@ -47,15 +51,15 @@ jobs: - name: Sign and Package IPA run: | - mkdir Payload - cp -R Natives/build/Release-iphoneos/PojavLauncher.app Payload/ - brew install ldid - ldid -Sentitlements.xml Payload/PojavLauncher.app/PojavLauncher - zip -r PojavLauncher.ipa Payload + mkdir -p packages/pojavlauncher_iphoneos-arm/{DEBIAN,Applications,var/lib/pojavlauncher} + cp -R Natives/build/Release-iphoneos/PojavLauncher.app packages/pojavlauncher_iphoneos-arm/Applications + cp control packages/pojavlauncher_iphoneos-arm/DEBIAN + ldid -Sentitlements.xml packages/pojavlauncher_iphoneos-arm/Applications/PojavLauncher.app + fakeroot dpkg-deb -b packages/pojavlauncher_iphoneos-arm - name: Upload IPA uses: actions/upload-artifact@v2 with: - name: PojavLauncher - path: PojavLauncher.ipa + name: PojavLauncher deb + path: packages/pojavlauncher_iphoneos-arm.deb diff --git a/control b/control new file mode 100644 index 00000000..ea4be773 --- /dev/null +++ b/control @@ -0,0 +1,8 @@ +Package: pojavlauncher +Maintainer: DuyKhanhTran +Architecture: iphoneos-arm +Version: 1.0 +Depends: openjdk-16-jre +Section: Games +Priority: optional +Description: Minecraft: Java Edition launcher for iOS, based on PojavLauncher Android. diff --git a/entitlements.xml b/entitlements.xml index 10667431..3bb1b980 100644 --- a/entitlements.xml +++ b/entitlements.xml @@ -2,7 +2,7 @@ com.apple.private.security.container-required - + com.apple.security.exception.files.absolute-path.read-write /