Skip to content

Commit c414b42

Browse files
committed
ci: update beta workflow for code signing verification and appcast generation
1 parent 0b34a28 commit c414b42

File tree

5 files changed

+40
-90
lines changed

5 files changed

+40
-90
lines changed

.github/workflows/beta.yml

Lines changed: 39 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,53 @@ jobs:
2020
xcodebuild clean build \
2121
-project Micmute.xcodeproj \
2222
-scheme Micmute \
23-
-configuration Debug \
23+
-configuration Release \
2424
-destination "platform=macOS" \
25-
CODE_SIGN_IDENTITY="" \
26-
CODE_SIGNING_REQUIRED=NO \
25+
CODE_SIGN_IDENTITY="${{ secrets.SIGNING_PASSWORD }}" \
26+
CODE_SIGNING_REQUIRED=YES \
2727
-derivedDataPath build_output
2828
29+
- name: Verify code signing
30+
run: |
31+
cd ./build_output/Build/Products/Release
32+
codesign --deep -vvv --verify Micmute.app
33+
if [ $? -eq 0 ]; then
34+
echo "Code signing verification succeeded."
35+
else
36+
echo "Code signing verification failed."
37+
exit 1
38+
fi
39+
spctl -a -t exec -vvv Micmute.app
40+
2941
- name: Archive artifact
3042
run: |
31-
cd ./build_output/Build/Products/Debug
43+
cd ./build_output/Build/Products/Release
3244
ditto -c -k --sequesterRsrc --keepParent Micmute.app Micmute-Beta.zip
3345
mv Micmute-Beta.zip $GITHUB_WORKSPACE/Micmute-Beta.zip
3446
47+
- name: Generate Sparkle appcast and sign artifact
48+
run: |
49+
echo "${{ secrets.SPARKLE_PRIVATE_KEY }}" | base64 --decode > private_key.pem
50+
51+
git clone https://github.com/sparkle-project/Sparkle.git
52+
cd Sparkle/bin
53+
chmod +x generate_appcast
54+
55+
openssl dgst -sha256 -binary < $GITHUB_WORKSPACE/Micmute-Beta.zip | openssl dgst -sha256 -sign ./private_key.pem -out $GITHUB_WORKSPACE/Micmute-Beta.zip.sig
56+
57+
./generate_appcast --private-key ./private_key.pem --download-url-prefix "https://github.com/rokartur/Micmute/releases/latest/download/" $GITHUB_WORKSPACE
58+
59+
mv appcast.xml $GITHUB_WORKSPACE/appcast.xml
60+
61+
- name: Commit appcast.xml
62+
run: |
63+
cd $GITHUB_WORKSPACE
64+
git config user.email "action@github.com"
65+
git config user.name "GitHub Action"
66+
git add appcast.xml
67+
git commit -m "chore: update appcast.xml for beta release" || echo "No changes to commit"
68+
git push "https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git" HEAD:${{ github.ref }}
69+
3570
- name: Upload artifact
3671
uses: actions/upload-artifact@v4
3772
with:

Micmute/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<key>SUFeedURL</key>
1212
<string>https://rokartur.github.io/Micmute/appcast.xml</string>
1313
<key>SUPublicEDKey</key>
14-
<string>+wdoSXdVfUtgIGgJa9kBlmJZ7O1DNYDEuQTD7rhRamA=</string>
14+
<string>y8b1H8DtpR8MDFzAE0Xr/72ovZpsGiHXjno5F5rpYRs=</string>
1515
<key>SUScheduledCheckInterval</key>
1616
<integer>86400</integer>
1717
<key>SUEnableInstallerLauncherService</key>

Micmute/Localizable.xcstrings

Lines changed: 0 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,6 @@
2424
}
2525
}
2626
},
27-
"Appearance" : {
28-
"extractionState" : "stale",
29-
"localizations" : {
30-
"pl" : {
31-
"stringUnit" : {
32-
"state" : "translated",
33-
"value" : "Wygląd"
34-
}
35-
}
36-
}
37-
},
3827
"Author" : {
3928
"localizations" : {
4029
"pl" : {
@@ -103,17 +92,6 @@
10392
},
10493
"Duration" : {
10594

106-
},
107-
"Duration:" : {
108-
"extractionState" : "stale",
109-
"localizations" : {
110-
"pl" : {
111-
"stringUnit" : {
112-
"state" : "translated",
113-
"value" : "Czas trwania"
114-
}
115-
}
116-
}
11795
},
11896
"Fade" : {
11997
"localizations" : {
@@ -135,20 +113,6 @@
135113
}
136114
}
137115
},
138-
"Grayscale icon" : {
139-
140-
},
141-
"Keyboard shortcut" : {
142-
"extractionState" : "stale",
143-
"localizations" : {
144-
"pl" : {
145-
"stringUnit" : {
146-
"state" : "translated",
147-
"value" : "Skrót klawiszowy"
148-
}
149-
}
150-
}
151-
},
152116
"Large" : {
153117
"localizations" : {
154118
"pl" : {
@@ -311,9 +275,6 @@
311275
}
312276
}
313277
}
314-
},
315-
"Push to talk" : {
316-
317278
},
318279
"Repository" : {
319280
"localizations" : {
@@ -367,17 +328,6 @@
367328
},
368329
"Show" : {
369330

370-
},
371-
"Show notification" : {
372-
"extractionState" : "stale",
373-
"localizations" : {
374-
"pl" : {
375-
"stringUnit" : {
376-
"state" : "translated",
377-
"value" : "Pokaż powiadomienie"
378-
}
379-
}
380-
}
381331
},
382332
"Shows menu" : {
383333

@@ -394,17 +344,6 @@
394344
},
395345
"Toggle mute" : {
396346

397-
},
398-
"Type:" : {
399-
"extractionState" : "stale",
400-
"localizations" : {
401-
"pl" : {
402-
"stringUnit" : {
403-
"state" : "translated",
404-
"value" : "Typ"
405-
}
406-
}
407-
}
408347
},
409348
"Unmuted" : {
410349
"localizations" : {

Micmute/Views/GeneralView.swift

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -42,36 +42,12 @@ struct GeneralView: View {
4242
Spacer()
4343
Toggle("", isOn: $launchAtLogin.isEnabled).controlSize(.mini)
4444
}
45-
46-
Divider()
47-
48-
HStack {
49-
Text("Push to talk")
50-
Spacer()
51-
Toggle("", isOn: $pushToTalk).controlSize(.mini)
52-
}
5345
}
5446
.toggleStyle(.switch)
5547
}
5648

5749
CustomSectionView(title: "Menubar icon") {
5850
VStack(spacing: 12) {
59-
HStack {
60-
Text("Launch Micmute at login")
61-
Spacer()
62-
Toggle("", isOn: $launchAtLogin.isEnabled).controlSize(.mini)
63-
}
64-
65-
Divider()
66-
67-
HStack {
68-
Text("Grayscale icon")
69-
Spacer()
70-
Toggle("", isOn: $pushToTalk).controlSize(.mini)
71-
}
72-
73-
Divider()
74-
7551
HStack {
7652
Text("Behavior on left click")
7753
Spacer()

0 commit comments

Comments
 (0)