Skip to content

Commit

Permalink
bug: testing codesign for macos
Browse files Browse the repository at this point in the history
  • Loading branch information
testuser-cmk committed Sep 23, 2024
1 parent 5fdddaf commit 682911c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,11 @@ jobs:
run: |
echo "${{ secrets.MACOS_CERTIFICATE }}" | base64 --decode > certificate.p12
security create-keychain -p "" build.keychain
security import certificate.p12 -k build.keychain -P "${{ secrets.MACOS_CERTIFICATE_PASSWORD }}" -T /usr/bin/codesign -A
security set-key-partition-list -S apple-tool:,apple: -s -k "" build.keychain
security default-keychain -s build.keychain
security unlock-keychain -p "" build.keychain
security import certificate.p12 -k build.keychain -P "${{ secrets.MACOS_CERTIFICATE_PASSWORD }}" -T /usr/bin/codesign -A
security find-identity
security set-key-partition-list -S 'apple-tool:,apple:,codesign:' -s -k ${{ secrets.MACOS_CERTIFICATE_PASSWORD }} build.keychain
env:
MACOS_CERTIFICATE: ${{ secrets.MACOS_CERTIFICATE }}
MACOS_CERTIFICATE_PASSWORD: ${{ secrets.MACOS_CERTIFICATE_PASSWORD }}
Expand Down
1 change: 1 addition & 0 deletions app/src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ tauri = { version = "1.7.2", features = [ "dialog-confirm", "updater", "dialog-o
window-shadows = "0.2.2"
noteapp_lib = { path = "../../backend/noteapp_lib" }

[target.'cfg(macos)'.dependencies]
cocoa = "0.26.0"
core-graphics = "0.24.0"

Expand Down
2 changes: 1 addition & 1 deletion app/src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
</Typography>
{:else}
<Typography variant="div" weight="medium" fontSize="xl">
{$ctx.page}
{$ctx.page || "Untitled"}
</Typography>
{/if}
</Typography>
Expand Down

0 comments on commit 682911c

Please sign in to comment.