File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -3,8 +3,15 @@ message(STATUS "Generating test data AppImage")
33# Get appimagetool
44set (APPIMAGETOOL_BIN ${CMAKE_CURRENT_BINARY_DIR} /appimagetool)
55if (NOT EXISTS ${APPIMAGETOOL_BIN} )
6- message (STATUS "Downloading appimagetool for ${CMAKE_SYSTEM_PROCESSOR} " )
7- file (DOWNLOAD "https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-${CMAKE_SYSTEM_PROCESSOR} .AppImage" "${APPIMAGETOOL_BIN} " SHOW_PROGRESS )
6+ if ($ENV{ARCH} )
7+ set (APPIMAGETOOL_BIN_ARCH $ENV{ARCH} )
8+ else ()
9+ set (APPIMAGETOOL_BIN_ARCH ${CMAKE_SYSTEM_PROCESSOR} )
10+ endif ()
11+
12+ message (STATUS "Downloading appimagetool for ${APPIMAGETOOL_BIN_ARCH} " )
13+ file (DOWNLOAD "https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-${APPIMAGETOOL_BIN_ARCH} .AppImage" "${APPIMAGETOOL_BIN} " )
14+
815 execute_process (COMMAND chmod +x ${APPIMAGETOOL_BIN} )
916endif ()
1017message (STATUS "Using appimagetool: ${APPIMAGETOOL_BIN} " )
You can’t perform that action at this time.
0 commit comments