From 4fca37971543a44d76bf27964c37a1469331c368 Mon Sep 17 00:00:00 2001 From: Youwes09 Date: Wed, 25 Feb 2026 20:21:05 -0600 Subject: [PATCH] [V1] Fixed Tauri Cert Signing --- .github/workflows/build-macos.yml | 20 -------------------- src-tauri/src/lib.rs | 2 +- 2 files changed, 1 insertion(+), 21 deletions(-) diff --git a/.github/workflows/build-macos.yml b/.github/workflows/build-macos.yml index c288d54..53d2cdd 100644 --- a/.github/workflows/build-macos.yml +++ b/.github/workflows/build-macos.yml @@ -74,26 +74,6 @@ jobs: - name: Install JS dependencies run: pnpm install --frozen-lockfile - - name: Import Apple signing certificate - env: - APPLE_CERTIFICATE: ${{ secrets.APPLE_CERTIFICATE }} - APPLE_CERTIFICATE_PASSWORD: ${{ secrets.APPLE_CERTIFICATE_PASSWORD }} - run: | - if [ -z "$APPLE_CERTIFICATE" ]; then - echo "No certificate configured — building unsigned." - exit 0 - fi - CERT_PATH=$RUNNER_TEMP/certificate.p12 - KEYCHAIN_PATH=$RUNNER_TEMP/build.keychain - echo "$APPLE_CERTIFICATE" | base64 --decode > "$CERT_PATH" - security create-keychain -p "" "$KEYCHAIN_PATH" - security set-keychain-settings -lut 21600 "$KEYCHAIN_PATH" - security unlock-keychain -p "" "$KEYCHAIN_PATH" - security import "$CERT_PATH" -P "$APPLE_CERTIFICATE_PASSWORD" \ - -A -t cert -f pkcs12 -k "$KEYCHAIN_PATH" - security set-key-partition-list -S apple-tool:,apple: -k "" "$KEYCHAIN_PATH" - security list-keychains -d user -s "$KEYCHAIN_PATH" login.keychain - - name: Download Suwayomi binaries run: | download_suwayomi() { diff --git a/src-tauri/src/lib.rs b/src-tauri/src/lib.rs index 5ef740b..e7446d0 100644 --- a/src-tauri/src/lib.rs +++ b/src-tauri/src/lib.rs @@ -157,7 +157,7 @@ fn patch_conf_key(mut text: String, key: &str, value: &str) -> String { let replacement = format!("{key} = {value}"); // Find a line that starts with the key (tolerant of surrounding whitespace) if let Some(pos) = text.lines().position(|l| l.trim_start().starts_with(key)) { - let mut lines: Vec<&str> = text.lines().collect(); + let lines: Vec<&str> = text.lines().collect(); // We need an owned replacement; rebuild from scratch. let owned: Vec = lines .iter()