From c00856b74aefd339820c02f764b3da35c67f0b9c Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 2 Nov 2014 07:23:08 +0100 Subject: use zips, since github form insists --- CMakeLists.txt | 2 +- make-tar.sh | 2 +- 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 -- cgit v1.2.3