fix: dropdown text invisible on macOS + correct codesign order for DMG
Some checks failed
Auto Tag / auto-tag (push) Successful in 4s
Test / rust-fmt-check (push) Successful in 57s
Release / build-macos-arm64 (push) Successful in 2m43s
Test / rust-clippy (push) Successful in 7m17s
Test / rust-tests (push) Successful in 8m10s
Test / frontend-typecheck (push) Successful in 1m25s
Test / frontend-tests (push) Successful in 1m20s
Release / build-linux-amd64 (push) Successful in 16m2s
Release / build-windows-amd64 (push) Successful in 13m17s
Release / build-linux-arm64 (push) Has been cancelled

- globals.css: add button reset with -webkit-appearance: none and
  -webkit-text-fill-color: currentColor so SelectTrigger text is visible
  on macOS WebKit without breaking Tailwind text-* variant overrides
- release.yml: build .app only first, ad-hoc sign it, then create DMG
  via hdiutil so the signed .app is inside the DMG (previously codesign
  ran after Tauri already sealed the unsigned .app into the DMG)
This commit is contained in:
Shaun Arman 2026-03-30 16:43:00 -05:00
parent 720c7511cd
commit 790f9520bd
2 changed files with 19 additions and 3 deletions

View File

@ -116,9 +116,15 @@ jobs:
npm ci --legacy-peer-deps
rustup target add aarch64-apple-darwin
cargo install tauri-cli --version "^2" --locked
CI=true cargo tauri build --target aarch64-apple-darwin
codesign --deep --force --sign - \
src-tauri/target/aarch64-apple-darwin/release/bundle/macos/TFTSR.app
# Build the .app bundle only (no DMG yet so we can sign before packaging)
CI=true cargo tauri build --target aarch64-apple-darwin --bundles app
APP=src-tauri/target/aarch64-apple-darwin/release/bundle/macos/TFTSR.app
# Ad-hoc sign: changes Gatekeeper error from "damaged" to "unidentified developer"
codesign --deep --force --sign - "$APP"
# Create DMG from the signed .app
mkdir -p src-tauri/target/aarch64-apple-darwin/release/bundle/dmg
DMG=src-tauri/target/aarch64-apple-darwin/release/bundle/dmg/TFTSR.dmg
hdiutil create -volname "TFTSR" -srcfolder "$APP" -ov -format UDZO "$DMG"
- name: Upload artifacts
env:
RELEASE_TOKEN: ${{ secrets.RELEASE_TOKEN }}

View File

@ -59,6 +59,16 @@
-webkit-text-fill-color: hsl(var(--foreground));
}
/* Reset button appearance so macOS WebKit doesn't apply system button styling.
Use currentColor so -webkit-text-fill-color always matches whatever Tailwind
sets via text-* utilities (e.g. text-primary-foreground). */
button {
-webkit-appearance: none;
appearance: none;
color: inherit;
-webkit-text-fill-color: currentColor;
}
input::placeholder, textarea::placeholder {
color: hsl(var(--muted-foreground));
-webkit-text-fill-color: hsl(var(--muted-foreground));