-
Notifications
You must be signed in to change notification settings - Fork 17
70 lines (53 loc) · 2.32 KB
/
objective-c-xcode.yml
File metadata and controls
70 lines (53 loc) · 2.32 KB
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
70
name: Builder
on:
push:
branches:
- main
env:
CMAKE_VERSION: 3.5
LLVM_VERSION: 15.0.6
jobs:
macos:
runs-on: macos-latest
# needs: delete_latest_release
steps:
- name: checkout master
uses: actions/checkout@master
- name: delete latest release
uses: dev-drprasad/delete-tag-and-release@v0.2.1
with:
delete_release: true
tag_name: latest
env:
GITHUB_TOKEN: ${{ secrets.TOKEN }}
- name: Set up Xcode 16
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '16.2.0' # 指定 Xcode 16 的版本
- name: Check Xcode version
run: xcodebuild -version
- name: compile macos
run: |
# xcodebuild -showBuildSettings
# xcodebuild -scheme process_inject -derivedDataPath ./build -configuration Release CODE_SIGNING_ALLOWED=NO CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO -quiet -showBuildTimingSummary
xcodebuild -project process_inject.xcodeproj -scheme process_inject -configuration Release -arch arm64 -arch x86_64 ONLY_ACTIVE_ARCH=NO BUILD_LIBRARY_FOR_DISTRIBUTION=YES CODE_SIGNING_ALLOWED=NO CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO -derivedDataPath ./build
BUILT_PRODUCTS_DIR="./build/Build/Products/Release/"
ls -la "$BUILT_PRODUCTS_DIR"
echo "-----------Checking entitlements before signing:-----------"
codesign -d --entitlements - "$BUILT_PRODUCTS_DIR/process_inject"
sudo codesign -f -s - --all-architectures --deep --entitlements "process_inject.entitlements" "$BUILT_PRODUCTS_DIR/process_inject"
echo "-----------Checking entitlements after signing:-----------"
codesign -d --entitlements - "$BUILT_PRODUCTS_DIR/process_inject"
tar -czvf process_inject.tar.gz -C "$BUILT_PRODUCTS_DIR" process_inject
- name: update release
uses: ncipollo/release-action@v1
with:
token: ${{ secrets.TOKEN }}
tag: latest
body: |
A macOS dylib project based on the Dobby Hook framework, aimed at enhancing and extending the functionality of target software.
## Latest Commit
${{ github.event.head_commit.message }}
artifacts: "process_inject.tar.gz"
allowUpdates: true
replacesArtifacts: true