Files
gaps/build
2020-10-13 16:44:38 +09:00

25 lines
987 B
Bash
Executable File

#!/bin/bash
set -e
VERSION=0.8.3
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 GapsAsJar/*.jar
rm GapsAsJar/*.md
rm GapsAsJar/*.sh
rm 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/