Commit graph

146 commits

Author SHA1 Message Date
Shawn Schantz
15e181903d chore(ios): update first voices distribution certificate 2026-05-21 16:20:53 -04:00
Shawn Schantz
dddd500052 maint(fv): update Cartfile for Xcode 26 2026-03-02 09:16:38 -05:00
Marc Durdin
0d27ac91f7 maint(mac): use mac_ prefix for functions in mac.inc.sh
* Also renames resources/environment.sh to resources/build/mac/xcode-environment.inc.sh.
* Adds a few more exclusions to linux/scripts/dist.sh

Fixes: #14478
Test-bot: skip
Build-bot: build
2025-08-20 05:40:32 +02:00
Marc Durdin
f03be501a6 maint(common): reorganize mac/ios build script includes
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
2025-08-05 12:57:32 +10:00
Marc Durdin
f394245636 maint(common): consolidate builder scripts
Clarifies the confusing builder.inc.sh / build-utils.sh distinction by
giving the scripts more appropriate names. Most build scripts should use
builder-full.inc.sh; some helper scripts can use builder-basic.inc.sh.
Documented in resources/build/README.md.

Renames:
* resources/build/builder.inc.sh to resources/build/builder-full.inc.sh
* resources/build/build-utils.sh to resources/build/builder-basic.inc.sh

Other changes:
* Moves Android-specific functions out of builder-basic.inc.sh and into
  android/build.sh.
* Renames functions in builder-basic.inc.sh

More functions may be moved from builder-basic.inc.sh into utils.inc.sh
or other scripts in the future.

Fixes: #14065
Build-bot: build all
Test-bot: skip
2025-08-02 08:11:24 +10:00
Marc Durdin
65158a0526 maint(common): rename shellHelperFunctions.sh to utils.inc.sh
Adds documentation for various functions, removes unused functions (a
couple of simple, very lightly used functions were unDRYed; these could
go back the other way across all shell scripts if necessary). TODO items
noted for follow-up refactoring.

