mirror of
https://github.com/CringeStudios/element-desktop.git
synced 2025-01-18 15:34:59 +01:00
Fix docker commands to work on ARM systems like macOS M1 (#1408)
This commit is contained in:
parent
5f722691e7
commit
29550847f9
@ -49,7 +49,7 @@
|
|||||||
"build": "yarn run build:ts && yarn run build:res && electron-builder",
|
"build": "yarn run build:ts && yarn run build:res && electron-builder",
|
||||||
"build:ts": "tsc",
|
"build:ts": "tsc",
|
||||||
"build:res": "ts-node scripts/copy-res.ts",
|
"build:res": "ts-node scripts/copy-res.ts",
|
||||||
"docker:setup": "docker build -t element-desktop-dockerbuild dockerbuild",
|
"docker:setup": "docker build --platform linux/amd64 -t element-desktop-dockerbuild dockerbuild",
|
||||||
"docker:build:native": "scripts/in-docker.sh yarn run hak",
|
"docker:build:native": "scripts/in-docker.sh yarn run hak",
|
||||||
"docker:build": "scripts/in-docker.sh yarn run build",
|
"docker:build": "scripts/in-docker.sh yarn run build",
|
||||||
"docker:install": "scripts/in-docker.sh yarn install",
|
"docker:install": "scripts/in-docker.sh yarn install",
|
||||||
|
@ -11,6 +11,7 @@ fi
|
|||||||
# Taken from https://www.electron.build/multi-platform-build#docker
|
# Taken from https://www.electron.build/multi-platform-build#docker
|
||||||
# Pass through any vars prefixed with INDOCKER_, removing the prefix
|
# Pass through any vars prefixed with INDOCKER_, removing the prefix
|
||||||
docker run --rm -ti \
|
docker run --rm -ti \
|
||||||
|
--platform linux/amd64 \
|
||||||
--env-file <(env | grep -E '^INDOCKER_' | sed -e 's/^INDOCKER_//') \
|
--env-file <(env | grep -E '^INDOCKER_' | sed -e 's/^INDOCKER_//') \
|
||||||
--env ELECTRON_CACHE="/root/.cache/electron" \
|
--env ELECTRON_CACHE="/root/.cache/electron" \
|
||||||
--env ELECTRON_BUILDER_CACHE="/root/.cache/electron-builder" \
|
--env ELECTRON_BUILDER_CACHE="/root/.cache/electron-builder" \
|
||||||
|
Loading…
Reference in New Issue
Block a user