summaryrefslogtreecommitdiff
path: root/export.ps1
diff options
context:
space:
mode:
authorWeicao-CatilGrass <1992414357@qq.com>2025-12-10 10:49:52 +0800
committerWeicao-CatilGrass <1992414357@qq.com>2025-12-10 10:49:52 +0800
commit1567bab16b1eeb8ddaf5a8cc09c71bdb0bedbda3 (patch)
treec5cc7c708207f3dae1b921c9d576d299a55be1b4 /export.ps1
parent5fd3992ff8eea62967288c639985bfe60b9a171b (diff)
Add Windows installer and export scripts
- Add Inno Setup configuration for Windows installer - Add PowerShell scripts for installation and uninstallation - Create Windows-specific export script - Update existing export script to suppress build output - Include application icon for installer
Diffstat (limited to 'export.ps1')
-rw-r--r--export.ps113
1 files changed, 13 insertions, 0 deletions
diff --git a/export.ps1 b/export.ps1
new file mode 100644
index 0000000..d24c37e
--- /dev/null
+++ b/export.ps1
@@ -0,0 +1,13 @@
+# Require : Cargo (Rust), ISCC (Inno Setup)
+
+# Build
+cargo build --workspace --release
+if ($LASTEXITCODE -ne 0) {
+ # Build failed
+} else {
+ # Build succeeded
+ # Export
+ if (cargo run --manifest-path crates/build_helper/Cargo.toml --bin exporter) {
+ ISCC /Q .\setup\windows\setup_jv_cli.iss
+ }
+}