Skip to content

Commit e776f3a

Browse files
committed
chore: remove unused scripts and fix Create-InstallerPackage.ps1
- Remove scripts/deploy.sh (Linux bash script, Windows-focused project) - Remove scripts/run-tests.sh (replaced by run-tests.bat) - Remove scripts/run-working-tests.sh (unused) - Remove Check-Prerequisites.ps1 (not used anywhere) - Fix Create-InstallerPackage.ps1: - Update BUILD.bat reference to build-rust-mingw.ps1 - Make INSTALL.bat and START_SERVICE.bat optional (they don't exist)
1 parent c2615d2 commit e776f3a

5 files changed

Lines changed: 15 additions & 1434 deletions

File tree

‎Check-Prerequisites.ps1‎

Lines changed: 0 additions & 252 deletions
This file was deleted.

‎Create-InstallerPackage.ps1‎

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ Write-Host "[1/5] Checking prerequisites..." -ForegroundColor Cyan
4444

4545
if (-not (Test-Path $BackendBinary)) {
4646
Write-Host "ERROR: Backend binary not found at $BackendBinary" -ForegroundColor Red
47-
Write-Host "Please run: .\BUILD.bat" -ForegroundColor Yellow
47+
Write-Host "Please run: .\build-rust-mingw.ps1 --release" -ForegroundColor Yellow
4848
exit 1
4949
}
5050
Write-Host " * Backend binary found" -ForegroundColor Green
@@ -105,10 +105,20 @@ if (Test-Path $FrontendDir) {
105105
Write-Host " * Frontend files copied" -ForegroundColor Green
106106
}
107107

108-
# Copy scripts
109-
Copy-Item (Join-Path $ScriptDir "INSTALL.bat") "$PackageDir\" -Force
110-
Copy-Item (Join-Path $ScriptDir "START_SERVICE.bat") "$PackageDir\" -Force
111-
Write-Host " * Installer scripts copied" -ForegroundColor Green
108+
# Copy scripts (if they exist)
109+
$installScript = Join-Path $ScriptDir "INSTALL.bat"
110+
$startScript = Join-Path $ScriptDir "START_SERVICE.bat"
111+
if (Test-Path $installScript) {
112+
Copy-Item $installScript "$PackageDir\" -Force
113+
Write-Host " * INSTALL.bat copied" -ForegroundColor Green
114+
}
115+
if (Test-Path $startScript) {
116+
Copy-Item $startScript "$PackageDir\" -Force
117+
Write-Host " * START_SERVICE.bat copied" -ForegroundColor Green
118+
}
119+
if (-not (Test-Path $installScript) -and -not (Test-Path $startScript)) {
120+
Write-Host " * Note: INSTALL.bat and START_SERVICE.bat not found (optional)" -ForegroundColor Yellow
121+
}
112122

113123
# Copy documentation
114124
$docFiles = @("BUILD_WINDOWS.md", "README.md", "CONTRIBUTING.md", "LICENSE.md")

0 commit comments

Comments
 (0)