-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: add build ios ipa without signing
- Loading branch information
1 parent
26062c8
commit 79fc376
Showing
2 changed files
with
52 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: Build | ||
on: | ||
push: | ||
branches: | ||
- main | ||
- github-build | ||
|
||
jobs: | ||
build_ios_without_signing_tvos: | ||
name: Build Expo (iOS) Without Signing | ||
runs-on: macos-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
- name: Setup | ||
uses: ./.github/actions/setup | ||
- name: Prebuild iOS | ||
run: npx expo prebuild -p ios --clean | ||
- name: Build Expo IPA | ||
run: | | ||
cd ios | ||
xcodebuild -scheme reacttube -workspace reacttube.xcworkspace -configuration release archive -archivePath reacttube.xcarchive CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO | ||
../scripts/xcarchive_to_ipa.sh reacttube.xcarchive | ||
- name: Upload IPA | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: ios_ipa | ||
path: ios/*.ipa |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/bin/bash | ||
|
||
if [ $# -eq 0 ]; then | ||
echo "Error: No argument provided. Please provide at least one argument." | ||
exit 1 | ||
fi | ||
|
||
first_arg=$1 | ||
source_dir="${first_arg%/}/Products/Applications" | ||
|
||
if [ ! -d "$source_dir" ]; then | ||
echo "Error: Source directory does not exist." | ||
exit 1 | ||
fi | ||
|
||
|
||
new_folder="Payload" | ||
rm -rf $new_folder | ||
mkdir $new_folder | ||
|
||
cp -a $source_dir/* $new_folder | ||
|
||
filename=$(find $new_folder -type d -name '*.app' -exec basename {} \; | head -n 1) | ||
zip -rmq "${filename%.*}.ipa" $new_folder |