Skip to content

Commit

Permalink
feat: add background image for installers
Browse files Browse the repository at this point in the history
  • Loading branch information
idootop committed Nov 21, 2024
1 parent e873647 commit 2e38319
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 4 deletions.
1 change: 0 additions & 1 deletion src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ tauri = { version = "2", features = [
"protocol-asset",
"tray-icon",
"image-png",
"devtools",
] }
tauri-plugin-process = "2"
tauri-plugin-shell = "2"
Expand Down
Binary file added src-tauri/images/dmg-background.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src-tauri/images/nsis_header.bmp
Binary file not shown.
Binary file added src-tauri/images/nsis_sidebar.bmp
Binary file not shown.
42 changes: 39 additions & 3 deletions src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
"security": {
"csp": {
"default-src": "'self' asset:",
"connect-src": "tauri: http://tauri.localhost ipc: http://ipc.localhost http://localhost:8023",
"img-src": "'self' asset: http://asset.localhost blob: data:"
"img-src": "'self' asset: http://asset.localhost blob: data:",
"connect-src": "tauri: http://tauri.localhost ipc: http://ipc.localhost http://localhost:8023"
},
"assetProtocol": {
"enable": true,
Expand All @@ -42,12 +42,48 @@
"bundle": {
"active": true,
"targets": "all",
"copyright": "Copyright © 2024 Del Wang",
"shortDescription": "AI Face Swap",
"longDescription": "Instant AI face swap, hairstyles & outfits—One click to a brand new you!",
"icon": [
"icons/32x32.png",
"icons/128x128.png",
"icons/[email protected]",
"icons/icon.icns",
"icons/icon.ico"
]
],
"macOS": {
"entitlements": null,
"frameworks": [],
"providerShortName": null,
"signingIdentity": null,
"dmg": {
"background": "images/dmg-background.jpg",
"appPosition": {
"x": 180,
"y": 170
},
"applicationFolderPosition": {
"x": 480,
"y": 170
},
"windowSize": {
"height": 400,
"width": 660
}
}
},
"windows": {
"webviewInstallMode": {
"type": "embedBootstrapper"
},
"nsis": {
"headerImage": "images/nsis_header.bmp",
"sidebarImage": "images/nsis_sidebar.bmp",
"installerIcon": "icons/icon.ico",
"languages": ["SimpChinese", "English"],
"displayLanguageSelector": true
}
}
}
}

0 comments on commit 2e38319

Please sign in to comment.