- Finish page starts Lutra through Explorer (Exec, returns at once) instead of RunAsUser/ShellExecute on the setup's UI thread. The 0.0.0 setup hung there while the new, unsigned exe was checked (Norton 360 active); Windows ended it and left lutra-desktop.exe suspended. The NSIS template is an adapted copy of tauri-bundler 2.10.2's. - installer/hooks.nsh registers Lutra only under OpenWithProgids and Applications\lutra-desktop.exe for .php/.phtml/.phpt/.inc; the default app stays. The uninstaller removes exactly those entries. macOS gets an Alternate-rank CFBundleDocumentTypes entry and handles RunEvent::Opened. - A file path argument opens the file inside its Git/Composer root (or folder); a running instance takes it over, switching projects only when the file lies outside (never over unsaved changes). - Version 0.1.0-alpha in the workspace, tauri.conf.json and ui; a test keeps tauri.conf.json in step with the crate version. - xtask bundle passes CARGO_TARGET_DIR to the Tauri CLI as an absolute path. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
52 lines
2 KiB
JSON
52 lines
2 KiB
JSON
{
|
|
"$schema": "https://schema.tauri.app/config/2",
|
|
"productName": "Lutra",
|
|
"version": "0.1.0-alpha",
|
|
"identifier": "com.tyrveil.lutra",
|
|
"build": {
|
|
"devUrl": "http://localhost:5173",
|
|
"frontendDist": "../../ui/dist",
|
|
"beforeDevCommand": { "script": "pnpm dev", "cwd": "../../ui", "wait": false },
|
|
"beforeBuildCommand": { "script": "pnpm build", "cwd": "../../ui" }
|
|
},
|
|
"app": {
|
|
"windows": [],
|
|
"security": {
|
|
"csp": "default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data:; connect-src 'self' ipc: http://ipc.localhost",
|
|
"devCsp": "default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data:; connect-src 'self' ipc: http://ipc.localhost ws://localhost:5173 http://localhost:5173"
|
|
}
|
|
},
|
|
"bundle": {
|
|
"active": true,
|
|
"targets": ["nsis", "dmg"],
|
|
"publisher": "Lutra",
|
|
"copyright": "Copyright (c) 2026 Daniel Diekert and the Lutra contributors",
|
|
"license": "MIT OR Apache-2.0",
|
|
"category": "DeveloperTool",
|
|
"shortDescription": "An otterly perfect IDE for PHP",
|
|
"longDescription": "Lutra is an open-source PHP IDE with a Rust core.",
|
|
"icon": ["icons/icon.png", "icons/512x512.png", "icons/icon.ico"],
|
|
"windows": {
|
|
"nsis": {
|
|
"installMode": "currentUser",
|
|
"languages": ["English", "German"],
|
|
"displayLanguageSelector": false,
|
|
"installerIcon": "icons/icon.ico",
|
|
"headerImage": "../../assets/installer/nsis-header.bmp",
|
|
"sidebarImage": "../../assets/installer/nsis-sidebar.bmp",
|
|
"compression": "lzma",
|
|
"template": "installer/installer.nsi",
|
|
"installerHooks": "installer/hooks.nsh"
|
|
}
|
|
},
|
|
"macOS": {
|
|
"minimumSystemVersion": "11.0",
|
|
"dmg": {
|
|
"background": "../../assets/installer/dmg-background.png",
|
|
"windowSize": { "width": 720, "height": 400 },
|
|
"appPosition": { "x": 100, "y": 184 },
|
|
"applicationFolderPosition": { "x": 326, "y": 184 }
|
|
}
|
|
}
|
|
}
|
|
}
|