Skip to content

Commit

Permalink
chore: update the file of project
Browse files Browse the repository at this point in the history
  • Loading branch information
x-tools-author committed Dec 9, 2023
1 parent c3c500e commit 06f1fe7
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .cmake/sak_environment.cmake
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
option(SAK_ENABLE_LINUXDEPLOYQT "Enable linuxdeployqt" OFF)
option(SAK_ENABLE_LINUXDEPLOYQT "Enable linuxdeployqt" OFF)
option(SAK_ENABLE_LINUXDEPLOYQT_DOWNLOAD "Enable linuxdeployqt download" OFF)
option(SAK_ENABLE_LINUXDEPLOYQT_SYS "Enable linuxdeployqt with system tool" OFF)

if(${SAK_ENABLE_LINUXDEPLOYQT})
if(${SAK_ENABLE_LINUXDEPLOYQT_DOWNLOAD})
set(appimagetool_url "https://github.com/AppImage/AppImageKit/releases/download/13/appimagetool-x86_64.AppImage")
set(linuxdeployqt_url "https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage")
set(appimagetool_url
"https://github.com/AppImage/AppImageKit/releases/download/13/appimagetool-x86_64.AppImage")
set(linuxdeployqt_url
"https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage"
)
execute_process(COMMAND wget -O ${CMAKE_BINARY_DIR}/linuxdeployqt ${linuxdeployqt_url})
execute_process(COMMAND wget -O ${CMAKE_BINARY_DIR}/appimagetool ${appimagetool_url})
execute_process(COMMAND chmod +x ${CMAKE_BINARY_DIR}/linuxdeployqt ${linuxdeployqt_url})
Expand All @@ -22,4 +25,4 @@ if(${SAK_ENABLE_LINUXDEPLOYQT})
endif()
endif()
message(STATUS "linuxdeployqt: ${SAK_BIN_LINUXDEPLOYQT}")
endif()
endif()

0 comments on commit 06f1fe7

Please sign in to comment.