diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 99f83d4d5..6401025ac 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -175,11 +175,8 @@ jobs: - name: Zip standalone archives shell: bash run: | - zip_cmd="zip -9 -j" - if [[ ${{ contains(matrix.build.target, 'windows') }} == true ]]; then - zip_cmd="7z -mx9 a" - fi - ${zip_cmd} zenohc-${{ inputs.version || '0.0.0' }}-${{ matrix.build.target }}-standalone.zip ./build/packages/*.zip + zip_filename=$(readlink -f ./build/packages/*.zip) + mv ${zip_filename} zenoh-c-${{ inputs.version || '0.0.0' }}-${{ matrix.build.target }}-standalone.zip - name: Zip deb/rpm archives shell: bash @@ -193,7 +190,7 @@ jobs: with: # Publish the artifact with zenoh-c (repo name) so it can be used by homebrew action name: zenoh-c-${{ inputs.version || '0.0.0' }}-${{ matrix.build.target }}-standalone.zip - path: zenohc-${{ inputs.version || '0.0.0' }}-${{ matrix.build.target }}-standalone.zip + path: zenoh-c-${{ inputs.version || '0.0.0' }}-${{ matrix.build.target }}-standalone.zip - name: Upload DEB archive if: ${{ contains(matrix.build.target, 'linux') }} diff --git a/install/CMakeLists.txt b/install/CMakeLists.txt index 5a3941b02..b770e3c22 100644 --- a/install/CMakeLists.txt +++ b/install/CMakeLists.txt @@ -105,6 +105,7 @@ set(CPACK_COMPONENT_HEADERS_GROUP "dev") set(CPACK_COMPONENT_DEV_GROUP "dev") set(CPACK_COMPONENT_HEADERS_DEPENDS lib) set(CPACK_COMPONENT_DEV_DEPENDS lib) +set(CPACK_INCLUDE_TOPLEVEL_DIRECTORY OFF) set(CPACK_GENERATOR ZIP) set(CPACK_CMAKE_SYSTEM_PROCESSOR ${CMAKE_SYSTEM_PROCESSOR})