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:
parent
1b3c07eda4
commit
9addc83a6b
@ -1,3 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
"$1/ios/zip2ipa.sh" "$2"
|
@ -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()
|
||||
|
@ -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"
|
Loading…
Reference in New Issue
Block a user