-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (40 loc) · 1.3 KB
/
release.yml
File metadata and controls
47 lines (40 loc) · 1.3 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
name: Release Swift
on:
push:
tags:
- 'v*'
jobs:
build-and-release:
runs-on: macos-15
permissions:
contents: write
defaults:
run:
working-directory: swift
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Build universal binary with embedded Info.plist
run: |
swift build -c release --arch arm64 --arch x86_64 \
-Xlinker -sectcreate \
-Xlinker __TEXT \
-Xlinker __info_plist \
-Xlinker "$PWD/Sources/Resources/Info.plist"
- name: Re-sign binary with bundle identifier
run: |
BINARY=".build/apple/Products/Release/imessage-max"
BUNDLE_ID="com.cyberpapiii.imessage-max"
codesign --force --sign - --identifier "$BUNDLE_ID" "$BINARY"
echo "Verifying code signature..."
codesign -dvvv "$BINARY" 2>&1 | grep -E "(Identifier|Info.plist)"
- name: Create tarball
run: |
cd .build/apple/Products/Release
tar -czvf imessage-max-macos.tar.gz imessage-max
mv imessage-max-macos.tar.gz $GITHUB_WORKSPACE/
- name: Create GitHub Release
uses: softprops/action-gh-release@v1
with:
files: imessage-max-macos.tar.gz
generate_release_notes: true