mirror of
https://github.com/cranci1/Sora.git
synced 2026-05-16 14:51:52 +00:00
test
This commit is contained in:
parent
ee75542b2d
commit
e7faec0b1d
2 changed files with 71 additions and 0 deletions
29
.github/workflows/build-JS.yml
vendored
Normal file
29
.github/workflows/build-JS.yml
vendored
Normal file
|
|
@ -0,0 +1,29 @@
|
||||||
|
name: Build and Release IPA
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- Sora-JS
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Build IPA
|
||||||
|
runs-on: macOS-latest
|
||||||
|
steps:
|
||||||
|
- name: Use Node.js 20
|
||||||
|
uses: actions/setup-node@v4
|
||||||
|
with:
|
||||||
|
node-version: '20'
|
||||||
|
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Run ipabuild.sh
|
||||||
|
run: |
|
||||||
|
chmod +x ipabuild.sh
|
||||||
|
./ipabuild.sh
|
||||||
|
|
||||||
|
- name: Upload IPA artifact
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: Sora-IPA
|
||||||
|
path: build/Sora.ipa
|
||||||
|
compression-level: 0
|
||||||
42
ipabuild.sh
Executable file
42
ipabuild.sh
Executable file
|
|
@ -0,0 +1,42 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
cd "$(dirname "$0")"
|
||||||
|
|
||||||
|
WORKING_LOCATION="$(pwd)"
|
||||||
|
APPLICATION_NAME=Sora-JS
|
||||||
|
|
||||||
|
if [ ! -d "build" ]; then
|
||||||
|
mkdir build
|
||||||
|
fi
|
||||||
|
|
||||||
|
cd build
|
||||||
|
Sora-JS
|
||||||
|
xcodebuild -project "$WORKING_LOCATION/$APPLICATION_NAME.xcodeproj" \
|
||||||
|
-scheme "$APPLICATION_NAME" \
|
||||||
|
-configuration Release \
|
||||||
|
-derivedDataPath "$WORKING_LOCATION/build/DerivedDataApp" \
|
||||||
|
-destination 'generic/platform=iOS' \
|
||||||
|
clean build \
|
||||||
|
CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO CODE_SIGN_ENTITLEMENTS="" CODE_SIGNING_ALLOWED="NO"
|
||||||
|
|
||||||
|
DD_APP_PATH="$WORKING_LOCATION/build/DerivedDataApp/Build/Products/Release-iphoneos/$APPLICATION_NAME.app"
|
||||||
|
TARGET_APP="$WORKING_LOCATION/build/$APPLICATION_NAME.app"
|
||||||
|
cp -r "$DD_APP_PATH" "$TARGET_APP"
|
||||||
|
|
||||||
|
codesign --remove "$TARGET_APP"
|
||||||
|
if [ -e "$TARGET_APP/_CodeSignature" ]; then
|
||||||
|
rm -rf "$TARGET_APP/_CodeSignature"
|
||||||
|
fi
|
||||||
|
if [ -e "$TARGET_APP/embedded.mobileprovision" ]; then
|
||||||
|
rm -rf "$TARGET_APP/embedded.mobileprovision"
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
mkdir Payload
|
||||||
|
cp -r Sora-JS.app Payload/Sora-JS.app
|
||||||
|
strip Payload/Sora-JS.app/Sora-JS
|
||||||
|
zip -vr Sora-JS.ipa Payload
|
||||||
|
rm -rf Sora-JS.app
|
||||||
|
rm -rf Payload
|
||||||
Loading…
Reference in a new issue