mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-29 02:07:39 +08:00
Add a script to build on ios
I usually do these steps manually each time.
This commit is contained in:
23
scripts/build_ios.sh
Executable file
23
scripts/build_ios.sh
Executable file
@ -0,0 +1,23 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
if [ -z ${FASTLANE_PASSWORD+x} ]; then
|
||||
echo "Must set FASTLANE_PASSWORD"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
set -eu
|
||||
|
||||
cd "$(dirname "$0")"
|
||||
cd ../
|
||||
|
||||
# Check for uncommitted changes
|
||||
if [[ $(git status -s | grep -v '??') ]]; then
|
||||
echo "Uncommitted Changes."
|
||||
echo "Exiting"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
flutter build ios --release
|
||||
|
||||
cd ios
|
||||
fastlane release
|
Reference in New Issue
Block a user