improved file read/copy logic

This commit is contained in:
zomo
2025-12-24 13:58:02 -06:00
parent 658ad890f5
commit 32ed104b60
10 changed files with 337 additions and 153 deletions

6
build.ps1 Normal file
View File

@@ -0,0 +1,6 @@
Remove-Item .\bappackage-*.exe -ErrorAction SilentlyContinue
Remove-Item .\bappackage.exe -ErrorAction SilentlyContinue
go build .
$hash = (Get-FileHash -Algorithm SHA256 .\bappackage.exe).Hash
$hash = $hash.Remove(0, ($hash.Length - 8))
Move-Item .\bappackage.exe .\bappackage-$hash.exe