bundle.externalBin ships the plugin beside the app binary (usr/bin in the AppImage, Contents/MacOS, the Windows install dir) and THIRD_PARTY_NOTICES as a resource. find_plugin() now resolves TRIPLEC_SSM_PLUGIN, then the bundled sidecar next to current_exe(), then PATH and AWS's install locations, then the install hint; the order is unit-tested against temp dirs. tauri-build fails any build whose externalBin file is missing, so build.rs writes a marked placeholder in debug builds (cargo test/check, tauri dev) and refuses a missing file or a placeholder in release builds. find_plugin() skips the placeholder. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
53 lines
1.5 KiB
JSON
53 lines
1.5 KiB
JSON
{
|
|
"$schema": "https://raw.githubusercontent.com/tauri-apps/tauri/dev/crates/tauri-cli/schema.json",
|
|
"productName": "Triple-C",
|
|
"version": "0.4.0",
|
|
"identifier": "com.triple-c.desktop",
|
|
"build": {
|
|
"beforeDevCommand": "npm run dev",
|
|
"devUrl": "http://localhost:1420",
|
|
"beforeBuildCommand": "npm run build",
|
|
"frontendDist": "../dist"
|
|
},
|
|
"app": {
|
|
"windows": [
|
|
{
|
|
"title": "Triple-C",
|
|
"width": 1200,
|
|
"height": 800,
|
|
"resizable": true,
|
|
"fullscreen": false,
|
|
"minWidth": 800,
|
|
"minHeight": 600
|
|
}
|
|
],
|
|
"security": {
|
|
"csp": "default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' blob:; font-src 'self'; connect-src 'self' ipc: http://ipc.localhost; frame-src http://127.0.0.1:47820 http://127.0.0.1:47821 http://127.0.0.1:47822 http://127.0.0.1:47823 http://127.0.0.1:47824 http://127.0.0.1:47825 http://127.0.0.1:47826 http://127.0.0.1:47827; form-action 'none'; base-uri 'none'; object-src 'none'"
|
|
}
|
|
},
|
|
"bundle": {
|
|
"active": true,
|
|
"targets": "all",
|
|
"icon": [
|
|
"icons/32x32.png",
|
|
"icons/128x128.png",
|
|
"icons/128x128@2x.png",
|
|
"icons/icon.ico",
|
|
"icons/icon.icns",
|
|
"icons/icon.png"
|
|
],
|
|
"externalBin": [
|
|
"binaries/session-manager-plugin"
|
|
],
|
|
"resources": {
|
|
"THIRD_PARTY_NOTICES": "THIRD_PARTY_NOTICES"
|
|
},
|
|
"linux": {
|
|
"appimage": {
|
|
"bundleMediaFramework": true
|
|
}
|
|
}
|
|
},
|
|
"plugins": {}
|
|
}
|