diff --git a/scripts/bundle-linux.sh b/scripts/bundle-linux.sh index 60d1ec25..26f06479 100755 --- a/scripts/bundle-linux.sh +++ b/scripts/bundle-linux.sh @@ -3,6 +3,8 @@ set -ex +rm -rf build + cmake -S . -B build -DCMAKE_BUILD_TYPE=Release cmake --build build @@ -15,4 +17,4 @@ mv R-Type-Linux.sh ../r-type-linux.sh cpack --config CPackSourceConfig.cmake -G TGZ -mv R-Type-Source.tar.gz ../r-type-linux.tar.gz +mv R-Type-Linux.tar.gz ../r-type-linux.tar.gz diff --git a/scripts/bundle-macos.sh b/scripts/bundle-macos.sh index 11ef05d6..eca2a0c7 100755 --- a/scripts/bundle-macos.sh +++ b/scripts/bundle-macos.sh @@ -3,6 +3,8 @@ set -ex +rm -rf build + cmake -S . -B build -DCMAKE_BUILD_TYPE=Release cmake --build build diff --git a/scripts/bundle-windows.ps1 b/scripts/bundle-windows.ps1 index 4f764a40..bcdb8e1f 100644 --- a/scripts/bundle-windows.ps1 +++ b/scripts/bundle-windows.ps1 @@ -3,11 +3,11 @@ $ErrorActionPreference = "SilentlyContinue" -./scripts/compil.ps1 +rm -Recurse build cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_CONFIGURATION_TYPES="Release" -cmake --build build +cmake --build build --config Release cd build @@ -17,10 +17,10 @@ if ($LASTEXITCODE -ne 0) { type _CPack_Packages/win64/NSIS/NSISOutput.log } -Copy-Item R-Type-win64.exe ../r-type-windows.exe +Copy-Item R-Type-Windows.exe ../r-type-windows.exe cpack --config CPackSourceConfig.cmake -G ZIP -Copy-Item R-Type-Source.zip ../r-type-windows.zip +Copy-Item R-Type-Windows.zip ../r-type-windows.zip cd ..