Commit graph

60 commits

Author SHA1 Message Date
Eberhard Beilharz
07e62e9fe2
chore(android): upload webview source map during android and ios build
Previously we uploaded the webview source map during a web build. This
can lead to problems because that is not the actual artifact used for
Android and iOS.

This change therefore moves uploading the webview source map to Sentry
to the android and ios builds.

Build-bot: skip build:web,android,ios
Test-bot: skip
2026-08-27 18:57:18 +02:00
Marc Durdin
00e88d37a4 chore: Merge remote-tracking branch 'origin/epic/web-core' into auto/A19S17-merge-master-into-web-core 2025-12-05 08:07:35 +01:00
Marc Durdin
c524db41b9 maint(common): use builder_launch for child builds
Fixes: #15130
Test-bot: skip
2025-12-02 06:17:31 +01:00
Marc Durdin
86a903dcf5 refactor(web): move sentry-manager and es-bundling to common
sentry-manager is used by Keyman Engine for Android and Keyman Engine
for iOS, but not directly by KeymanWeb, nor does it have any
dependencies on /web. So it does not make sense to keep it under /web.

es-bundling is used by sentry-manager and potentially other /common/web
tools in the future, so moving it under /common/tools makes it more
consistent in the future.

This is part of simplifying the web source tree; these changes do not
make significant build performance differences at this time.

Test-bot: skip
2025-11-06 15:28:04 +01:00
Marc Durdin
1573fa540f maint(web): skip unnecessary steps for build buildLevel
Skip Sentry upload for non-release builds. Add TODO to merge ci.sh
content with resources/teamcity/web.

Fixes: #14289
Build-bot: build
Test-bot: skip
2025-08-13 09:10:07 +02: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
Eberhard Beilharz
a22de0a647
maint(developer): use add_zip_files function
This makes use of `add_zip_files` where possible.

Fixes: #14332
Follow-up-of: #14093
Test-bot: skip
2025-07-10 17:53:16 +02:00
Eberhard Beilharz
f324431754
fix(web): change env variable name
The build agents have the env variable `SEVENZ_HOME` set instead of
`SEVEN_Z_HOME`. That name is also used elsewhere, so this PR changes it
to the more widespread name.

Fixes: #14242
Follow-up-of: #14225
Build-bot: skip
Test-bot: skip
2025-07-01 16:21:21 +02:00
Eberhard Beilharz
4937362fdd
fix(web): deploy web/build/publish folder
This fixes a deployment problem which seems have been around since 17.0.
We also have to deploy the `web/build/publish` folder which contains all
the files necessary to load and run the test keyboards.

The fix can only be tested after a release build has happened and the
files have been deployed.

Fixes: #14234
Build-bot: skip
Test-bot: skip
2025-06-30 15:50:11 +02: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
Joshua Horton
cb5e3035a7 chore(web): replace --ci flag with builder_is_ci_build
Fixes: #12640
2025-05-02 09:39:39 +07:00
Eberhard Beilharz
820375b8fd
refactor(web): fix typo
Remove the space that sneaked in at the wrong place. Also another
refactoring.
2025-01-09 08:55:15 +01:00
Eberhard Beilharz
ada5806525
refactor(web): modernize web/ci.sh script
Also add check for necessary environment variables before trying to
upload to Sentry. This allows to run the script on a dev machine.
2025-01-08 18:06:33 +01:00
Eberhard Beilharz
b20d7f1eb4
refactor(web): move sentry-manager → web/src/engine/sentry-manager
Move `common/web/sentry-manager` to `web/src/engine/sentry-manager`.

Fixes: #12387
2024-09-11 15:15:01 +02:00
Eberhard Beilharz
663dbede4c
fix(web): fix build by calling correct script
`test.sh` got removed since it did the same as `build.sh test`.
2024-08-26 15:29:22 +07:00
Eberhard Beilharz
7dabd30cae
refactor(web): move gesture-recognizergesture-processor
Moves `common/web/gesture-recognizer/` →
`web/src/engine/osk/gesture-processor`.

Fixes: #12151
2024-08-26 15:29:21 +07:00
Eberhard Beilharz
46ecfd4466
refactor(web): move remaining parts of keyboard-processorkeyboard
move parts of `common/web/keyboard-processor/` →
`web/src/engine/keyboard/`.

Fixes: #12110
2024-08-12 19:40:15 +02:00
Eberhard Beilharz
24159d680b
chore(web): move common/web/input-processor/web/src/engine/main/
Also:
- move `modelSpec.ts` and `PredictionContext.ts` →
  `web/src/engine/interfaces`
