2021-11-12 08:39:05 +00:00
|
|
|
#!/bin/sh
|
|
|
|
PLATFORM=$1
|
|
|
|
if [[ -z $PLATFORM ]]; then
|
|
|
|
echo "Platform required"
|
|
|
|
exit
|
|
|
|
fi
|
2021-12-03 14:31:19 +00:00
|
|
|
OUTPUT_DIRECTORY="dist/$PLATFORM"
|
2021-11-27 12:49:23 +00:00
|
|
|
if [[ $PLATFORM == "ios" ]]; then
|
2021-12-03 14:31:19 +00:00
|
|
|
export PILOT_IPA="$OUTPUT_DIRECTORY/Passepartout.ipa"
|
2021-11-27 12:49:23 +00:00
|
|
|
else
|
2021-12-03 14:31:19 +00:00
|
|
|
export PILOT_PKG="$OUTPUT_DIRECTORY/Passepartout.pkg"
|
2021-11-27 12:49:23 +00:00
|
|
|
fi
|
2021-12-03 14:31:19 +00:00
|
|
|
export CHANGELOG_PREFACE=`cat templates/CHANGELOG.preface.md`
|
2021-11-12 08:39:05 +00:00
|
|
|
export PILOT_CHANGELOG=`ci/build-changelog.sh $PLATFORM`
|
2021-12-03 14:31:19 +00:00
|
|
|
bundle exec fastlane --env $PLATFORM,beta,secret run pilot
|