fix tauri build configs

This commit is contained in:
Brandon Thomas committed 2025-04-21 13:13:23 -04:00
1 parent 384b841528
commit 94f2d2ec68
6 files changed
+13 -81

No files matched your search

@@ -1,37 +0,0 @@
{
"$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"
]
}
}
@@ -1,37 +0,0 @@
{
"$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"
]
}
}
@@ -0,0 +1,5 @@
# For some reason, we can't pass json files to the tauri dev command
[build]
frontendDist = "../../../frontend/apps/editor3d/dist"
beforeDevCommand = "nx run editor3d:dev"
devUrl = "http://localhost:5173"
@@ -4,10 +4,10 @@
"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"
"frontendDist": "../../../frontend/apps/editor2d/dist",
"devUrl": "http://localhost:5741",
"beforeDevCommand": "nx run editor2d:dev",
"beforeBuildCommand": "nx run editor2d:build"
},
"app": {
"windows": [
+1 -1
View File
@@ -20,5 +20,5 @@ export TAURI_APP_PATH="${root_dir}/crates/desktop/tauri-artcraft"
export CONFIG_PATH="${TAURI_APP_PATH}/tauri.artcraft_2d.conf.toml"
#cargo tauri dev --no-watch -- --config "${CONFIG_PATH}"
# TODO: --no-watch
cargo tauri dev --config "${CONFIG_PATH}"
+3 -2
View File
@@ -18,6 +18,7 @@ popd
export TAURI_FRONTEND_PATH="${frontend_path}"
export TAURI_APP_PATH="${root_dir}/crates/desktop/tauri-artcraft"
export CONFIG_PATH="${TAURI_APP_PATH}/tauri.artcraft_2d.conf.json"
export CONFIG_PATH="${TAURI_APP_PATH}/tauri.artcraft_3d.conf.toml"
cargo tauri dev --config "${TAURI_APP_PATH}/tauri.artcraft_2d.conf.json" -- --no-watch
# TODO: --no-watch
cargo tauri dev --config "${CONFIG_PATH}"