From 9decf8bf881a88660ede342fc01507a56f4b32b8 Mon Sep 17 00:00:00 2001 From: Brandon Thomas Date: Wed, 7 May 2025 15:35:28 -0400 Subject: [PATCH] fix windows builds --- frontend/apps/editor3d/tsconfig.json | 11 +++++++---- frontend/libs/components/login-modal/tsconfig.json | 9 +++++++++ .../libs/components/login-modal/tsconfig.lib.json | 11 +++++++++++ .../settings-modal/src/lib/MiscSettingsPane.tsx | 4 ++-- script/artcraft/windows_build.ps1 | 7 +++++++ 5 files changed, 36 insertions(+), 6 deletions(-) diff --git a/frontend/apps/editor3d/tsconfig.json b/frontend/apps/editor3d/tsconfig.json index d4d7ec56a3..8381cec046 100644 --- a/frontend/apps/editor3d/tsconfig.json +++ b/frontend/apps/editor3d/tsconfig.json @@ -45,14 +45,11 @@ { "path": "../../libs/components/button" }, - { - "path": "../../libs/components/modal" - }, { "path": "../../libs/components/toaster" }, { - "path": "../../libs/components/demo-modal" + "path": "../../libs/components/login-modal" }, { "path": "../../libs/soundboard" @@ -72,6 +69,12 @@ { "path": "../../libs/components/gallery-modal" }, + { + "path": "../../libs/components/label" + }, + { + "path": "../../libs/components/modal" + }, { "path": "../../libs/tauri-utils" } diff --git a/frontend/libs/components/login-modal/tsconfig.json b/frontend/libs/components/login-modal/tsconfig.json index b3d19d8f5e..092d507d96 100644 --- a/frontend/libs/components/login-modal/tsconfig.json +++ b/frontend/libs/components/login-modal/tsconfig.json @@ -2,6 +2,15 @@ "files": [], "include": [], "references": [ + { + "path": "../../tauri-api" + }, + { + "path": "../../tauri-utils" + }, + { + "path": "../button" + }, { "path": "./tsconfig.lib.json" }, diff --git a/frontend/libs/components/login-modal/tsconfig.lib.json b/frontend/libs/components/login-modal/tsconfig.lib.json index f0782e3dd8..f98ce3da89 100644 --- a/frontend/libs/components/login-modal/tsconfig.lib.json +++ b/frontend/libs/components/login-modal/tsconfig.lib.json @@ -41,5 +41,16 @@ "src/**/*.jsx", "src/**/*.ts", "src/**/*.tsx" + ], + "references": [ + { + "path": "../../tauri-api/tsconfig.lib.json" + }, + { + "path": "../../tauri-utils/tsconfig.lib.json" + }, + { + "path": "../button/tsconfig.lib.json" + } ] } diff --git a/frontend/libs/components/settings-modal/src/lib/MiscSettingsPane.tsx b/frontend/libs/components/settings-modal/src/lib/MiscSettingsPane.tsx index f1c64e480c..5481759d07 100644 --- a/frontend/libs/components/settings-modal/src/lib/MiscSettingsPane.tsx +++ b/frontend/libs/components/settings-modal/src/lib/MiscSettingsPane.tsx @@ -3,9 +3,9 @@ import { SoundRegistry, SoundEffect } from "@storyteller/soundboard"; import { Button } from "@storyteller/ui-button"; import { Input } from "@storyteller/ui-input"; import { AppPreferencesPayload, CustomDirectory, GetAppPreferences, SystemDirectory } from "@storyteller/tauri-api"; -import { PreferenceName, UpdateAppPreferences } from "libs/tauri-api/src/lib/settings/UpdateAppPreference"; +import { PreferenceName, UpdateAppPreferences } from "@storyteller/tauri-api"; import { open } from '@tauri-apps/plugin-dialog'; -import { Select, SelectValue } from "libs/components/select/src/lib/select"; +import { Select, SelectValue } from "@storyteller/ui-select"; // TODO: This is maintained in two places. Here and InstallSounds. const SOUND_OPTIONS = [ diff --git a/script/artcraft/windows_build.ps1 b/script/artcraft/windows_build.ps1 index 34a9ea7954..25a865738a 100644 --- a/script/artcraft/windows_build.ps1 +++ b/script/artcraft/windows_build.ps1 @@ -27,3 +27,10 @@ $env:TAURI_APP_PATH=".\crates\desktop\artcraft" # The config file tells Tauri more instructions for the frontend build. cargo tauri build --config ".\crates\desktop\artcraft\tauri.artcraft_3d.no_dev.conf.json" + +Write-Host "" +Write-Host "Production Build Done!" -ForegroundColor green -BackgroundColor white +Write-Host "" +Write-Host "You can find the installer in: target\release\bundle\nsis\ArtCraft_(version_info)-setup.exe" + +Start-Process "explorer.exe" -ArgumentList ".\target\release\bundle\nsis"