improved file read/copy logic
This commit is contained in:
6
build.ps1
Normal file
6
build.ps1
Normal 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
|
||||
Reference in New Issue
Block a user