mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-07-15 07:56:11 +08:00
35 lines
589 B
Bash
Executable File
35 lines
589 B
Bash
Executable File
#!/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
|
|
|
|
# Download the required libraries
|
|
export LIBS_URL="https://github.com/GitJournal/ios-libraries/releases/download/v1.1/libs.zip"
|
|
|
|
if [ ! -d "ios/libs" ]; then
|
|
echo "Downloading Libs"
|
|
wget "$LIBS_URL"
|
|
unzip libs.zip
|
|
fi
|
|
|
|
flutter build ios --release
|
|
|
|
cd ios
|
|
fastlane release
|
|
|
|
git co .
|