mirror of
https://github.com/kilyabin/psysonic.git
synced 2026-07-22 22:45:41 +00:00
fix(macos): pad dock icon to Apple icon grid (#1169)
* fix(macos): pad dock icon to Apple icon grid The macOS .icns artwork filled the canvas edge-to-edge, so the dock icon rendered larger than native apps. Replace icon.icns with a build whose artwork is scaled to an ~824px body centred on a 1024px transparent canvas (Apple's icon grid). macOS-only asset; Windows .ico and Linux PNGs unchanged. Refs #1166. * fix(macos): skip the icns app-icon in dev to avoid a launch crash Tauri's dev-only macOS path sets the app icon from icon.icns via NSImage::initWithData(...).expect(...) (RunEvent::Ready); the padded icns makes that return nil and abort at launch — release builds are unaffected. Add a dev config override (tauri.dev.conf.json) that drops icon.icns from bundle.icon so the dev app icon falls back to a PNG; tauri:dev passes it via --config. Production bundling keeps the padded icon.icns. Refs #1166. * docs(changelog): add entry for macOS dock icon padding (PR #1169)
This commit is contained in:
+1
-1
@@ -9,7 +9,7 @@
|
||||
"build": "npm run prebuild:release-notes && tsc && vite build",
|
||||
"preview": "vite preview",
|
||||
"tauri": "tauri",
|
||||
"tauri:dev": "npm run prebuild:release-notes && tauri dev",
|
||||
"tauri:dev": "npm run prebuild:release-notes && tauri dev --config src-tauri/tauri.dev.conf.json",
|
||||
"tauri:build": "npm run prebuild:release-notes && tauri build",
|
||||
"lint": "eslint -c eslint.config.mjs src",
|
||||
"lint:gradual": "eslint -c eslint.config.gradual.mjs src",
|
||||
|
||||
Reference in New Issue
Block a user