Skip to content

Commit

Permalink
Add build script
Browse files Browse the repository at this point in the history
  • Loading branch information
imxieyi committed Mar 26, 2023
1 parent 89651c2 commit 801eae3
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,5 @@ Temporary Items
.apdisk

build-*/
*.zip
*.ipa
33 changes: 33 additions & 0 deletions build_release.sh
Original file line number Diff line number Diff line change
@@ -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 ..

0 comments on commit 801eae3

Please sign in to comment.