Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit30dd3e7

Browse files
ethanndicksonThomasK33
authored andcommitted
ci: set installer cert & password
Change-Id: I48dc1ede517587093699e84da01f8d6d37463581Signed-off-by: Thomas Kosiewski <tk@coder.com>
1 parentb88b08a commit30dd3e7

File tree

3 files changed

+12
-10
lines changed

3 files changed

+12
-10
lines changed

‎.env

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# Build a release locally using: op run --env-file="./.env" -- make release
2-
APPLE_CERT="op://Apple/Apple DeveloperID Application PKCS12 base64/notesPlain"
3-
CERT_PASSWORD="op://Apple/DeveloperID Application p12 password/password"
2+
APPLE_DEVELOPER_ID_PKCS12_B64="op://Apple/Apple DeveloperID Application PKCS12 base64/notesPlain"
3+
APPLE_DEVELOPER_ID_PKCS12_PASSWORD="op://Apple/DeveloperID Application p12 password/password"
44

5-
APPLE_INSTALLER_CERT="op://Apple/Developer ID Installer PKCS12 base64/notesPlain"
6-
INSTALLER_CERT_PASSWORD="op://Apple/DeveloperID Installer Password/password"
5+
APPLE_INSTALLER_PKCS12_B64="op://Apple/Developer ID Installer PKCS12 base64/notesPlain"
6+
APPLE_INSTALLER_PKCS12_PASSWORD="op://Apple/DeveloperID Installer Password/password"
77

88
APPLE_ID="op://Apple/3apcadvvcojjbpxnd7m5fgh5wm/username"
99
APPLE_ID_PASSWORD="op://Apple/3apcadvvcojjbpxnd7m5fgh5wm/password"

‎.github/workflows/release.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,13 @@ jobs:
4141

4242
-name:Build
4343
env:
44-
APPLE_CERT:${{ secrets.APPLE_DEVELOPER_ID_PKCS12_B64 }}
44+
APPLE_DEVELOPER_ID_PKCS12_B64:${{ secrets.APPLE_DEVELOPER_ID_PKCS12_B64 }}
45+
APPLE_DEVELOPER_ID_PKCS12_PASSWORD:${{ secrets.APPLE_DEVELOPER_ID_PKCS12_PASSWORD }}
46+
APPLE_INSTALLER_PKCS12_B64:${{ secrets.APPLE_INSTALLER_PKCS12_PASSWORD }}
47+
APPLE_INSTALLER_PKCS12_PASSWORD:${{ secrets.APPLE_INSTALLER_PKCS12_B64 }}
4548
APPLE_ID:${{ secrets.APPLE_NOTARYTOOL_USERNAME }}
4649
APPLE_ID_PASSWORD:${{ secrets.APPLE_NOTARYTOOL_PASSWORD }}
4750
APP_PROF:${{ secrets.CODER_DESKTOP_APP_PROVISIONPROFILE_B64 }}
48-
CERT_PASSWORD:${{ secrets.APPLE_DEVELOPER_ID_PKCS12_PASSWORD }}
4951
EXT_PROF:${{ secrets.CODER_DESKTOP_EXTENSION_PROVISIONPROFILE_B64 }}
5052
run:make release
5153

‎Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,12 @@ $(KEYCHAIN_FILE):
5353
security set-keychain-settings -lut 21600"$(APP_SIGNING_KEYCHAIN)"
5454
security unlock-keychain -p"""$(APP_SIGNING_KEYCHAIN)"
5555
@tempfile=$$(mktemp);\
56-
echo"$$APPLE_CERT"| base64 -d>$$tempfile;\
57-
security import$$tempfile -P'$(CERT_PASSWORD)' -A -t cert -f pkcs12 -k"$(APP_SIGNING_KEYCHAIN)";\
56+
echo"$$APPLE_DEVELOPER_ID_PKCS12_B64"| base64 -d>$$tempfile;\
57+
security import$$tempfile -P'$(APPLE_DEVELOPER_ID_PKCS12_PASSWORD)' -A -t cert -f pkcs12 -k"$(APP_SIGNING_KEYCHAIN)";\
5858
rm$$tempfile
5959
@tempfile=$$(mktemp);\
60-
echo"$$APPLE_INSTALLER_CERT"| base64 -d>$$tempfile;\
61-
security import$$tempfile -P'$(INSTALLER_CERT_PASSWORD)' -A -t cert -f pkcs12 -k"$(APP_SIGNING_KEYCHAIN)";\
60+
echo"$$APPLE_INSTALLER_PKCS12_B64"| base64 -d>$$tempfile;\
61+
security import$$tempfile -P'$(APPLE_INSTALLER_PKCS12_PASSWORD)' -A -t cert -f pkcs12 -k"$(APP_SIGNING_KEYCHAIN)";\
6262
rm$$tempfile
6363
security list-keychains -d user -s$$(security list-keychains -d user | tr -d '\"')"$(APP_SIGNING_KEYCHAIN)"
6464

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp