diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index 54be7a97..57286125 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -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 }} diff --git a/src/styles/globals.css b/src/styles/globals.css index 4b90def2..b86dcfcd 100644 --- a/src/styles/globals.css +++ b/src/styles/globals.css @@ -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));