- move `correction.ts` and `correctionLayout.ts` to `web/src/engine/osk/`

Relates-to: #12035
Fixes: #12054
2024-08-01 20:13:21 +02:00
Marc Durdin
33da132eab
Merge branch 'feature-gestures' into chore/merge-master-into-feature-gestures 2023-11-13 09:44:55 +11:00
Marc Durdin
6c00656849 chore(common): unify pull-request creation scripts
Fixes #9886.
2023-10-30 06:22:52 +07:00
Joshua A. Horton
30c23760ae chore(web): connects gesture-recognizer tests for Web CI testing 2023-07-19 08:19:52 +07:00
Joshua Horton
a61d95f419
Merge pull request #9200 from keymanapp/chore/web/cleaner-sentry-sourcemapping
chore(web): normalizes sourcemap paths for cleaner Sentry reports
2023-07-06 14:26:21 +07:00
Joshua Horton
97976b59a1
chore(web): Apply suggestions from code review 2023-07-06 14:25:58 +07:00
Joshua A. Horton
f21d8183ed chore(web): right, a sourceRoot would help sentry-manager 2023-07-06 12:27:53 +07:00
Joshua A. Horton
615ce0919d fix(web): changed func, forgot to change var reference 2023-07-06 10:51:15 +07:00
Joshua A. Horton
379689af18 feat(web): should probably upload sentry-manager to Sentry as well 2023-07-06 09:35:22 +07:00
Joshua A. Horton
5cbccdc155 fix(web): yesterday's 'fix' unfortunately doesn't upload the maps 2023-07-06 08:43:18 +07:00
Joshua A. Horton
1918352a7d fix(web): right, no 'npm run' for sentry-cli now 2023-07-05 10:50:49 +07:00
Joshua A. Horton
fe23fbb855 fix(web): use proper git-tag for Sentry upload 2023-07-05 10:02:27 +07:00
Joshua A. Horton
3b22c198c1 fix(web): re-establishes web srcmap uploading 2023-07-05 09:32:12 +07:00
Joshua A. Horton
ef271c0105 fix(web): zip artifact path was incorrect 2023-06-27 08:29:40 +07:00
Joshua A. Horton
be06ab3e6e chore(web): fixes web tool tsconfigs + updates build.sh scripts 2023-06-14 09:18:44 +07:00
Joshua Horton
ed54530d8c
Merge pull request #8895 from keymanapp/feat/web/release-filesize-profiling
feat(web): release-configuration filesize profiling 🧩
2023-06-06 15:22:47 +07:00
Joshua A. Horton
d706c5c46a feat(web): adds filesize profiling to CI build logs 2023-05-31 15:27:43 +07:00
Joshua A. Horton
edfa31e7c8 fix(web): stops creation of empty subdir 2023-05-31 10:09:28 +07:00
Joshua A. Horton
7621de2608 docs(web): better comment 2023-05-30 11:39:17 +07:00
Joshua A. Horton
05ceab5a60 change(web): updates ci step scripts to use prep steps from prior commit 2023-05-30 11:37:45 +07:00
Joshua A. Horton
7960c3cb43 fix(web): CI-script pathing issues, dependency 2023-05-19 14:34:59 +07:00
Joshua A. Horton
1f4da87bca change(web): proper definition for 'ci.sh test' 2023-05-18 10:37:29 +07:00
Joshua A. Horton
503c6d340c fix(web): ci script upload updates 2023-05-16 10:50:54 +07:00
Joshua A. Horton
f5e64a10a5 chore: Merge branch 'chore/common/ldml-ts-and-node-updates' into chore/feature-esmodule-master-update 2023-03-14 09:23:39 +07:00
Marc Durdin
8251ec861a chore: cleanup additional --debug references 2023-03-08 05:46:32 +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
Joshua A. Horton
a167679f7e chore(web): Merge branch 'feature-esmodule-web-engine' into change/web/device-detector-modularization 2023-02-03 08:43:21 +07:00
Joshua A. Horton
f8b58424de chore(web): even more requested changes 2023-02-01 14:05:01 +07:00
Joshua A. Horton
a3cadbabeb chore(web): more tweaks per review 2023-02-01 13:02:07 +07:00
Joshua A. Horton
ee2b47dff2 chore(web): changes per review concerns 2023-02-01 12:44:31 +07:00
Joshua A. Horton
d46d0c8c24 change(web): improved debug path for publish-s.keyman 2023-01-20 15:02:19 +07:00