Skip to content

Commit

Permalink
fix ZIP issue and fix some windows build thing (#5649)
Browse files Browse the repository at this point in the history
  • Loading branch information
RensDofferhoff authored and JorisGoosen committed Sep 30, 2024
1 parent 02c5165 commit 4850e73
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
11 changes: 5 additions & 6 deletions Tools/CMake/Programs.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -166,12 +166,11 @@ if(WIN32)
)
endif()

set(WIX_PATH
"C:/Program Files (x86)/WiX Toolset v3.11/bin"
CACHE
PATH
"Path to your WIX installation, e.g., C:\\Program Files (x86)\\WiX Toolset v3.11\\bin"
)
if(DEFINED ENV{WIX})
set(WIX_PATH "$ENV{WIX}/bin" CACHE PATH "Path to your WIX installation, e.g., C:\\Program Files (x86)\\WiX Toolset v3.11\\bin")
else()
set(WIX_PATH "C:/Program Files (x86)/WiX Toolset v3.11/bin" CACHE PATH "Path to your WIX installation, e.g., C:\\Program Files (x86)\\WiX Toolset v3.11\\bin")
endif()

find_program(
HEAT_EXECUTABLE
Expand Down
9 changes: 8 additions & 1 deletion Tools/windows/zip/ZIP.cmd.in
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@ setlocal EnableDelayedExpansion
rem ---------------------- Packing -------------------------------

echo Making zip-version of installer
where /q zip
IF ERRORLEVEL 1 (
powershell Compress-Archive -Update "@JASP_INSTALL_DIR_NATIVE@\*" "@JASP_BINARY_DIR_NATIVE@\JASP\JASP.zip"

) ELSE (
pushd .
cd /d "@JASP_INSTALL_DIR_NATIVE@\*"
zip -9 -q -r "@JASP_BINARY_DIR_NATIVE@\JASP\JASP.zip" .
popd
)
endlocal

0 comments on commit 4850e73

Please sign in to comment.