mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-06 08:55:34 +00:00
Move mac-specific build scripts and functions into our established patterns for scripts under resources/build: * new mac/mac.inc.sh for mac-specific functions, from mac-utils.inc.sh, utils.inc.sh, builder-basic.inc.sh * move other mac-specific scripts into mac/ Relates-to: #14065 Build-bot: build Test-bot: skip
35 lines
No EOL
1.3 KiB
Bash
Executable file
35 lines
No EOL
1.3 KiB
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
## START STANDARD BUILD SCRIPT INCLUDE
|
|
# adjust relative paths as necessary
|
|
THIS_SCRIPT="$(readlink -f "${BASH_SOURCE[0]}")"
|
|
. "${THIS_SCRIPT%/*}/../resources/build/builder-full.inc.sh"
|
|
## END STANDARD BUILD SCRIPT INCLUDE
|
|
|
|
. "$KEYMAN_ROOT/resources/build/utils.inc.sh"
|
|
. "$KEYMAN_ROOT/resources/build/mac/mac.inc.sh"
|
|
|
|
builder_describe "Defines actions for use in CI-related iOS builds." \
|
|
"build" \
|
|
"prep-release"
|
|
# For consideration: clean ("Cleanup Carthage Mess", "Clean XCode DerivedData Mess")
|
|
# For consideration: publish:testflight ("Upload to TestFlight (PR area)")
|
|
# For consideration: publish:app-store ("Push * to the App Store for Deployment")
|
|
# For consideration: publish:fastlane (for matching release-build steps)
|
|
|
|
builder_parse "$@"
|
|
|
|
verify_on_mac
|
|
|
|
function do_build() {
|
|
./build.sh clean configure build:engine build:app --sim-artifact
|
|
|
|
# Since we may be disabling it via build-agent environment variable at times...
|
|
if [ ! -z "${RELEASE_OEM+x}" ]; then
|
|
"$KEYMAN_ROOT/oem/firstvoices/ios/build.sh" clean configure build --sim-artifact
|
|
fi
|
|
}
|
|
|
|
builder_run_action build do_build
|
|
# The script called below isn't builder-based, but... eh, "if it ain't broke."
|
|
builder_run_action prep_release tools/prepRelease.sh |