#!/bin/bash
VERSION=0.7.5
JAR_VERSION="GapsWeb/target/GapsWeb-$VERSION.jar"
ZIP_VERSION="Gaps-$VERSION.zip"
./minify
mvn clean install deploy
docker buildx build --platform linux/ppc64le,linux/s390x,linux/amd64 -t housewrecker/gaps:latest -f Dockerfile --push .
docker buildx build --platform linux/amd64,linux/arm64,linux/arm/v7 -t housewrecker/gaps:arm-latest -f Dockerfile.arm64 --push .
mkdir -p GapsOnWindows
rm $ZIP_VERSION
rm GapsOnWindows/*.jar
rm GapsOnWindows/README.md
cp $JAR_VERSION GapsOnWindows/gaps.jar
cp README.md GapsOnWindows/
zip -r $ZIP_VERSION GapsOnWindows/