diff --git a/crates/desktop/tauri-artcraft/tauri.artcraft_2d.conf.json b/crates/desktop/tauri-artcraft/tauri.artcraft_2d.conf.json new file mode 100644 index 0000000000..f8b0319588 --- /dev/null +++ b/crates/desktop/tauri-artcraft/tauri.artcraft_2d.conf.json @@ -0,0 +1,37 @@ +{ + "$schema": "https://schema.tauri.app/config/2.0.0-rc", + "productName": "ArtCraft 2D", + "version": "0.1.0", + "identifier": "ai.artcraft.app", + "build": { + "frontendDist": "../../../frontend/apps/editor2d/dist", + "devUrl": "http://localhost:5173", + "beforeDevCommand": "nx run editor2d:dev", + "beforeBuildCommand": "nx run editor2d:build" + }, + "app": { + "windows": [ + { + "title": "ArtCraft 2D", + "width": 2400, + "height": 1300, + "resizable": true, + "fullscreen": false + } + ], + "security": { + "csp": null + } + }, + "bundle": { + "active": true, + "targets": "all", + "icon": [ + "icons/32x32.png", + "icons/128x128.png", + "icons/128x128@2x.png", + "icons/icon.icns", + "icons/icon.ico" + ] + } +} diff --git a/crates/desktop/tauri-artcraft/tauri.artcraft_3d.conf.json b/crates/desktop/tauri-artcraft/tauri.artcraft_3d.conf.json new file mode 100644 index 0000000000..0cab995539 --- /dev/null +++ b/crates/desktop/tauri-artcraft/tauri.artcraft_3d.conf.json @@ -0,0 +1,37 @@ +{ + "$schema": "https://schema.tauri.app/config/2.0.0-rc", + "productName": "ArtCraft 3D", + "version": "0.1.0", + "identifier": "ai.artcraft.app", + "build": { + "frontendDist": "../../../frontend/apps/editor3d/dist", + "devUrl": "http://localhost:5173", + "beforeDevCommand": "nx run editor3d:dev", + "beforeBuildCommand": "nx run editor3d:build" + }, + "app": { + "windows": [ + { + "title": "ArtCraft 3D", + "width": 2400, + "height": 1300, + "resizable": true, + "fullscreen": false + } + ], + "security": { + "csp": null + } + }, + "bundle": { + "active": true, + "targets": "all", + "icon": [ + "icons/32x32.png", + "icons/128x128.png", + "icons/128x128@2x.png", + "icons/icon.icns", + "icons/icon.ico" + ] + } +} diff --git a/script/desktop/launch_desktop_2d.sh b/script/desktop/launch_desktop_2d.sh index a8ff8a6552..d30cb18fda 100755 --- a/script/desktop/launch_desktop_2d.sh +++ b/script/desktop/launch_desktop_2d.sh @@ -18,4 +18,7 @@ popd export TAURI_FRONTEND_PATH="${frontend_path}" export TAURI_APP_PATH="${root_dir}/crates/desktop/tauri-artcraft" -cargo tauri dev --no-watch +export CONFIG_PATH="${TAURI_APP_PATH}/tauri.artcraft_2d.conf.json" + +#cargo tauri dev --no-watch -- --config "${CONFIG_PATH}" +cargo tauri dev -- -- --no-watch --config "${CONFIG_PATH}" diff --git a/script/desktop/launch_desktop_3d.sh b/script/desktop/launch_desktop_3d.sh index 1fa747e29d..9674da1686 100755 --- a/script/desktop/launch_desktop_3d.sh +++ b/script/desktop/launch_desktop_3d.sh @@ -18,4 +18,6 @@ popd export TAURI_FRONTEND_PATH="${frontend_path}" export TAURI_APP_PATH="${root_dir}/crates/desktop/tauri-artcraft" -cargo tauri dev -- -- --no-watch +export CONFIG_PATH="${TAURI_APP_PATH}/tauri.artcraft_2d.conf.json" + +cargo tauri dev -- --config "${TAURI_APP_PATH}/tauri.artcraft_2d.conf.json" -- --no-watch