Skip to content

Commit

Permalink
Windows: Bundle dependency libraries
Browse files Browse the repository at this point in the history
CI: Disable automatic release notes
  • Loading branch information
carstene1ns committed Apr 14, 2024
1 parent 6dbb933 commit 32d273b
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 3 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,6 @@ jobs:
SHORT_SHA: ${{ needs.prepare.outputs.short_sha }}
run: |
cmake --install build-release --prefix $PWD
cp /mingw64/bin/SDL2.dll dist/
builds/ci/adoc2html ${SHORT_SHA} < res/unix/OpenJazz.6.adoc > dist/OpenJazzManual.html
builds/ci/docs2dist dist
mv dist OJ-${SHORT_SHA}
Expand Down Expand Up @@ -340,7 +339,7 @@ jobs:
with:
prerelease: true
tag_name: continuous
generate_release_notes: true
generate_release_notes: false
files: |
openjazz-*.*
dist/*.*
24 changes: 23 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,29 @@ endif()

if(WIN32)
# put everything in a folder
install(TARGETS OpenJazz DESTINATION dist)
install(TARGETS OpenJazz RUNTIME DESTINATION dist)
install(CODE [[
file(GET_RUNTIME_DEPENDENCIES
EXECUTABLES
$<TARGET_FILE:OpenJazz>
RESOLVED_DEPENDENCIES_VAR _r_deps
UNRESOLVED_DEPENDENCIES_VAR _u_deps
DIRECTORIES
$<TARGET_FILE_DIR:SDL2::SDL2>
)
foreach(_file ${_r_deps})
string(TOLOWER ${_file} _file_lower)
if(NOT ${_file_lower} MATCHES "c:[\\/]windows[\\/]system32.*")
file(INSTALL
DESTINATION "${CMAKE_INSTALL_PREFIX}"
TYPE SHARED_LIBRARY
FOLLOW_SYMLINK_CHAIN
FILES "${_file}"
)
endif()
endforeach()
#message("UNRESOLVED_DEPENDENCIES_VAR: ${_u_deps}")
]])
elseif(3DS)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/OpenJazz.3dsx
DESTINATION OpenJazz COMPONENT 3ds)
Expand Down

0 comments on commit 32d273b

Please sign in to comment.