mirror of
https://github.com/passepartoutvpn/passepartout-apple.git
synced 2025-01-13 12:09:10 +00:00
9962401d74
- Always use bash for consistent script behavior - Replace deprecated set-output in GitHub workflows
16 lines
463 B
Bash
Executable File
16 lines
463 B
Bash
Executable File
#!/bin/bash
|
|
PLATFORM=$1
|
|
if [[ -z $PLATFORM ]]; then
|
|
echo "Platform required"
|
|
exit
|
|
fi
|
|
OUTPUT_DIRECTORY="dist/$PLATFORM"
|
|
if [[ $PLATFORM == "ios" ]]; then
|
|
export PILOT_IPA="$OUTPUT_DIRECTORY/Passepartout.ipa"
|
|
else
|
|
export PILOT_PKG="$OUTPUT_DIRECTORY/Passepartout.pkg"
|
|
fi
|
|
export CHANGELOG_PREFACE=`cat templates/CHANGELOG.preface.md`
|
|
export PILOT_CHANGELOG=`ci/build-changelog.sh $PLATFORM`
|
|
bundle exec fastlane --env $PLATFORM,beta,secret run pilot
|