Files
gaps/build
2020-10-01 16:10:56 +09:00

26 lines
1.0 KiB
Bash
Executable File

#!/bin/bash
set -e
VERSION=0.8.2
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,linux/s390x -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,linux/arm/v6 -t housewrecker/gaps:raspbian-latest -f Dockerfile.raspbian --push .
### Making Windows/Linux/Mac Zip
mkdir -p GapsOnWindows
rm $ZIP_VERSION
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/