1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-02 00:10:22 +02:00

generate ipa file with CPack directly

This commit is contained in:
Andrey Filipenkov 2022-08-11 15:15:20 +03:00
parent 1b3c07eda4
commit 9addc83a6b
3 changed files with 1 additions and 12 deletions

View File

@ -1,3 +0,0 @@
#!/usr/bin/env bash
"$1/ios/zip2ipa.sh" "$2"

View File

@ -621,6 +621,7 @@ elseif(APPLE_MACOS AND NOT ENABLE_MONOLITHIC_INSTALL)
add_subdirectory(osx)
elseif(APPLE_IOS)
set(CPACK_GENERATOR ZIP)
set(CPACK_ARCHIVE_FILE_EXTENSION ipa)
set(CPACK_INCLUDE_TOPLEVEL_DIRECTORY OFF)
set(CPACK_INSTALL_CMAKE_PROJECTS "${CMAKE_CURRENT_BINARY_DIR};${CMAKE_PROJECT_NAME};app;/")
else()

View File

@ -1,9 +0,0 @@
#!/usr/bin/env bash
generatedZip="$1"
if [[ -z "$generatedZip" ]]; then
echo 'generated zip not provided as param'
exit 1
fi
mv "$generatedZip" "$(basename "$generatedZip" .zip).ipa"