mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-30 07:07:25 +00:00
Clarify the Windows C++ package compiler dependency (#5053)
Add a -MSVC suffix to our binary package (and prepare for future MinGW build) cc #5052
This commit is contained in:
parent
2c0ba2bc0f
commit
cacc13343f
2 changed files with 10 additions and 3 deletions
2
.github/workflows/nightly_snapshot.yaml
vendored
2
.github/workflows/nightly_snapshot.yaml
vendored
|
@ -459,7 +459,7 @@ jobs:
|
|||
- name: Extract files
|
||||
run: |
|
||||
mkdir artifacts
|
||||
mv Slint-cpp-*-win64.exe artifacts/
|
||||
mv Slint-cpp-*-win64*.exe artifacts/
|
||||
mv Slint-cpp-*-Linux-x86_64.tar.gz artifacts/
|
||||
mv slint-viewer-linux.tar.gz artifacts/
|
||||
mv slint-viewer-macos.tar.gz artifacts/
|
||||
|
|
|
@ -439,10 +439,17 @@ set(CPACK_RESOURCE_FILE_README "${CMAKE_CURRENT_LIST_DIR}/README.md")
|
|||
set(CPACK_STRIP_FILES ON)
|
||||
set(CPACK_NSIS_DEFINES "ManifestDPIAware true")
|
||||
|
||||
if(NOT WIN32)
|
||||
if(WIN32)
|
||||
if(MSVC)
|
||||
set(compiler_suffix "-MSVC")
|
||||
elseif(MINGW)
|
||||
set(compiler_suffix "-MinGW")
|
||||
endif()
|
||||
set(CPACK_SYSTEM_NAME "${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION}-${CPACK_SYSTEM_NAME}${compiler_suffix}")
|
||||
else()
|
||||
set(CPACK_GENERATOR "TGZ")
|
||||
set(CPACK_SYSTEM_NAME "${CMAKE_SYSTEM_NAME}-${CMAKE_SYSTEM_PROCESSOR}")
|
||||
endif(NOT WIN32)
|
||||
endif()
|
||||
|
||||
include(CPack)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue