cmake: try set(CPACK_INCLUDE_TOPLEVEL_DIRECTORY FALSE)
This commit is contained in:
parent
39074b8249
commit
fdd3abac14
|
|
@ -39,8 +39,8 @@ jobs:
|
||||||
- name: 'Linux: Prepare the artifact'
|
- name: 'Linux: Prepare the artifact'
|
||||||
if: ${{ startsWith(matrix.os, 'ubuntu-') }}
|
if: ${{ startsWith(matrix.os, 'ubuntu-') }}
|
||||||
run: |
|
run: |
|
||||||
unzip build-linux/*-Linux.zip
|
mkdir ericw-tools-linux
|
||||||
mv ericw-tools-*/*-Linux/ ericw-tools-linux
|
unzip build-linux/*-Linux.zip -d ericw-tools-linux
|
||||||
- name: 'Linux: Upload the artifact'
|
- name: 'Linux: Upload the artifact'
|
||||||
if: ${{ startsWith(matrix.os, 'ubuntu-') && matrix.use-asan == 'NO' }}
|
if: ${{ startsWith(matrix.os, 'ubuntu-') && matrix.use-asan == 'NO' }}
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
|
|
@ -60,8 +60,8 @@ jobs:
|
||||||
- name: 'macOS: Prepare the artifact'
|
- name: 'macOS: Prepare the artifact'
|
||||||
if: ${{ startsWith(matrix.os, 'macos-') }}
|
if: ${{ startsWith(matrix.os, 'macos-') }}
|
||||||
run: |
|
run: |
|
||||||
unzip build-osx/*-Darwin.zip
|
mkdir ericw-tools-macos
|
||||||
mv ericw-tools-*/*-Darwin/ ericw-tools-macos
|
unzip build-osx/*-Darwin.zip -d ericw-tools-macos
|
||||||
- name: 'macOS: Upload the artifact'
|
- name: 'macOS: Upload the artifact'
|
||||||
if: ${{ startsWith(matrix.os, 'macos-') && matrix.use-asan == 'NO' }}
|
if: ${{ startsWith(matrix.os, 'macos-') && matrix.use-asan == 'NO' }}
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
|
|
@ -85,10 +85,7 @@ jobs:
|
||||||
- name: 'Windows: Prepare the artifact'
|
- name: 'Windows: Prepare the artifact'
|
||||||
if: ${{ startsWith(matrix.os, 'windows-') }}
|
if: ${{ startsWith(matrix.os, 'windows-') }}
|
||||||
run: |
|
run: |
|
||||||
7z x build-windows\*-win64.zip -o"ericw-tools-windows-temp\" -y
|
7z x build-windows\*-win64.zip -o"ericw-tools-windows\" -y
|
||||||
New-Item -ItemType Directory -Path ericw-tools-windows
|
|
||||||
Get-ChildItem -Path ericw-tools-windows-temp\ericw-tools-*\*-win64 -Recurse |
|
|
||||||
Move-Item -Destination ericw-tools-windows
|
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
- name: 'Windows: Upload the artifact'
|
- name: 'Windows: Upload the artifact'
|
||||||
if: ${{ startsWith(matrix.os, 'windows-') && matrix.use-asan == 'NO' }}
|
if: ${{ startsWith(matrix.os, 'windows-') && matrix.use-asan == 'NO' }}
|
||||||
|
|
|
||||||
|
|
@ -209,4 +209,5 @@ install(FILES README.md DESTINATION bin)
|
||||||
set(CPACK_GENERATOR ZIP)
|
set(CPACK_GENERATOR ZIP)
|
||||||
set(CPACK_PACKAGE_NAME ericw-tools)
|
set(CPACK_PACKAGE_NAME ericw-tools)
|
||||||
set(CPACK_PACKAGE_VERSION ${GIT_DESCRIBE})
|
set(CPACK_PACKAGE_VERSION ${GIT_DESCRIBE})
|
||||||
|
set(CPACK_INCLUDE_TOPLEVEL_DIRECTORY FALSE)
|
||||||
include(CPack)
|
include(CPack)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue