Commit graph

1063 commits

Author SHA1 Message Date
Marc Durdin
377b1056ec maint(resources): rename KEYMAN_VERSION_FOR_PR_FILENAME
Address review comment from #14703.

Test-bot: skip
Build-bot: skip
Relates-to: #14703
Relates-to: #10521
2025-09-10 11:17:41 +02:00
Marc Durdin
b061944223 maint(mac): use versioned filenames for PR artifacts
Relates-to: #10521
Test-bot: skip
Build-bot: skip release:mac
2025-09-08 12:44:57 +02: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
3cdce9b371
Merge pull request #14467 from keymanapp/maint/mac/14287-skip-publishing-on-build-buildlevel
maint(mac): skip unnecessary network steps when buildLevel is build 🦌
2025-08-19 15:42:59 +07:00
Marc Durdin
4314088071 maint(mac): only publish sentry for CI builds 2025-08-18 11:28:08 +02:00
Marc Durdin
bdbd748d82
Merge pull request #14458 from keymanapp/maint/common/mac-scripts
maint(common): reorganize mac/ios build script includes 🐸
2025-08-12 10:41:35 +07:00
Marc Durdin
a81138c62b
Merge pull request #14449 from keymanapp/maint/common/14065-consolidate-builder-scripts
maint(common): consolidate builder scripts 🐸
2025-08-12 10:41:09 +07:00
Marc Durdin
f95b26ac1f
Merge pull request #14446 from keymanapp/maint/common/14275-rename-and-cleanup-shellHelperFunctions.sh
maint(common): rename shellHelperFunctions.sh to utils.inc.sh 🐸
2025-08-12 10:40:59 +07:00
Marc Durdin
8caf66ce9e maint(mac): address review comments 2025-08-12 05:27:48 +02:00
Marc Durdin
c3ce6adfaf
Merge branch 'maint/ios/14286-skip-publishing-on-build-buildlevel' into maint/mac/14287-skip-publishing-on-build-buildlevel 2025-08-07 11:44:32 +07:00
Darcy Wong
afd4256ce6 chore(common): Update Crowdin strings for Spanish 2025-08-06 11:36:52 +07:00
Marc Durdin
637b59d2e2 maint(mac): skip unnecessary network steps when buildLevel is build
Skips sentry upload, notarization, and code signing.

Fixes: #14287
2025-08-06 11:09:47 +08:00
Marc Durdin
be61cb74b5 maint(mac): remove unused scripts 2025-08-05 13:26:19 +10: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
Marc Durdin
808b6557d6 maint(common): use cpp_std=c++17 in meson project default_options
We attempted to set the C++ version in standard.meson.build, but this
does not work well as the option name varies by platform, and it also
triggers a warning in meson. This fix moves the setting into each
meson.build project() default_options. As there are only a handful
of these, the maintenance burden is not high.

Fixes: #14432
Relates-to: #14355
Build-bot: build
Test-bot: skip
2025-08-01 10:23:57 +10:00
Eberhard Beilharz
51ca604b47
chore(common): Merge remote-tracking branch 'origin/master' into maint/common/14109_isOsFuncs 2025-07-21 09:20:12 +02:00
Eberhard Beilharz
982ff9b8ce
Merge pull request #14325 from keymanapp/maint/mac/write-download-info
Mac had a separate `write-download_info.sh` script that duplicates what is done in the `write_download_info` function. Also remove the unused `dl_info_display_usage` function that is unused and seems to be related to the script we're deleting.

Follow-up-of: #14270
2025-07-21 09:13:34 +02:00
Eberhard Beilharz
faa521d82c
maint(common): set C++17 in standard.meson.build
Note that the ICU subprojects still explicitly specify C++17 since they
are maintained outside of Keyman and so shouldn't be tied to the Keyman
compiler version requirement.

Fixes: #12526
Test-bot: skip
2025-07-18 14:04:11 +02:00
Eberhard Beilharz
bcc6ecc3eb
maint(mac): consolidate write-download_info
Mac had a separate `write-download_info.sh` script that duplicates what
is done in the `write_download_info` function. Also remove the unused
`dl_info_display_usage` function that is unused and seems to be related
to the script we're deleting.

Test-bot: skip
2025-07-09 19:12:29 +02:00
Eberhard Beilharz
3b136fcec9
maint(common): consolidate functions to determine OS
- add `builder_is_windows`, `builder_is_macos` and `builder_is_linux`
  functions
- add/move `BUILDER_OS` env variable to `resources/builder.inc.sh`
- use the new functions and env variable

