mirror of
https://github.com/jamiepine/voicebox.git
synced 2026-09-29 07:05:14 -07:00
Update macOS icon configuration and add new assets
- Changed icon source reference in build script from AppIcon.icon to voicebox.icon. - Updated tauri.conf.json to specify new resource paths for generated icon and plist files. - Added voicebox.icns and updated partial.plist to include voicebox as the application icon. - Introduced new icon.json and Voicebox.png files for the voicebox icon assets.
This commit is contained in:
@@ -5,8 +5,8 @@ fn main() {
|
|||||||
#[cfg(target_os = "macos")]
|
#[cfg(target_os = "macos")]
|
||||||
{
|
{
|
||||||
let project_root = env!("CARGO_MANIFEST_DIR");
|
let project_root = env!("CARGO_MANIFEST_DIR");
|
||||||
// AppIcon.icon is in the root, two levels up from src-tauri
|
// voicebox.icon is in the root, two levels up from src-tauri
|
||||||
let icon_source = format!("{}/../../AppIcon.icon", project_root);
|
let icon_source = format!("{}/../../voicebox.icon", project_root);
|
||||||
let gen_dir = format!("{}/gen", project_root);
|
let gen_dir = format!("{}/gen", project_root);
|
||||||
|
|
||||||
std::fs::create_dir_all(&gen_dir).expect("Failed to create gen directory");
|
std::fs::create_dir_all(&gen_dir).expect("Failed to create gen directory");
|
||||||
|
|||||||
Binary file not shown.
@@ -1,5 +1,10 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||||
<plist version="1.0">
|
<plist version="1.0">
|
||||||
<dict/>
|
<dict>
|
||||||
|
<key>CFBundleIconFile</key>
|
||||||
|
<string>voicebox</string>
|
||||||
|
<key>CFBundleIconName</key>
|
||||||
|
<string>voicebox</string>
|
||||||
|
</dict>
|
||||||
</plist>
|
</plist>
|
||||||
|
|||||||
Binary file not shown.
@@ -27,9 +27,11 @@
|
|||||||
"minimumSystemVersion": "11.0",
|
"minimumSystemVersion": "11.0",
|
||||||
"infoPlist": "Info.plist"
|
"infoPlist": "Info.plist"
|
||||||
},
|
},
|
||||||
"resources": [
|
"resources": {
|
||||||
"gen/**/*"
|
"gen/Assets.car": "./",
|
||||||
]
|
"gen/voicebox.icns": "./",
|
||||||
|
"gen/partial.plist": "./"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"app": {
|
"app": {
|
||||||
"security": {
|
"security": {
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 4.6 MiB After Width: | Height: | Size: 4.6 MiB |
Reference in New Issue
Block a user