From 6abd949e6a151a6581725a32cb2dc8f6dd26efe5 Mon Sep 17 00:00:00 2001 From: 82Flex <82flex@gmail.com> Date: Sat, 27 Jan 2024 23:32:12 +0800 Subject: [PATCH] ci: add app intents Signed-off-by: 82Flex <82flex@gmail.com> --- .github/workflows/build-release.yml | 3 +++ CHANGELOG.txt | 4 ++-- TrollSpeed.xcodeproj/project.pbxproj | 4 ++++ build.sh | 15 ++++++++++++++- layout/Applications/TrollSpeed.app/Info.plist | 4 ++-- layout/DEBIAN/control | 2 +- supports/Sandbox-Info.plist | 4 ++-- 7 files changed, 28 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build-release.yml b/.github/workflows/build-release.yml index aeff36e..16b1fb5 100644 --- a/.github/workflows/build-release.yml +++ b/.github/workflows/build-release.yml @@ -103,6 +103,7 @@ jobs: run: | cd $GITHUB_WORKSPACE/TrollSpeed ./gen-control.sh ${{ env.GIT_TAG }} + ./build.sh ${{ env.GIT_TAG }} THEOS_PACKAGE_SCHEME=rootless FINALPACKAGE=1 make package FINALPACKAGE=1 make clean FINALPACKAGE=1 make package @@ -118,6 +119,7 @@ jobs: name: TrollSpeed_${{ env.GIT_TAG }} path: | TrollSpeed/packages/TrollSpeed_*.tipa + TrollSpeed/packages/TrollSpeed+Intents_*.tipa TrollSpeed/packages/ch.xxtou.hudapp_*.deb - name: Upload symbols @@ -134,4 +136,5 @@ jobs: body_path: TrollSpeed/CHANGELOG.txt files: | TrollSpeed/packages/TrollSpeed_*.tipa + TrollSpeed/packages/TrollSpeed+Intents_*.tipa TrollSpeed/packages/ch.xxtou.hudapp_*.deb diff --git a/CHANGELOG.txt b/CHANGELOG.txt index a003d88..27c7d90 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -1,2 +1,2 @@ -- Appearance: Use semi-bold font for color inverted HUD. -- Appearance: Disable fade out effect for color inverted HUD. \ No newline at end of file +- Feature: Add App Intents (i.e. Shortcuts) support for iOS 16 and above, use `TrollSpeed+Intents_*.tipa`. +- For those who don't want to use App Intents or are using iOS 15 and below, use `TrollSpeed_*.tipa`. \ No newline at end of file diff --git a/TrollSpeed.xcodeproj/project.pbxproj b/TrollSpeed.xcodeproj/project.pbxproj index 515d146..a6a2dc9 100644 --- a/TrollSpeed.xcodeproj/project.pbxproj +++ b/TrollSpeed.xcodeproj/project.pbxproj @@ -590,6 +590,7 @@ INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.developer-tools"; INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; INFOPLIST_KEY_UISupportedInterfaceOrientations = UIInterfaceOrientationPortrait; + IPHONEOS_DEPLOYMENT_TARGET = 16.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -632,6 +633,7 @@ INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.developer-tools"; INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; INFOPLIST_KEY_UISupportedInterfaceOrientations = UIInterfaceOrientationPortrait; + IPHONEOS_DEPLOYMENT_TARGET = 16.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -801,6 +803,7 @@ INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.developer-tools"; INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; INFOPLIST_KEY_UISupportedInterfaceOrientations = UIInterfaceOrientationPortrait; + IPHONEOS_DEPLOYMENT_TARGET = 16.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -844,6 +847,7 @@ INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.developer-tools"; INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; INFOPLIST_KEY_UISupportedInterfaceOrientations = UIInterfaceOrientationPortrait; + IPHONEOS_DEPLOYMENT_TARGET = 16.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", diff --git a/build.sh b/build.sh index 6a02cde..3cf2c1e 100755 --- a/build.sh +++ b/build.sh @@ -1,5 +1,17 @@ #!/bin/sh +# This script is used to build the TrollSpeed app and create a tipa file with Xcode. +if [ $# -ne 1 ]; then + echo "Usage: $0 " + exit 1 +fi + +VERSION=$1 + +# Strip leading "v" from version if present +VERSION=${VERSION#v} + +# Build using Xcode xcodebuild clean build archive \ -scheme TrollSpeed \ -project TrollSpeed.xcodeproj \ @@ -17,4 +29,5 @@ mv Applications Payload ldid -Sentitlements.plist Payload/TrollSpeed.app zip -qr TrollSpeed.tipa Payload cd - -mv TrollSpeed.xcarchive/Products/TrollSpeed.tipa . +mkdir -p packages +mv TrollSpeed.xcarchive/Products/TrollSpeed.tipa packages/TrollSpeed+Intents_$VERSION.tipa diff --git a/layout/Applications/TrollSpeed.app/Info.plist b/layout/Applications/TrollSpeed.app/Info.plist index d7c809a..07360fd 100644 --- a/layout/Applications/TrollSpeed.app/Info.plist +++ b/layout/Applications/TrollSpeed.app/Info.plist @@ -21,7 +21,7 @@ CFBundlePackageType APPL CFBundleShortVersionString - 1.10.2 + 1.11.0 CFBundleSignature ???? CFBundleURLTypes @@ -36,7 +36,7 @@ CFBundleVersion - 1.10.2 + 1.11.0 LSApplicationCategoryType public.app-category.developer-tools NSHumanReadableCopyright diff --git a/layout/DEBIAN/control b/layout/DEBIAN/control index 3a1f30c..baa10b1 100644 --- a/layout/DEBIAN/control +++ b/layout/DEBIAN/control @@ -1,6 +1,6 @@ Package: ch.xxtou.hudapp Name: HUD App -Version: 1.10.2 +Version: 1.11.0 Section: Tweaks Depends: firmware (>= 14.0), mobilesubstrate (>= 0.9.7000) Architecture: iphoneos-arm diff --git a/supports/Sandbox-Info.plist b/supports/Sandbox-Info.plist index ce59375..e0894e5 100644 --- a/supports/Sandbox-Info.plist +++ b/supports/Sandbox-Info.plist @@ -21,7 +21,7 @@ CFBundlePackageType APPL CFBundleShortVersionString - 1.10.2 + 1.11.0 CFBundleSignature ???? CFBundleURLTypes @@ -36,7 +36,7 @@ CFBundleVersion - 1.10.2 + 1.11.0 LSApplicationCategoryType public.app-category.developer-tools NSHumanReadableCopyright