1
0
mirror of https://github.com/element-hq/element-web.git synced 2026-10-24 23:19:26 +03:00
Files
element-web/apps/desktop/dockerbuild/setup.sh
Will Hunt 2cfe88578b Remove "hak" and switch to "@matrix-org/seshat" (#35047)
* Remove hak

* Remove dockerbuild

* Refactor to support new @matrix-org/seshat

* Cleanup workflows

* Update windows requirements

* Restore dockerbuild

* Reduce size of doc

* lint

* clear up unused stuff

* bump tests

* another package update
2026-09-17 10:23:01 +00:00

12 lines
638 B
Bash
Executable File

#!/usr/bin/env bash
set -x
declare -A archMap=(["amd64"]="x64" ["arm64"]="arm64")
ARCH="${archMap["$TARGETARCH"]}"
# The .node-version file generally doesn't have the 'v' (renovate does not put the 'v' and will
# strip it on upgrade if it's there) but the 'v' is also widely supported so we probably ought
# to just work either way.
NODE_VERSION=$(cat /.node-version | sed -e 's/^v//')
curl --proto "=https" -L "https://nodejs.org/dist/v$NODE_VERSION/node-v$NODE_VERSION-$TARGETOS-$ARCH.tar.gz" | tar xz -C /usr/local --strip-components=1 && \
unlink /usr/local/CHANGELOG.md && unlink /usr/local/LICENSE && unlink /usr/local/README.md