forked from roothide/RootHideManagerApp
-
Notifications
You must be signed in to change notification settings - Fork 3
69 lines (59 loc) · 1.97 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
name: Build and Package Rootful
on:
push:
branches: [ rootful ]
pull_request:
branches: [ rootful ]
workflow_dispatch:
jobs:
build:
runs-on: macos-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Set up Xcode
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: 'latest'
- name: Install ldid
run: brew install ldid
- name: Build .app with Xcode
run: |
xcodebuild -project varClean.xcodeproj \
-scheme varClean \
-configuration Release \
-sdk iphoneos \
-destination 'generic/platform=iOS' \
MARKETING_VERSION=$THEOS_PACKAGE_BASE_VERSION \
IPHONEOS_DEPLOYMENT_TARGET=14.0 \
CODE_SIGN_IDENTITY="" \
AD_HOC_CODE_SIGNING_ALLOWED=YES \
build
- name: Locate .app File and Prepare for Packaging
run: |
mkdir -p Payload
ROOT_HIDE_DIR=$(find /Users/runner/Library/Developer/Xcode/DerivedData/ -name 'varClean-*' -type d -print | head -n 1)
APP_DIR="${ROOT_HIDE_DIR}/Build/Products/Release-iphoneos/varClean.app"
cp -r "$APP_DIR" Payload/
- name: Sign the .app with entitlements
run: |
ldid -S./entitlements.plist Payload/varClean.app/varClean
- name: Re-package IPA after signing
run: |
zip -r9 varClean14.tipa Payload
- name: Upload IPA
uses: actions/upload-artifact@v3
with:
name: varClean14
path: varClean14.tipa
- name: Create Release and Upload IPA (Rootful)
uses: softprops/action-gh-release@v1
if: success()
with:
files: varClean14.tipa
tag_name: rootful
name: Rootful
draft: false
prerelease: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}