fix windows build script

This commit is contained in:
Armin Schrenk 2023-09-25 16:02:31 +02:00
parent 92d9f2c18d
commit 625334c6c8
No known key found for this signature in database
GPG Key ID: 8F2992163CBBA7FC

5
dist/win/build.ps1 vendored
View File

@ -63,9 +63,10 @@ if( !(Test-Path -Path $jfxJmodsZip) ) {
$jmodsChecksumActual = $(Get-FileHash -Path $jfxJmodsZip -Algorithm SHA256).Hash
if( $jmodsChecksumActual -ne $jfxJmodsChecksum ) {
Write-Error "Checksum mismatch for jfxJmods.zip. Expected: $jfxJmodsChecksum, actual: $jmodsChecksumActual"
exit 1;
exit 1;
}
Expand-Archive -Path $jfxJmodsZip -DestinationPath ".\resources\"
Expand-Archive -Path $jfxJmodsZip -Force -DestinationPath ".\resources\"
Remove-Item -Recurse -Force -Path ".\resources\javafx-jmods"
Move-Item -Force -Path ".\resources\javafx-jmods-*" -Destination ".\resources\javafx-jmods" -ErrorAction Stop