- Added new entries to `.pre-commit-config.yaml`, `cmake-format.yaml`, and `.github/dependabot.yml` to improve code quality checks and dependency updates. - Enhanced GitHub Actions workflows by adding new steps for testing and build retention. - Introduced support for the nlohmann_json library in CMake, allowing for conditional inclusion based on the `YAZE_ENABLE_JSON` option. - Updated CMake configurations to streamline SDL2 and gRPC integration, ensuring proper linking and target management. Benefits: - Improves code quality and consistency through automated checks and formatting. - Enhances dependency management and build reliability across platforms. - Provides flexibility for users to enable optional features, improving overall functionality.
23 lines
800 B
CMake
23 lines
800 B
CMake
# Windows Packaging Configuration
|
|
|
|
# NSIS installer
|
|
set(CPACK_GENERATOR "NSIS;ZIP")
|
|
set(CPACK_NSIS_PACKAGE_NAME "YAZE Editor")
|
|
set(CPACK_NSIS_DISPLAY_NAME "YAZE Editor v${CPACK_PACKAGE_VERSION}")
|
|
set(CPACK_NSIS_PACKAGE_VERSION "${CPACK_PACKAGE_VERSION}")
|
|
set(CPACK_NSIS_CONTACT "scawful")
|
|
set(CPACK_NSIS_URL_INFO_ABOUT "https://github.com/scawful/yaze")
|
|
set(CPACK_NSIS_HELP_LINK "https://github.com/scawful/yaze")
|
|
set(CPACK_NSIS_URL_INFO_ABOUT "https://github.com/scawful/yaze")
|
|
set(CPACK_NSIS_ENABLE_UNINSTALL_BEFORE_INSTALL ON)
|
|
|
|
# ZIP package
|
|
set(CPACK_ZIP_PACKAGE_NAME "yaze-${CPACK_PACKAGE_VERSION}-windows-x64")
|
|
|
|
# Code signing (if available)
|
|
if(DEFINED ENV{SIGNTOOL_CERTIFICATE})
|
|
set(CPACK_NSIS_SIGN_TOOL "signtool.exe")
|
|
set(CPACK_NSIS_SIGN_COMMAND "${ENV{SIGNTOOL_CERTIFICATE}}")
|
|
endif()
|
|
|