File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,6 +11,11 @@ VERSION=$1
1111# Strip leading "v" from version if present
1212VERSION=${VERSION# v}
1313
14+ # Set GITHUB_WORKSPACE to home directory if not set
15+ if [ -z " $GITHUB_WORKSPACE " ]; then
16+ GITHUB_WORKSPACE=" $HOME "
17+ fi
18+
1419# Build using Xcode
1520xcodebuild clean build archive \
1621-scheme TrollSpeed \
@@ -19,18 +24,19 @@ xcodebuild clean build archive \
1924-sdk iphoneos \
2025-destination ' generic/platform=iOS' \
2126-archivePath TrollSpeed \
22- CODE_SIGNING_ALLOWED=NO | xcpretty
27+ CODE_SIGNING_ALLOWED=NO \
28+ THEOS=" $GITHUB_WORKSPACE /theos" | xcpretty
2329
2430chmod 0644 Resources/Info.plist
2531cp supports/entitlements.plist TrollSpeed.xcarchive/Products
26- cd TrollSpeed.xcarchive/Products/Applications
32+ cd TrollSpeed.xcarchive/Products/Applications || exit
2733codesign --remove-signature TrollSpeed.app
28- cd -
29- cd TrollSpeed.xcarchive/Products
34+ cd - || exit
35+ cd TrollSpeed.xcarchive/Products || exit
3036mv Applications Payload
3137ldid -Sentitlements.plist Payload/TrollSpeed.app
3238chmod 0644 Payload/TrollSpeed.app/Info.plist
3339zip -qr TrollSpeed.tipa Payload
34- cd -
40+ cd - || exit
3541mkdir -p packages
3642mv TrollSpeed.xcarchive/Products/TrollSpeed.tipa packages/TrollSpeed+AppIntents16_$VERSION .tipa
You can’t perform that action at this time.
0 commit comments