summaryrefslogtreecommitdiffstats
path: root/GUI/package.ps1
diff options
context:
space:
mode:
authoryum <yum.food.vr@gmail.com>2023-02-19 13:35:23 -0800
committeryum <yum.food.vr@gmail.com>2023-02-19 13:35:23 -0800
commit42f8275d84ad431c19b7c22ac702e58ac95d0680 (patch)
tree6cf1783d3b2c327cfb39362abc670c748162ad67 /GUI/package.ps1
parent52f743e43a9ef582e04d7a363fbda19824db6cc7 (diff)
Transcription and Unity input fields now auto-synchronize
When you generate Unity assets, you have to configure rows/cols/chars per sync/ bytes per char. When you switch over to the transcription panel, these choices will be automatically populated. This should reduce accidental mismatch between the two panels. * Merge Config classes. Now just use one big AppConfig class instead of one class per panel. * Factor out (most) input field initialization into a function. Call it when switching panels so input fields synchronize. * Wrap a lot of lines at 80 columns. * Add -skip_zip switch to package.ps1.
Diffstat (limited to 'GUI/package.ps1')
-rw-r--r--GUI/package.ps18
1 files changed, 7 insertions, 1 deletions
diff --git a/GUI/package.ps1 b/GUI/package.ps1
index 74fd7c7..400ad6c 100644
--- a/GUI/package.ps1
+++ b/GUI/package.ps1
@@ -1,3 +1,7 @@
+param(
+ [switch]$skip_zip = $false
+)
+
$install_dir = "TaSTT"
if (Test-Path $install_dir) {
@@ -72,5 +76,7 @@ cp -Recurse ../Sounds TaSTT/Resources/Sounds
cp -Recurse ../UnityAssets TaSTT/Resources/UnityAssets
cp GUI/x64/Release/GUI.exe TaSTT/TaSTT.exe
-Compress-Archive -Path "$install_dir" -DestinationPath "$install_dir.zip" -Force
+if (-Not $skip_zip) {
+ Compress-Archive -Path "$install_dir" -DestinationPath "$install_dir.zip" -Force
+}