forked from CringeStudios/element-desktop
Compare commits
18 Commits
renovate/e
...
develop
Author | SHA1 | Date | |
---|---|---|---|
3e518d38f6 | |||
c6d95a774e | |||
adfae6f51d | |||
07ea7afb9e | |||
4aabc986ef | |||
d1c2be8898 | |||
d4a78d0d4f | |||
458ca631e6 | |||
508df5a8fb | |||
ac3055f51e | |||
2a89cdf443 | |||
b272e50a67 | |||
14c0db5565 | |||
8d9343e54d | |||
695860d8cd | |||
c964c11d2b | |||
5898fd756f | |||
deda5d64db |
23
.gitea/workflows/build_linux_docker.yml
Normal file
23
.gitea/workflows/build_linux_docker.yml
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
on: [push, workflow_dispatch]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build-element:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Download Cringe Studios configuration
|
||||||
|
run: "mkdir cringe && wget -O cringe/config.json https://chat.cringe-studios.com/config.json"
|
||||||
|
|
||||||
|
- name: Docker setup
|
||||||
|
run: "docker build --platform linux/amd64 -t element-desktop-dockerbuild -f dockerbuild/Dockerfile ."
|
||||||
|
|
||||||
|
- name: Docker build
|
||||||
|
run: >
|
||||||
|
ls -la && PWD=$(pwd) scripts/in-docker.sh bash -c 'ls -la &&
|
||||||
|
yarn add matrix-seshat &&
|
||||||
|
yarn &&
|
||||||
|
yarn run fetch --noverify --cfgdir cringe &&
|
||||||
|
SQLCIPHER_BUNDLED=1 yarn run docker:build:native &&
|
||||||
|
yarn run docker:build --linux rpm --linux deb --linux tar.xz --linux AppImage --win squirrel'
|
@ -14,6 +14,7 @@ RUN apt-get -qq update && apt-get -y -qq dist-upgrade && \
|
|||||||
# Used by seshat (when not SQLCIPHER_STATIC) \
|
# Used by seshat (when not SQLCIPHER_STATIC) \
|
||||||
libsqlcipher-dev && \
|
libsqlcipher-dev && \
|
||||||
apt-get purge -y --auto-remove && rm -rf /var/lib/apt/lists/*
|
apt-get purge -y --auto-remove && rm -rf /var/lib/apt/lists/*
|
||||||
|
RUN dpkg --add-architecture i386 && apt-get update && apt-get install -y wine mono-devel rpm
|
||||||
RUN ln -s /usr/bin/python3 /usr/bin/python & ln -s /usr/bin/pip3 /usr/bin/pip
|
RUN ln -s /usr/bin/python3 /usr/bin/python & ln -s /usr/bin/pip3 /usr/bin/pip
|
||||||
|
|
||||||
ENV DEBUG_COLORS=true
|
ENV DEBUG_COLORS=true
|
||||||
|
@ -8,9 +8,12 @@ if [ $? != 0 ]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
echo "${PWD}"
|
||||||
|
echo $(ls "${PWD}")
|
||||||
|
|
||||||
# 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 \
|
||||||
--platform linux/amd64 \
|
--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" \
|
||||||
@ -21,4 +24,5 @@ docker run --rm -ti \
|
|||||||
-v ${PWD}/docker/.gnupg:/root/.gnupg \
|
-v ${PWD}/docker/.gnupg:/root/.gnupg \
|
||||||
-v ~/.cache/electron:/root/.cache/electron \
|
-v ~/.cache/electron:/root/.cache/electron \
|
||||||
-v ~/.cache/electron-builder:/root/.cache/electron-builder \
|
-v ~/.cache/electron-builder:/root/.cache/electron-builder \
|
||||||
|
--workdir "/project" \
|
||||||
"$IMAGE" "$@"
|
"$IMAGE" "$@"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user