parent
8c6d0d4c94
commit
43d67cd01b
@ -0,0 +1,9 @@ |
|||||||
|
FROM debian:sid-slim |
||||||
|
|
||||||
|
COPY ./src /srv/build |
||||||
|
|
||||||
|
WORKDIR /srv/build |
||||||
|
|
||||||
|
VOLUME ["/srv/build/repo/incoming"] |
||||||
|
|
||||||
|
ENTRYPOINT ["./main.sh"] |
@ -0,0 +1,7 @@ |
|||||||
|
#!/bin/sh |
||||||
|
|
||||||
|
set -e |
||||||
|
|
||||||
|
docker build -t deltachat-desktop . |
||||||
|
docker run --rm -v /srv/incoming:/srv/build/repo/incoming deltachat-desktop |
||||||
|
docker image rm deltachat-desktop |
@ -0,0 +1,20 @@ |
|||||||
|
#!/bin/sh |
||||||
|
|
||||||
|
set -e |
||||||
|
|
||||||
|
cd project |
||||||
|
|
||||||
|
echo "Installing build dependencies (apt)..." |
||||||
|
apt-get -qq -y --no-install-recommends install npm cargo > /dev/null |
||||||
|
echo "Installing build dependencies (npm)..." |
||||||
|
npm install |
||||||
|
echo "Build dependencies installed." |
||||||
|
|
||||||
|
echo "Building the app..." |
||||||
|
NODE_ENV=production npm run build |
||||||
|
NO_ASAR=true npm run pack:generate_config |
||||||
|
echo "App built successfully." |
||||||
|
|
||||||
|
echo "Packaging..." |
||||||
|
npm run pack:linux |
||||||
|
echo "App packaged successfully." |
Loading…
Reference in new issue