From 28e476a1650d692382b52e2c55ed91e5df445812 Mon Sep 17 00:00:00 2001 From: Octavian Dima <3403191+WopsS@users.noreply.github.com> Date: Sun, 13 Aug 2023 14:09:00 +0200 Subject: [PATCH] Copy THIRD_PARTY_LICENSES.md in CMake install step instead of release workflow --- .github/workflows/release.yml | 6 ------ CMakeLists.txt | 6 ++++++ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 63a4bdc..94ac2df 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -48,12 +48,6 @@ jobs: --prefix "${{ github.workspace }}/build/install" ` --config ${env:RED3EXT_CONFIG} - - name: Copy license files - working-directory: build/install - run: | - Copy-Item -Path ../../LICENSE.md -Destination ./red3ext/LICENSE.txt - Copy-Item -Path ../../THIRD_PARTY_LICENSES.md -Destination ./red3ext/THIRD_PARTY_LICENSES.txt - - name: Create ZIP working-directory: build/install run: 7z a -r red3ext-${env:RED3EXT_VERSION}.zip *.dll *.txt diff --git a/CMakeLists.txt b/CMakeLists.txt index 99c5dc6..03d4d1d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -128,5 +128,11 @@ if(NOT CMAKE_SKIP_INSTALL_RULES) DESTINATION "${RED3EXT_INSTALL_BIN_DIR}" RENAME LICENSE.txt ) + + install( + FILES "${PROJECT_SOURCE_DIR}/THIRD_PARTY_LICENSES.md" + DESTINATION "${RED3EXT_INSTALL_BIN_DIR}" + RENAME THIRD_PARTY_LICENSES.txt + ) endif() endif()