hookshot/scripts/build-app.sh
Will Hunt c02d4349a3
Get ARM64 builds working (#339)
* Use node:16-slim for final image build

* changelog

* Add ignore scripts to final install step

* Copy matrix-sdk-crypto-nodejs built files

* Add workaround to build images foo crypto-nodejs

* chmod +x

* require bash for builds

* Add apt install to hopefully make the rust bits build for arm

* Fix missing multilib (#349)

* Update and rename 336.misc to 339.bugfix

Co-authored-by: Paul Tötterman <ptman@users.noreply.github.com>
2022-05-10 15:55:30 +01:00

20 lines
465 B
Bash
Executable File

#!/bin/bash
# exit when any command fails
set -e
# Workaround for non-x64 / ia32 targets
pushd node_modules/@turt2live/matrix-sdk-crypto-nodejs
echo "Checking matrix-sdk-crypto-nodejs bindings (and building if required)"
node check-exists.js
popd
echo "Building Rust layer"
yarn run build:app:rs
echo "Running rust-typescript definitions fix"
yarn run build:app:fix-defs
echo "Building Typescript layer"
yarn run build:app
echo "Building web"
yarn run build:web