Commit graph

12 commits

Author SHA1 Message Date
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