mirror of
https://github.com/vector-im/element-desktop.git
synced 2024-09-05 20:10:06 +00:00
This updates the names of various packaging and build artifacts to match current branding. Part of https://github.com/vector-im/element-web/issues/14896
20 lines
770 B
Bash
Executable file
20 lines
770 B
Bash
Executable file
#!/bin/bash
|
|
|
|
docker inspect element-desktop-dockerbuild 2> /dev/null > /dev/null
|
|
if [ $? != 0 ]; then
|
|
echo "Docker image element-desktop-dockerbuild not found. Have you run yarn run docker:setup?"
|
|
exit 1
|
|
fi
|
|
|
|
# Taken from https://www.electron.build/multi-platform-build#docker
|
|
docker run --rm -ti \
|
|
--env-file <(env | grep -iE '^BUILDKITE_API_KEY=') \
|
|
--env ELECTRON_CACHE="/root/.cache/electron" \
|
|
--env ELECTRON_BUILDER_CACHE="/root/.cache/electron-builder" \
|
|
-v ${PWD}:/project \
|
|
-v ${PWD}/docker/node_modules:/project/node_modules \
|
|
-v ${PWD}/docker/.hak:/project/.hak \
|
|
-v ${PWD}/docker/.gnupg:/root/.gnupg \
|
|
-v ~/.cache/electron:/root/.cache/electron \
|
|
-v ~/.cache/electron-builder:/root/.cache/electron-builder \
|
|
element-desktop-dockerbuild "$@"
|