diff --git a/.gitignore b/.gitignore index c30dcde..65a8586 100644 --- a/.gitignore +++ b/.gitignore @@ -54,3 +54,5 @@ Temporary Items .apdisk build-*/ +*.zip +*.ipa diff --git a/build_release.sh b/build_release.sh new file mode 100755 index 0000000..cc4a66d --- /dev/null +++ b/build_release.sh @@ -0,0 +1,33 @@ +#!/bin/bash +set -e + +xcodebuild clean build -scheme 'Anime4KMetal (iOS)' -configuration Release \ + -destination generic/platform=macOS CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO \ + CONFIGURATION_BUILD_DIR=$(pwd)/build-macos + +cd build-macos +rm ../Anime4KMetal-macOS.zip || true +zip -r ../Anime4KMetal-macOS.zip Anime4KMetal.app +cd .. + +xcodebuild clean build -scheme 'Anime4KMetal (iOS)' -configuration Release \ + -destination generic/platform=iOS CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO \ + CONFIGURATION_BUILD_DIR=$(pwd)/build-ios + +cd build-ios +mkdir Payload +mv Anime4KMetal.app Payload +rm ../Anime4KMetal-iOS.ipa || true +zip -r ../Anime4KMetal-iOS.ipa Payload +cd .. + +xcodebuild clean build -scheme 'Anime4KMetal (tvOS)' -configuration Release \ + -destination generic/platform=tvOS CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO \ + CONFIGURATION_BUILD_DIR=$(pwd)/build-tvos + +cd build-tvos +mkdir Payload +mv Anime4KMetal.app Payload +rm ../Anime4KMetal-tvOS.ipa || true +zip -r ../Anime4KMetal-tvOS.ipa Payload +cd .. \ No newline at end of file