Commit cd0e8624 authored by Bruno Coudoin's avatar Bruno Coudoin
Browse files

build windows, implement an appveyor specific download for the translations

previous test with installing wget with cinst ended up in timeout.
parent 91fb9fb1
...@@ -247,11 +247,17 @@ add_custom_target(BundleTranslations ...@@ -247,11 +247,17 @@ add_custom_target(BundleTranslations
COMMENT "If you want to provide a zip of the translations on a server (run make BuildTranslations first)" COMMENT "If you want to provide a zip of the translations on a server (run make BuildTranslations first)"
) )
if($ENV{APPVEYOR})
set(DL_CMD appveyor DownloadFile)
else()
set(DL_CMD wget)
endif()
add_custom_command( add_custom_command(
OUTPUT doDlAndInstallBundledTranslations OUTPUT doDlAndInstallBundledTranslations
COMMAND wget -O ${CMAKE_BINARY_DIR}/translations-${GCOMPRIS_VERSION}.7z http://gcompris.net/download/translations-${GCOMPRIS_VERSION}.7z COMMAND ${DL_CMD} http://gcompris.net/download/translations-${GCOMPRIS_VERSION}.7z
COMMAND 7z x -y -o${CMAKE_BINARY_DIR}/share/${GCOMPRIS_EXECUTABLE_NAME} ${CMAKE_BINARY_DIR}/translations-${GCOMPRIS_VERSION}.7z COMMAND 7z x -y -o${CMAKE_BINARY_DIR}/share/${GCOMPRIS_EXECUTABLE_NAME} translations-${GCOMPRIS_VERSION}.7z
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR} WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
) )
# Bundle translations # Bundle translations
add_custom_target(DlAndInstallBundledTranslations add_custom_target(DlAndInstallBundledTranslations
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment