Files
gaps/build
2021-01-04 23:12:05 -05:00

25 lines
999 B
Bash
Executable File

#!/bin/bash
set -e
VERSION=0.8.7
JAR_VERSION="GapsWeb/target/GapsWeb-$VERSION.jar"
ZIP_VERSION="GapsAsJar-$VERSION.zip"
npm ci
./minify
mvn clean install
docker buildx build --platform linux/s390x,linux/amd64 -t housewrecker/gaps:latest -f Dockerfile --push .
docker buildx build --platform linux/riscv64 -t housewrecker/gaps:risc-latest -f Dockerfile.riscv64 --push .
docker buildx build --platform linux/ppc64le -t housewrecker/gaps:ppc64le-latest -f Dockerfile.ppc64le --push .
docker buildx build --platform linux/arm64 -t housewrecker/gaps:arm-latest -f Dockerfile.arm64 --push .
docker buildx build --platform linux/arm/v7 -t housewrecker/gaps:raspbian-latest -f Dockerfile.raspbian --push .
### Making Windows/Linux/Mac Zip
mkdir -p GapsOnWindows
rm -f GapsAsJar/*.jar
rm -f GapsAsJar/*.md
rm -f GapsAsJar/*.sh
rm -f GapsAsJar/*.bat
cp $JAR_VERSION GapsAsJar/gaps.jar
cp README.md GapsAsJar/
cp startOnWindows.bat GapsAsJar/
cp startOnLinuxAndMac.sh GapsAsJar/
zip -r $ZIP_VERSION GapsAsJar/