Skip to content
This repository has been archived by the owner on Oct 29, 2024. It is now read-only.

Commit

Permalink
ci: add app intents
Browse files Browse the repository at this point in the history
Signed-off-by: 82Flex <[email protected]>
  • Loading branch information
Lessica committed Jan 27, 2024
1 parent 691cdd7 commit 6abd949
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 8 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
4 changes: 2 additions & 2 deletions CHANGELOG.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
- Appearance: Use semi-bold font for color inverted HUD.
- Appearance: Disable fade out effect for color inverted HUD.
- 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`.
4 changes: 4 additions & 0 deletions TrollSpeed.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down
15 changes: 14 additions & 1 deletion build.sh
Original file line number Diff line number Diff line change
@@ -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 <version>"
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 \
Expand All @@ -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
4 changes: 2 additions & 2 deletions layout/Applications/TrollSpeed.app/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.10.2</string>
<string>1.11.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleURLTypes</key>
Expand All @@ -36,7 +36,7 @@
</dict>
</array>
<key>CFBundleVersion</key>
<string>1.10.2</string>
<string>1.11.0</string>
<key>LSApplicationCategoryType</key>
<string>public.app-category.developer-tools</string>
<key>NSHumanReadableCopyright</key>
Expand Down
2 changes: 1 addition & 1 deletion layout/DEBIAN/control
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions supports/Sandbox-Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.10.2</string>
<string>1.11.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleURLTypes</key>
Expand All @@ -36,7 +36,7 @@
</dict>
</array>
<key>CFBundleVersion</key>
<string>1.10.2</string>
<string>1.11.0</string>
<key>LSApplicationCategoryType</key>
<string>public.app-category.developer-tools</string>
<key>NSHumanReadableCopyright</key>
Expand Down

0 comments on commit 6abd949

Please sign in to comment.