Fixes: #14109
Test-bot: skip
2025-07-09 18:33:09 +02:00
Marc Durdin
dd712333e5 maint(mac): make make-km-dmg.sh less quiet
When build.sh was converted to a builder-style script, the -quiet flag
was then passed into make-km-dmg.sh, which meant that it no longer gave
valuable diagnostic output. This returns the script to default levels of
output (there is also a -verbose or -debug level we could use). The
variable QUIET_FLAG appears to have been used only in that one place.
2025-06-03 05:58:48 +07:00
Darcy Wong
ed0b747722
Merge pull request #13871 from keymanapp/chore/crowdin-it
chore(mac,windows): Update Crowdin strings for Italian
2025-05-16 09:00:49 +07:00
Shawn Schantz
79d5347c80
Merge pull request #13876 from keymanapp/fix/mac/13718-sanskrit-unicode-crash
fix(mac): handle PackageInfo section in kmp.inf file
2025-05-13 15:48:55 +07:00
Shawn Schantz
df21808616
Merge pull request #13848 from keymanapp/fix/mac/replace-km-binary-file-format
chore(mac): remove obsolete key processing code
2025-05-12 18:39:40 +07:00
Shawn Schantz
c91e309c54 chore(mac): deleted another swath of unused constants 2025-05-12 16:34:32 +07:00
Shawn Schantz
299f37e48b fix(mac): clarify file format differences for kmp.inf 5.0 and 6.0 2025-05-12 16:21:30 +07:00
Shawn Schantz
c45135d5b2 fix(mac): handle [PackageInfo] section in kmp.inf file
also prevent crash when no package name found

Fixes: #13718
2025-05-09 18:29:54 +07:00
Darcy Wong
c22963f302 chore(mac): Update Crowdin comments for Italian 2025-05-09 10:28:56 +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
e619e9f89a chore(mac): removed commented-out code
Fixes: #11104
2025-05-07 16:08:14 +07:00
Shawn Schantz
db5a49370b chore(mac): remove files for KMCompGroup, KMCompKey, NSString extension 2025-05-07 12:51:51 +07:00
Shawn Schantz
cd59c298a8 chore(mac): remove NSString extension 2025-05-07 12:36:17 +07:00
Shawn Schantz
623d5af5ab chore(mac): remove group code, stop reading stores at init 2025-05-07 12:07:59 +07:00
Shawn Schantz
e827827bb4 chore(mac): removed references to groups and load only system stores 2025-05-06 17:06:29 +07:00
Shawn Schantz
3109e9e8ab chore(mac): remove unused String extension functions 2025-05-05 11:53:49 +07:00
Marc Durdin
278e534c3a
Merge pull request #13818 from keymanapp/chore/investigate-mac-build-tag
fix(mac): add version metadata after building tests
2025-05-05 06:22:34 +07:00
Marc Durdin
07e497c4f0 docs(mac): add comment explaining multiple build steps 2025-05-05 06:05:13 +07:00
Marc Durdin
abb1eecddf fix(mac): add version metadata after building tests
The mac build started to lose rewritten info.plist metadata in #11444
when tests were run after the build completed. When the tests were run,
xcodebuild would rewrite the info.plist, losing the rewritten metadata.

This patch updates the build script to write the metadata after unit
tests (if any) are run.

Fixes: #13791
2025-05-03 15:35:53 +07:00
Marc Durdin
f8917d2454 maint(common): cleanup meson versioning
* Adds `VERSION_WITH_TAG` variable to standard.meson.build
* Consistently uses `file('VERSION.md')` to retrieve version number

Note that VERSION_WITH_TAG is not yet used but should be used for
version tagged files later.
2025-04-30 08:23:05 +07:00
Marc Durdin
4f829f5c8f chore: Merge remote-tracking branch 'origin/master' into chore/merge-beta-to-master-b18s5 2025-04-21 07:13:35 +07:00
Darcy Wong
30dc85f484 chore(common): Update crowdin strings for Spanish Latin America 2025-04-09 07:44:32 +07:00
Darcy Wong
0d2c001e48
Merge pull request #13681 from keymanapp/chore/common/crowdin-km
chore(android,mac,windows): update Crowdin strings for Khmer
2025-04-07 15:57:35 +07:00
Darcy Wong
d6c612104c chore(mac): Update crowdin strings for Khmer 2025-04-07 08:52:26 +07:00
Darcy Wong
005f1674ad chore(mac): Update crowdin strings for Czech 2025-04-07 08:41:12 +07:00
Shawn Schantz
114a7479a3
Merge pull request #13550 from keymanapp/fix/mac/13465-word-table-output
fix(mac): reevaluate API compliance for each change in context
2025-04-03 09:40:09 +07:00
Darcy Wong
4d4508d4c7
Merge pull request #13595 from keymanapp/chore/crowdin/mon
chore(common): Update crowdin strings for Mon
2025-04-02 10:38:41 +07:00
Darcy Wong
938bfcea76 chore(mac): Clean up comment 2025-04-01 10:16:25 +07:00
Marc Durdin
a52437c407 chore: Merge branch 'master' into chore/b18s4-merge-beta-to-master 2025-03-29 05:38:08 +07:00