More self-contained

master
Meliurwen 3 years ago
parent 8c6d0d4c94
commit 43d67cd01b
Signed by: meliurwen
GPG Key ID: 818A8B35E9F1CE10
  1. 9
      Dockerfile
  2. 7
      launch.sh
  3. 20
      src/build.sh
  4. 0
      src/deploy.sh
  5. 0
      src/getsauce.sh
  6. 19
      src/main.sh

@ -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."

@ -25,24 +25,7 @@ echo "Getting the source..."
"${REPO_URL}" \
"${CHECKOUT}"
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."
cd ..
./build.sh
echo "Package(s) deploy..."
DIST_DIR="project/dist"
Loading…
Cancel
Save