Files
CommandTabFree/scripts/ci-cd.sh
T

35 lines
887 B
Bash
Executable File

#!/usr/bin/env bash
set -ex
pwd
env | sort
jq --version
xcodebuild -version
xcodebuild -workspace alt-tab-macos.xcworkspace -scheme Release -showBuildSettings | grep SWIFT_VERSION
npm ci
if [ "$TRAVIS" = true ] ; then
npx commitlint-travis
npx commitlint
else
npx commitlint --from "$GITHUB_EVENT_BEFORE" --to "$GITHUB_EVENT_AFTER" --verbose
fi
scripts/ensure_generated_files_are_up_to_date.sh
if [ $IS_RELEASE ]; then
scripts/determine_version.sh
scripts/replace_environment_variables_in_app.sh
fi
scripts/codesign/setup_ci_master.sh
xcodebuild -workspace alt-tab-macos.xcworkspace -scheme Release -derivedDataPath DerivedData
file "$BUILD_DIR/$XCODE_BUILD_PATH/$APP_NAME.app/Contents/MacOS/$APP_NAME"
#if [ $IS_RELEASE ]; then
# scripts/package_and_notarize_release.sh
# scripts/upload_symbols_to_appcenter.sh
# scripts/update_appcast.sh
# npx semantic-release
#fi