summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt2
-rw-r--r--make-tar.sh2
2 files changed, 2 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 8f2ed953..5325f673 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -154,7 +154,7 @@ string(REPLACE "refs/heads/" "" filename-branch_1 "${filename-branch_0}")
string(REPLACE "/" "-" filename-branch "${filename-branch_1}")
set(filename_0 opentrack-${filename-ostype}-${filename-branch}-${filename-date}-${filename-hash})
string(TOLOWER "${filename_0}" filename_1)
-set(filename "${CMAKE_BINARY_DIR}/${filename_1}.tar.xz")
+set(filename "${CMAKE_BINARY_DIR}/${filename_1}.zip")
add_custom_command(OUTPUT ${filename} COMMAND env sh "${CMAKE_SOURCE_DIR}/make-tar.sh" "${CMAKE_INSTALL_PREFIX}" "${filename}")
add_custom_target(tarball DEPENDS ${filename})
diff --git a/make-tar.sh b/make-tar.sh
index 26b65dcb..e774c8ef 100644
--- a/make-tar.sh
+++ b/make-tar.sh
@@ -6,7 +6,7 @@ filename="$2"
if : &&
make install &&
cd $(dirname -- "${prefix}") &&
- tar Jcf "${filename}" $(basename "${prefix}")
+ zip -9r "${filename}" $(basename "${prefix}")
then
ls -lh -- "${filename}"
else