Skip to content

Commit 759dd0d

Browse files
committed
feat: add apple signing
1 parent d62450d commit 759dd0d

File tree

2 files changed

+33
-32
lines changed

2 files changed

+33
-32
lines changed

.github/workflows/main.yml

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
name: Cross-compile with fyne-cross
2-
3-
42
on:
53
push:
64
branches:
@@ -90,7 +88,22 @@ jobs:
9088
echo '</dict>' >> SoundscapeSync.app/Contents/Info.plist
9189
echo '</plist>' >> SoundscapeSync.app/Contents/Info.plist
9290
chmod +x SoundscapeSync.app/Contents/MacOS/SoundscapeSync
93-
zip -r SoundscapeSync.app.zip SoundscapeSync.app
91+
- name: Install certificate
92+
run: |
93+
mkdir -p ~/certs
94+
echo "$MAC_CERT_P12" | base64 --decode > ~/certs/mac_dev_cert.p12
95+
security create-keychain -p "" build.keychain
96+
security import ~/certs/mac_dev_cert.p12 -k build.keychain -P "$MAC_CERT_P12_PASSWORD" -A
97+
security set-key-partition-list -S apple-tool:,apple: -s -k "" build.keychain
98+
security default-keychain -s build.keychain
99+
security unlock-keychain -p "" build.keychain
100+
- name: Sign App
101+
run: |
102+
codesign --deep --force --options runtime --sign "Developer ID Application: Cloonar Technologies GmbH" SoundscapeSync.app
103+
- name: Verify signature
104+
run: codesign --verify --deep --strict --verbose=2 SoundscapeSync.app
105+
- name: Zip macOS build
106+
run: zip -r SoundscapeSync.app.zip SoundscapeSync.app
94107
- name: Upload macOS artifact
95108
uses: actions/upload-artifact@v4
96109
with:

.github/workflows/release.yml

Lines changed: 17 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
name: Release
2-
32
on:
43
push:
54
tags:
6-
- 'v*.*' # Adjust this pattern based on your tagging
7-
5+
- 'v*.*'
86
permissions:
97
contents: write
108

@@ -81,7 +79,22 @@ jobs:
8179
echo '</dict>' >> SoundscapeSync.app/Contents/Info.plist
8280
echo '</plist>' >> SoundscapeSync.app/Contents/Info.plist
8381
chmod +x SoundscapeSync.app/Contents/MacOS/SoundscapeSync
84-
zip -r SoundscapeSync.app.zip SoundscapeSync.app
82+
- name: Install certificate
83+
run: |
84+
mkdir -p ~/certs
85+
echo "$MAC_CERT_P12" | base64 --decode > ~/certs/mac_dev_cert.p12
86+
security create-keychain -p "" build.keychain
87+
security import ~/certs/mac_dev_cert.p12 -k build.keychain -P "$MAC_CERT_P12_PASSWORD" -A
88+
security set-key-partition-list -S apple-tool:,apple: -s -k "" build.keychain
89+
security default-keychain -s build.keychain
90+
security unlock-keychain -p "" build.keychain
91+
- name: Sign App
92+
run: |
93+
codesign --deep --force --options runtime --sign "Developer ID Application: Cloonar Technologies GmbH" SoundscapeSync.app
94+
- name: Verify signature
95+
run: codesign --verify --deep --strict --verbose=2 SoundscapeSync.app
96+
- name: Zip macOS build
97+
run: zip -r SoundscapeSync.app.zip SoundscapeSync.app
8598
- name: Upload macOS artifact
8699
uses: actions/upload-artifact@v4
87100
with:
@@ -110,31 +123,6 @@ jobs:
110123
draft: false
111124
prerelease: true
112125

113-
# - uses: actions/download-artifact@v4
114-
# with:
115-
# name: linux-build
116-
# - name: Prepare DEB package
117-
# run: |
118-
# mkdir -p .debpkg/DEBIAN
119-
# echo "Package: SoundscapeSync" > .debpkg/DEBIAN/control
120-
# echo "Version: ${{ github.event.inputs.version }}" >> .debpkg/DEBIAN/control
121-
# echo "Architecture: amd64" >> .debpkg/DEBIAN/control
122-
# echo "Maintainer: Dominik Polakovics <dominik.polakovics@cloonar.com>" >> .debpkg/DEBIAN/control
123-
# mkdir -p .debpkg/usr/bin
124-
# cp fyne-cross/bin/linux-amd64/soundscape-sync .debpkg/usr/bin
125-
# - name: Create DEB package
126-
# uses: jiro4989/build-deb-action@v3
127-
# with:
128-
# package: SoundscapeSync
129-
# package_root: .debpkg
130-
# maintainer: "Dominik Polakovics <dominik.polakovics@cloonar.com>"
131-
# version: "${{ github.event.inputs.version }}"
132-
# arch: 'amd64'
133-
# desc: 'This is my sample package.'
134-
# depends: 'ffmpeg'
135-
# - name: get file name
136-
# run: |
137-
# mv *.deb soundscapesync-${{ github.event.inputs.version }}.deb
138126
- uses: actions/download-artifact@v4
139127
with:
140128
name: linux-build

0 commit comments

Comments
 (0)