Add Tauri desktop app support

Adds integration with Tauri for building native desktop apps from the web frontend, including CLI option, setup scripts, initialization logic, and post-installation instructions.
This commit is contained in:
Aman Varshney
2025-03-22 15:16:19 +05:30
parent b2feac3f8d
commit 406864f411
9 changed files with 113 additions and 7 deletions

View File

@@ -32,6 +32,7 @@ async function main() {
.option("--no-auth", "Exclude authentication")
.option("--docker", "Include Docker setup")
.option("--pwa", "Include Progressive Web App support")
.option("--tauri", "Include Tauri desktop app support")
.option("--no-addons", "Skip all additional addons")
.option("--git", "Include git setup")
.option("--no-git", "Skip git initialization")
@@ -71,13 +72,17 @@ async function main() {
...("git" in options && { git: options.git }),
...("install" in options && { noInstall: !options.install }),
...("turso" in options && { turso: options.turso }),
...((options.docker || options.pwa || options.addons === false) && {
...((options.docker ||
options.pwa ||
options.tauri ||
options.addons === false) && {
addons:
options.addons === false
? []
: ([
...(options.docker ? ["docker"] : []),
...(options.pwa ? ["pwa"] : []),
...(options.tauri ? ["tauri"] : []),
] as ProjectAddons[]),
}),
};