Restructure into multi-game UltraWidePatches umbrella
Generalize the project from a single GB4 fix into a collection that can host
ultrawide patches for many games.
- games/<Game>/{SUWSF.ini,game.conf,README.md}; GB4 moved in as the first entry
- game.conf carries all game-specific data (appid, exe, paths, loader, launch
option), so install.sh is fully generic: ./install.sh <Game> [uninstall]
- installer gains GAME_DIR / PREFIX_INI_FILE / LOADER_NAME overrides; verified
install -> idempotent re-run -> uninstall leaves the tree pristine
- tools de-hardcoded: dump_decrypted.py takes an exe name, read_protonlog.sh
takes an appid, aob.py takes a dump + game ini, build_release.sh takes a game
- README rewritten as an umbrella index with an "adding a game" guide
- LICENSE copyright -> programmingPug
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
+10
-8
@@ -7,11 +7,12 @@
|
||||
#
|
||||
# Usage:
|
||||
# ./tools/publish.sh [REPO_NAME] [--private]
|
||||
# (defaults: repo name "GB4-UltraWide-Fix", public)
|
||||
# (defaults: repo name "UltraWidePatches", public)
|
||||
# GAME=GundamBreaker4 selects which game's zip to attach (default: GundamBreaker4)
|
||||
set -euo pipefail
|
||||
HERE="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"; cd "$HERE"
|
||||
|
||||
REPO="${1:-GB4-UltraWide-Fix}"
|
||||
REPO="${1:-UltraWidePatches}"
|
||||
VIS="--public"; [ "${2:-}" = "--private" ] && VIS="--private"
|
||||
TAG="v1.0.0"
|
||||
|
||||
@@ -21,8 +22,9 @@ OWNER="$(gh api user -q .login)"
|
||||
echo "[+] Publishing as: $OWNER repo: $REPO $VIS"
|
||||
|
||||
# 1. build the release artifact fresh
|
||||
bash tools/build_release.sh >/dev/null
|
||||
echo "[+] Built dist/GB4_UltraWide_Fix.zip"
|
||||
GAME="${GAME:-GundamBreaker4}"
|
||||
bash tools/build_release.sh "$GAME" >/dev/null
|
||||
echo "[+] Built dist/${GAME}_UltraWide_Fix.zip"
|
||||
|
||||
# 2. create the repo (skip if it already exists) and set as origin
|
||||
if gh repo view "$OWNER/$REPO" >/dev/null 2>&1; then
|
||||
@@ -30,7 +32,7 @@ if gh repo view "$OWNER/$REPO" >/dev/null 2>&1; then
|
||||
git remote get-url origin >/dev/null 2>&1 || git remote add origin "https://github.com/$OWNER/$REPO.git"
|
||||
else
|
||||
gh repo create "$OWNER/$REPO" $VIS --source=. --remote=origin \
|
||||
--description="UltraWide (32:9/21:9) fix for Gundam Breaker 4 — Hor+ FOV via SUWSF. Proton-ready."
|
||||
--description="Ultrawide (32:9/21:9) fixes for PC games — Hor+ FOV via SUWSF. Proton-first."
|
||||
fi
|
||||
|
||||
# 3. push branch + tag
|
||||
@@ -39,10 +41,10 @@ git push origin "$TAG"
|
||||
|
||||
# 4. create the release with notes + zip asset (idempotent)
|
||||
if gh release view "$TAG" -R "$OWNER/$REPO" >/dev/null 2>&1; then
|
||||
gh release upload "$TAG" dist/GB4_UltraWide_Fix.zip -R "$OWNER/$REPO" --clobber
|
||||
gh release upload "$TAG" "dist/${GAME}_UltraWide_Fix.zip" -R "$OWNER/$REPO" --clobber
|
||||
else
|
||||
gh release create "$TAG" dist/GB4_UltraWide_Fix.zip \
|
||||
-R "$OWNER/$REPO" -t "GB4 UltraWide Fix $TAG" -F RELEASE_NOTES.md
|
||||
gh release create "$TAG" "dist/${GAME}_UltraWide_Fix.zip" \
|
||||
-R "$OWNER/$REPO" -t "$TAG" -F RELEASE_NOTES.md
|
||||
fi
|
||||
|
||||
echo
|
||||
|
||||
Reference in New Issue
Block a user