Update Gitea publish script for v0.2.0 releases.
Co-authored-by: Cursor <[email protected]>
This commit is contained in:
@@ -1,8 +1,9 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# Create Dawnsorrow/hex-mines on Gitea (if needed), push main, create v0.1.0
|
# Create Dawnsorrow/hex-mines on Gitea (if needed), push main, create a
|
||||||
# release, and upload the debug APK.
|
# release, and upload the debug APK.
|
||||||
#
|
#
|
||||||
# Requires: GITEA_TOKEN (repo write), curl, python3, git
|
# Requires: GITEA_TOKEN (repo write), curl, python3, git
|
||||||
|
# Optional: HEX_MINES_VERSION (default 0.2.0)
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
ROOT="$(cd "$(dirname "$0")" && pwd)"
|
ROOT="$(cd "$(dirname "$0")" && pwd)"
|
||||||
@@ -10,7 +11,7 @@ OWNER="${GITEA_OWNER:-Dawnsorrow}"
|
|||||||
REPO="${GITEA_REPO:-hex-mines}"
|
REPO="${GITEA_REPO:-hex-mines}"
|
||||||
BASE="${GITEA_BASE_URL:-https://git.hisora.dev}"
|
BASE="${GITEA_BASE_URL:-https://git.hisora.dev}"
|
||||||
BASE="${BASE%/}"
|
BASE="${BASE%/}"
|
||||||
VERSION="${HEX_MINES_VERSION:-0.1.0}"
|
VERSION="${HEX_MINES_VERSION:-0.2.0}"
|
||||||
TAG="v${VERSION}"
|
TAG="v${VERSION}"
|
||||||
TITLE="Hex Mines ${TAG}"
|
TITLE="Hex Mines ${TAG}"
|
||||||
APK="${1:-${ROOT}/dist/HexMines-${VERSION}-debug.apk}"
|
APK="${1:-${ROOT}/dist/HexMines-${VERSION}-debug.apk}"
|
||||||
@@ -74,7 +75,8 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Pushing main and tag ${TAG} ..."
|
echo "Pushing main and tag ${TAG} ..."
|
||||||
git push -u "$PUSH_URL_AUTH" HEAD:main
|
git push "$PUSH_URL_AUTH" HEAD:main
|
||||||
|
git branch --set-upstream-to=origin/main main 2>/dev/null || true
|
||||||
|
|
||||||
# Create / move tag locally
|
# Create / move tag locally
|
||||||
git tag -f "$TAG"
|
git tag -f "$TAG"
|
||||||
@@ -83,13 +85,13 @@ git push -f "$PUSH_URL_AUTH" "refs/tags/${TAG}"
|
|||||||
NOTE=$(cat <<EOF
|
NOTE=$(cat <<EOF
|
||||||
## Hex Mines ${TAG}
|
## Hex Mines ${TAG}
|
||||||
|
|
||||||
First public build of the hexagonal minesweeper fork.
|
Hexagonal minesweeper fork of [StefanOltmann/mines](https://github.com/StefanOltmann/mines) (AGPL-3.0).
|
||||||
|
|
||||||
### Highlights
|
### Highlights
|
||||||
- Flat-top hex tiles (6 neighbors)
|
- Flat-top hex tiles (6 neighbors)
|
||||||
- Configurable board width / height
|
- Layout modes: **Rows** (width × height) and **Hexagon** (side length)
|
||||||
- Configurable mine count slider
|
- Configurable mine count slider
|
||||||
- Based on [StefanOltmann/mines](https://github.com/StefanOltmann/mines) (AGPL-3.0)
|
- Settings icon sizing fix for usable sliders
|
||||||
|
|
||||||
### Install
|
### Install
|
||||||
Download \`HexMines-${VERSION}-debug.apk\` and install on Android (debug-signed).
|
Download \`HexMines-${VERSION}-debug.apk\` and install on Android (debug-signed).
|
||||||
|
|||||||
Reference in New Issue
Block a user