From 682911c3a23fcf2ccf1e7133fbb4524aedff14f3 Mon Sep 17 00:00:00 2001 From: hoax Date: Mon, 23 Sep 2024 15:06:58 +0530 Subject: [PATCH] bug: testing codesign for macos --- .github/workflows/build.yml | 5 +++-- app/src-tauri/Cargo.toml | 1 + app/src/routes/+page.svelte | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 410f1ef..8a53cfa 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 }} diff --git a/app/src-tauri/Cargo.toml b/app/src-tauri/Cargo.toml index 033386a..dbd7908 100644 --- a/app/src-tauri/Cargo.toml +++ b/app/src-tauri/Cargo.toml @@ -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" diff --git a/app/src/routes/+page.svelte b/app/src/routes/+page.svelte index 9a29497..5fab57b 100644 --- a/app/src/routes/+page.svelte +++ b/app/src/routes/+page.svelte @@ -82,7 +82,7 @@ {:else} - {$ctx.page} + {$ctx.page || "Untitled"} {/if}