Skip to content

Commit d163d84

Browse files
authored
Merge pull request #48 from Barre/sign_apple
Implement notarization on desktop apple binaries.
2 parents 9461833 + f13dd7d commit d163d84

File tree

4 files changed

+25
-1
lines changed

4 files changed

+25
-1
lines changed

.github/workflows/ci.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,16 @@ jobs:
224224
name: Install rust apple arm target
225225
run: rustup target add aarch64-apple-darwin
226226

227+
- if: startsWith(matrix.os, 'macos') == true
228+
name: Install apple api key private key
229+
run: |
230+
mkdir -p ~/private_keys
231+
echo "$API_KEY" >> ~/private_keys/AuthKey_"$API_KEY_ID".p8
232+
shell: bash
233+
env:
234+
API_KEY: ${{secrets.APPLE_API_KEY_CONTENTS}}
235+
API_KEY_ID: ${{secrets.APPLE_API_KEY}}
236+
227237
- name: Install node packages
228238
working-directory: ./web_frontend
229239
run: npm i
@@ -238,6 +248,12 @@ jobs:
238248
uses: tauri-apps/tauri-action@5a6072a9edbbf71718caee364b5b96731d7580fc #v0 does not handle universal builds
239249
env:
240250
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
251+
ENABLE_CODE_SIGNING: ${{ secrets.APPLE_CERTIFICATE }}
252+
APPLE_CERTIFICATE: ${{ secrets.APPLE_CERTIFICATE }}
253+
APPLE_CERTIFICATE_PASSWORD: ${{ secrets.APPLE_CERTIFICATE_PASSWORD }}
254+
APPLE_SIGNING_IDENTITY: ${{ secrets.APPLE_SIGNING_IDENTITY }}
255+
APPLE_API_ISSUER: ${{ secrets.APPLE_API_ISSUER }}
256+
APPLE_API_KEY: ${{ secrets.APPLE_API_KEY }}
241257
with:
242258
tagName: privaxy-v__VERSION__ # the action automatically replaces \_\_VERSION\_\_ with the app version
243259
releaseName: 'Privaxy v__VERSION__'

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## v0.5.1
4+
5+
- Apple build of desktop app is now notarized.
6+
37
## v0.5.0
48

59
- Add builds for apple silicon

Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ lto = true
88
codegen-units = 1
99
opt-level = 3
1010

11+
[profile.release.package.privaxy_app]
12+
codegen-units = 1
13+
opt-level = 3
14+
1115
[profile.release.package.web_frontend]
1216
codegen-units = 1
1317
opt-level = 's'

src-tauri/tauri.conf.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
},
88
"package": {
99
"productName": "Privaxy",
10-
"version": "0.5.0"
10+
"version": "0.5.1"
1111
},
1212
"tauri": {
1313
"allowlist": {

0 commit comments

Comments
 (0)