Skip to content

Commit 24bd274

Browse files
committed
chore: satisfy ci
Signed-off-by: Lessica <82flex@gmail.com>
1 parent 8980c0b commit 24bd274

1 file changed

Lines changed: 11 additions & 5 deletions

File tree

build.sh

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ VERSION=$1
1111
# Strip leading "v" from version if present
1212
VERSION=${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
1520
xcodebuild 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

2430
chmod 0644 Resources/Info.plist
2531
cp supports/entitlements.plist TrollSpeed.xcarchive/Products
26-
cd TrollSpeed.xcarchive/Products/Applications
32+
cd TrollSpeed.xcarchive/Products/Applications || exit
2733
codesign --remove-signature TrollSpeed.app
28-
cd -
29-
cd TrollSpeed.xcarchive/Products
34+
cd - || exit
35+
cd TrollSpeed.xcarchive/Products || exit
3036
mv Applications Payload
3137
ldid -Sentitlements.plist Payload/TrollSpeed.app
3238
chmod 0644 Payload/TrollSpeed.app/Info.plist
3339
zip -qr TrollSpeed.tipa Payload
34-
cd -
40+
cd - || exit
3541
mkdir -p packages
3642
mv TrollSpeed.xcarchive/Products/TrollSpeed.tipa packages/TrollSpeed+AppIntents16_$VERSION.tipa

0 commit comments

Comments
 (0)