Commit graph

23 commits

Author SHA1 Message Date
Joshua Horton
45e0d875b3 fix(mac): -e to check if dir exists, as -f doesn't match against dirs 2024-05-27 08:48:26 +07:00
Joshua Horton
2f88afd9ad chore(mac): patch for last commit 2024-05-15 10:02:04 +07:00
Marc Durdin
fb2fbd2684 chore(mac): eval and non-eval codesign 2023-12-13 13:14:55 +07:00
Marc Durdin
2b61bb8f47 fix(mac): improve code signing robustness 2023-12-13 12:08:29 +07:00
Marc Durdin
37a8f1316e chore(mac): refactor notarization into sourced script 2023-06-19 07:32:14 +07:00
Marc Durdin
3e6b91b861 chore(mac): replace altool with notarytool in setup build 2023-06-19 07:23:21 +07: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
a004978863 chore: use builder_heading, remove echo_heading 2023-02-20 09:17:51 +07:00
Marc Durdin
4d53a277f3 chore: use builder_die, remove fail 2023-02-20 09:15:38 +07:00
Marc Durdin
158e815ec5 chore(common): fix path for mac setup build 2022-07-31 08:12:23 +10:00
Marc Durdin
26881d603a chore(mac): update setup/build to include build-utils.sh
shellHelperFunctions.sh currently needs build-utils.sh sourced first in
order to parse. As we are planning to merge these two scripts, I am okay
with this for now. But we need to make sure that prerequisite is met for
now.

I ran the following command to find scripts that referenced
shellHelperFunctions.sh but not build-utils.sh:

  grep -L build-utils.sh $(grep -lR shellHelperFunctions --include='*.sh' .)

The following files were found:

  ./mac/bashHelperFunctions.sh
  ./mac/setup/build.sh
  ./resources/build/history/history-utils.sh

* bashHelperFunctions.sh has only a comment reference, so it's okay.
* mac/setup/build.sh I have reworked to include build-utils.sh.
* history-utils.sh is used only by ios/tools/prepRelease.sh, and that
  script already includes build-utils.sh.
2022-07-30 13:59:31 +10: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
ef12db7cf4 chore(mac): include all sources in makefile 2021-09-16 09:21:30 +10:00
Marc Durdin
16dd8f5b23 fix(mac): prioritise arm64 for script 2021-09-16 07:07:54 +10:00
Marc Durdin
8399f4638b fix(mac): add support for M1 processor
Fixes #5700.

Adds support for arm64 (M1) to textinputsource in the Keyman app. All
other executables are already fat with support for both x86_64 and
arm64.
2021-09-16 06:17:58 +10:00
Marc Durdin
ad99c6c687 fix(mac): build installer from source
The installer did not work on downlevel versions
of macOS as the compile in Script Editor produced
a 10.15-compatible version. Now we build the app
directly from source with osacompile and bundle
that instead.
2020-02-14 10:05:24 +11:00
Marc Durdin
348f39d4a2 fix(mac): support older macos in installer 2020-02-14 08:29:54 +11:00
Marc Durdin
8784e142c3 chore(mac): address review comments 2020-02-07 16:14:10 +11:00
Marc Durdin
9a1f0b65a5 fix(mac): tweak installer wording 2020-02-05 16:33:46 +11:00
Marc Durdin
e7ae5bdf08 feat(mac): tweaks to dmg and script 2020-02-05 16:12:52 +11:00
Marc Durdin
f8ea457325 feat(mac): install script
First steps towards a clean install script
for Keyman for Mac. Some steps still out-
of-order for now, particularly opening
System Preferences to allow Keyman before
Keyman has run for first time.
2020-01-29 10:12:26 +11:00