Skip to content

Commit

Permalink
Move setup files into ^files directory
Browse files Browse the repository at this point in the history
  • Loading branch information
SteffenL committed Jul 19, 2024
1 parent d208a47 commit 63f0d38
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packaging/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ set(CPACK_VERBATIM_VARIABLES YES)
set(CPACK_COMPONENTS_ALL dl2_dev_menu)
set(CPACK_GENERATOR ZIP)

install(TARGETS wrapper DESTINATION .)
install(TARGETS wrapper DESTINATION files)
install(TARGETS setup DESTINATION .)
install(FILES readme.txt DESTINATION . COMPONENT dl2_dev_menu)

Expand Down
2 changes: 1 addition & 1 deletion packaging/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ This approach directly uses DevTools to play the main game with a wrapper DLL th

A setup program is included for easy (un)installation for most Windows-based environments.

Otherwise, just copy the included xinput1_3.dll file to the DevTools bin directory and run dyinglightgame_x64_rwe.exe from the same directory.
Otherwise, just copy files from the included "files" directoory into the DevTools bin directory and run dyinglightgame_x64_rwe.exe from the same directory.

Contact information:
Steffen André Langnes
Expand Down
3 changes: 2 additions & 1 deletion setup/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ target_link_libraries(setup PRIVATE core steam steam_game)

add_custom_command(TARGET setup POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy $<TARGET_RUNTIME_DLLS:setup> $<TARGET_FILE_DIR:setup>
COMMAND ${CMAKE_COMMAND} -E copy $<TARGET_FILE:wrapper> $<TARGET_FILE_DIR:setup>
COMMAND ${CMAKE_COMMAND} -E make_directory $<TARGET_FILE_DIR:setup>/files
COMMAND ${CMAKE_COMMAND} -E copy $<TARGET_FILE:wrapper> $<TARGET_FILE_DIR:setup>/files
COMMAND_EXPAND_LISTS
)

Expand Down
2 changes: 1 addition & 1 deletion setup/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ void cmdInstall(void* userData) {
return;
}
}
installFile(exeDir / installItem.relPath, targetPath);
installFile(exeDir / "files" / installItem.relPath, targetPath);
}

const auto shortcutPrompt{"Would you like to create a shortcut on the desktop?"};
Expand Down

0 comments on commit 63f0d38

Please sign in to comment.