Skip to content

Commit

Permalink
Merge pull request #11438 from keymanapp/chore/oem/fv/rm-build-keyboards
Browse files Browse the repository at this point in the history
chore(oem/fv/ios): Remove build_keyboards.sh script
  • Loading branch information
darcywong00 authored May 16, 2024
2 parents d4fd52c + 1525dad commit a14d72f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 145 deletions.
140 changes: 0 additions & 140 deletions oem/firstvoices/common/build_keyboards.sh

This file was deleted.

19 changes: 14 additions & 5 deletions oem/firstvoices/ios/build.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
# Build FirstVoices for iOS app

## START STANDARD BUILD SCRIPT INCLUDE
# adjust relative paths as necessary
Expand All @@ -8,6 +9,9 @@ THIS_SCRIPT="$(readlink -f "${BASH_SOURCE[0]}")"

# Include our resource functions; they're pretty useful!
. "$KEYMAN_ROOT/resources/shellHelperFunctions.sh"
. "$KEYMAN_ROOT/resources/build/build-download-resources.sh"

# ################################ Main script ################################

# Please note that this build script (understandably) assumes that it is running on Mac OS X.
verify_on_mac
Expand Down Expand Up @@ -53,10 +57,15 @@ function carthage_die() {
}

function do_configure() {
export KEYBOARDS_TARGET="$TARGET/Keyboards"
export KEYBOARDS_CSV_TARGET="$TARGET/Keyboards/keyboards.csv"
# TODO: support passing -copy-keyboards, -debug, -clean etc in to build_keyboards
../common/build_keyboards.sh -download-keyboards
KEYBOARDS_CSV="$KEYMAN_ROOT/oem/firstvoices/keyboards.csv"
KEYBOARDS_CSV_TARGET="$KEYMAN_ROOT/oem/firstvoices/ios/FirstVoices/Keyboards/keyboards.csv"

KEYBOARD_PACKAGE_ID="fv_all"
KEYBOARDS_TARGET="$KEYMAN_ROOT/oem/firstvoices/ios/FirstVoices/Keyboards/${KEYBOARD_PACKAGE_ID}.kmp"

mkdir -p "$KEYMAN_ROOT/oem/firstvoices/ios/FirstVoices/Keyboards"
cp "$KEYBOARDS_CSV" "$KEYBOARDS_CSV_TARGET"
downloadKeyboardPackage "$KEYBOARD_PACKAGE_ID" "$KEYBOARDS_TARGET"

echo
echo "Load dependencies with Carthage"
Expand Down Expand Up @@ -134,4 +143,4 @@ function do_build() {

builder_run_action clean do_clean
builder_run_action configure do_configure
builder_run_action build do_build
builder_run_action build do_build

0 comments on commit a14d72f

Please sign in to comment.