Skip to content

Commit

Permalink
Copy THIRD_PARTY_LICENSES.md in CMake install step instead of release…
Browse files Browse the repository at this point in the history
… workflow
  • Loading branch information
WopsS committed Aug 13, 2023
1 parent 4bdc562 commit 28e476a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 0 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 6 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()

0 comments on commit 28e476a

Please sign in to comment.