Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,14 @@ jobs:
working-directory: build
continue-on-error: true

- name: Package with CPack
run: |
cd build && cpack

- name: Upload build artifacts
if: always()
uses: actions/upload-artifact@v7
with:
name: build-${{ matrix.os }}-${{ matrix.triplet }}
path: build/
path: ./build/Harbour-Ports-*.zip
archive: false
retention-days: 30
6 changes: 4 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Root CMakeLists.txt
cmake_minimum_required(VERSION 3.16)
cmake_minimum_required(VERSION 3.21)

project(Harbour VERSION 0.3.0 LANGUAGES CXX)
project(Harbour VERSION 0.5.0 LANGUAGES CXX)

set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
Expand Down Expand Up @@ -49,3 +49,5 @@ add_custom_command(
${CMAKE_CURRENT_SOURCE_DIR}/assets
$<TARGET_FILE_DIR:${PROJECT_NAME}>/assets
)

include("${CMAKE_SOURCE_DIR}/CPackConfig.cmake")
32 changes: 32 additions & 0 deletions CPackConfig.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
set(CPACK_PACKAGE_NAME "Harbour-Ports")
set(CPACK_PACKAGE_VENDOR "Harbour Ports Team")
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "A cross-platform launcher and updater for console game PC ports")
set(CPACK_PACKAGE_VERSION "v0.5.0")

set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_SOURCE_DIR}/LICENSE")
set(CPACK_PACKAGE_EXECUTABLES "Harbour" "Harbour Ports")

install(TARGETS Harbour
RUNTIME_DEPENDENCY_SET HarbourDeps
RUNTIME DESTINATION .
BUNDLE DESTINATION .
)

if(EXISTS "${CMAKE_SOURCE_DIR}/assets")
install(DIRECTORY "${CMAKE_SOURCE_DIR}/assets/" DESTINATION "assets")
endif()

if(WIN32)
install(RUNTIME_DEPENDENCY_SET HarbourDeps
DESTINATION .
DIRECTORIES "${CMAKE_BINARY_DIR}/"

PRE_EXCLUDE_REGEXES "api-ms-" "ext-ms-"
POST_EXCLUDE_REGEXES ".*system32/.*\\.dll"
)
set(CPACK_GENERATOR "ZIP")
else()
set(CPACK_GENERATOR "ZIP")
endif()

include(CPack)
7 changes: 0 additions & 7 deletions vcpkg-configuation.json

This file was deleted.

2 changes: 1 addition & 1 deletion vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "harbour",
"version-string": "0.2.0",
"version-string": "0.5.0",
"dependencies": [
"sdl3",
"freetype",
Expand Down
Loading