Fixes: #14275
Relates-to: #14269
Build-bot: build all
Test-bot: skip
2025-08-02 06:58:40 +10:00
Shawn Schantz
b8183d9bd9 chore(ios): re-generate icon, attempting to remove white border 2025-05-21 11:12:20 +07:00
Shawn Schantz
26357514f6 chore(fix): update certificate for firstvoices 2025-05-20 14:35:37 +07:00
Shawn Schantz
9d9acb6257 chore(ios): update FirstVoices AppIcon 2025-05-19 11:20:19 +07:00
Eberhard Beilharz
4d81589f48
maint(common): use unique names for Keyman version variables
Previously the builder scripts defined a readonly `VERSION` environment
variable for the Keyman version. That caused problems when another
(external) script tried to define a `VERSION` variable. We encountered
this problem when trying to move the TC build steps of a configuration
into a single script (#13399) when we tried to source `~/.nvm/nvm.sh`.

This change uses a Keyman specific prefix for the version variables and
renames `VERSION` → `KEYMAN_VERSION` etc. Unfortunately these variables
are used in a lot of places, so this turned out to be a bit of a yak
shave.

Test-bot: skip
2025-05-07 18:46:51 +02:00
Shawn Schantz
f80393d0ac chore(ios): increase version number to 15.6
includes firstvoices and sample projects this time
2025-02-13 11:01:49 +07:00
sgschantz
78520fa32a chore(mac): update sentry version for firstvoices 2025-02-05 12:12:57 +07:00
Darcy Wong
1525dadf87 fix(oem/fv/ios): Correct typo in KEYBOARDS_TARGET 2024-05-16 14:14:30 +07:00
Darcy Wong
68fcd27bf7 chore(oem/fv/ios): Remove build_keyboards.sh script 2024-05-14 11:18:31 +07:00
Marc Durdin
cd8121ef65 chore(common): builder scripts now use /resources/build/builder.inc.sh
Note: there is a bit of potential confusion about the difference between
/resources/builder.inc.sh (the full implementation for builder scripts),
and /resources/build/builder.inc.sh (the source script that builder
scripts should always use).

This allows us to make assumptions that will always be true for builder
scripts that may not be true for other scripts, such as setting base
folder.
2024-05-02 15:54:31 +07:00
Marc Durdin
0f390d47cc chore(common): maintenance on build scripts - cd
Fixes #11324.

* Always `cd "$THIS_SCRIPT_PATH"`
* Remove unnecessary `cd` from all build.sh
* Remove unnecessary `set -eu` from all build.sh (and `# set -x`)
* Replace old build-utils.sh incantation in a few build.sh scripts
2024-05-02 15:54:29 +07:00
sgschantz
42e54dafbf chore(ios): experiment -> change order of build task 'Embed Frameworks' 2024-05-02 09:07:20 +07:00
sgschantz
3abcb35733 chore(ios): exit build phase script to experiment 2024-05-02 08:18:33 +07:00
sgschantz
ec64a98562 chore(ios): modify version scripts
Wrap scripts for FirstVoices so that environment variables are retained
2024-04-29 15:52:00 +07:00
Marc Durdin
c99aecacde fix(ios): remove '--debug' from build declaration
The '--debug' flag should not be specified as a parameter in the
builder_describe call.
2024-03-11 12:02:57 -05:00
sgschantz
a61fb78860 remove XCGLogger from sample projects, correct subsystem names 2024-01-19 22:51:20 +07:00
sgschantz
494a240383 remove XCGLogger from FV 2024-01-19 18:10:17 +07:00
sgschantz
15609864a5 remove xcglogger from cartfile 2024-01-19 11:32:06 +07:00
Marc Durdin
d15032eaf1 chore(ios): FV certificate key 2023-12-12 16:18:30 +07:00
sgschantz
cb15b2ee6b cartfile update 2023-11-17 08:24:16 +07:00
sgschantz
b1c93534da add ZIPFoundation to FirstVoices project 2023-11-15 16:27:53 +07:00
sgschantz
d5f857c701 remove marmelroy Zip and add weichsel ZIPFoundation 2023-11-15 16:27:41 +07:00
Marc Durdin
0f116c8104 fix(ios): missing backslash in build script
Fies #9764.
2023-10-16 04:20:01 +07:00
Joshua A. Horton
b65a80f6f9 fix(ios): lots more fixes per PR review 2023-07-03 09:01:23 +07:00
Joshua A. Horton
489c55d988 fix(ios): forgot to adjust include paths for build-utils.sh 2023-06-27 10:50:14 +07:00
Joshua A. Horton
90a08f1d55 change(ios): mass rework of ios-related scripts 2023-06-27 10:33:37 +07:00
Marc Durdin
c5bd761190 chore(ios): replace fv cert 2023-06-01 07:07:00 +07:00
Marc Durdin
a4ae39c15c
chore make oem/firstvoices/ios/Cartfile consistent with ios/Cartfile 2023-05-16 19:27:18 +10:00
davidmoore1
589e6b8faf Changes required for XCode 14.3 2023-05-10 10:44:07 -04:00
Marc Durdin
6c5b27365a chore(mac): use mac cp for -R ops
Because we don't know if mac BSD cp or GNU cp will be first on the path,
where there is ambiguity (e.g. with -R flag), we will use the macOS cp
command in /bin to ensure that we have consistent results. The
alternative would be to fixup each instance of the cp parameters so that
they work consistently with either cp command, but given these scripts
can run only on macOS, that seems unnecessary.

This replaces the earlier change in 97c6331b5.
2023-04-09 07:05:44 +07:00
Marc Durdin
ce864ea923 chore: update standard script prolog to use builtin instead of dirname 2023-02-22 11:04:15 +07:00
Marc Durdin
463c7ff907 chore: remove greadlink from standard script prolog 2023-02-22 10:43:06 +07:00
Marc Durdin
4d53a277f3 chore: use builder_die, remove fail 2023-02-20 09:15:38 +07:00
sgschantz
3e41f195a4 remove zip as FV dependency and framework 2023-01-23 11:10:44 +07:00
sgschantz
dae26e6123 set iOS Deployment Target to iOS 12.2 2023-01-23 10:08:14 +07:00
sgschantz
49d34ef601 updated DeviceKit to version 5.0 and changed build script to delete workaround for carthage
bug
2023-01-20 12:59:53 +07:00
sgschantz
0578517e0b enable Allow Full Access configuration in settings for FV Keyboards extension 2022-10-14 14:06:39 +07:00
Marc Durdin
767927bf16 chore(common): use /usr/bin/env bash
Fixes up scripts (except under /linux) to use `#!/usr/bin/env bash`
instead of `#!/bin/bash` or `#!/bin/sh` so that we don't end up with
the ancient version of bash supplied with macOS.

This became urgent with this PR, because of bash-4.xisms in
build-utils.sh, for example on line 572:

```
if [[ -v _builder_params[$e] ]]; then
```
2022-07-25 14:59:37 +10:00
Marc Durdin
cc18058cfe chore(ios): rename run-xcodebuild to run_xcodebuild 2022-06-24 14:03:55 +10:00
Marc Durdin
0730098236 chore(ios): update ios/macos build scripts to log scripts
Adds run-xcodebuild function to wrap xcodebuild calls to keep logging
and error handling consistent. Currently used only by the iOS build; the
macOS build has a corresponding execBuildCommand function which does
pretty much the same thing (changing that would belong in a separate PR
I think and low priority.)
2022-06-24 11:37:46 +10:00
Marc Durdin
bb1c6a0d57 chore(ios): add manageAppVersionAndBuildNumber=false 2022-06-24 09:18:49 +10:00
Marc Durdin
f6c41fab1b chore(ios): FV certificate hash 2022-05-27 14:19:13 +10:00
sgschantz
f0e1138605 remove unused class CheckBox 2022-03-31 13:41:09 +07:00
sgschantz
5119503148 revised comments 2022-03-31 08:01:50 +07:00
sgschantz
16b8e26c89 maintain active keyboard list and rebuild keyboard list in Keyman Engine whenever a keyboard is added or removed 2022-03-30 14:31:18 +07:00