Skip to content

Commit

Permalink
Create a .zip package
Browse files Browse the repository at this point in the history
As well as creating an NSIS installer for Windows, we want to create a
`.zip` file.  This will be used by a future Github Action to install
`trimja` - it will be far easier to unzip a directory compared to
installing an executable.
  • Loading branch information
elliotgoodrich committed Sep 22, 2024
1 parent 7d6e819 commit fd8c5fc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ jobs:
files: |
build/trimja-*-Linux.tar.gz
build/trimja-*-win64.exe
build/trimja-*.zip
format:
runs-on: ubuntu-latest
steps:
Expand Down
7 changes: 7 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,13 @@ target_compile_options(trimja PRIVATE
$<$<CXX_COMPILER_ID:MSVC>:/W4>
)
install(TARGETS trimja RUNTIME DESTINATION bin)

if(WIN32)
set(CPACK_GENERATOR ZIP NSIS)
else()
set(CPACK_GENERATOR TGZ)
endif()

set(CPACK_PACKAGE_INSTALL_DIRECTORY trimja)
set(CPACK_NSIS_MODIFY_PATH ON)
set(CPACK_NSIS_IGNORE_LICENSE_PAGE ON)
Expand Down

0 comments on commit fd8c5fc

Please sign in to comment.