Compare commits

...

2 Commits

Author SHA1 Message Date
JunioR
201ea02b05 CI: LFS-посилання переписуються з публічної адреси на внутрішню (крок exe в game_godot)
Some checks failed
build / build (push) Failing after 2m20s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017HrHZuvQKryAdo6yY4xecB
2026-11-26 13:31:14 +00:00
JunioR
7637823acd game_godot: лише остання версія exe в репо через Git LFS (CI комітить її після тегу релізу)
Some checks failed
ci-image / image (push) Successful in 5m21s
build / build (push) Failing after 2m56s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017HrHZuvQKryAdo6yY4xecB
2026-11-26 13:20:49 +00:00
5 changed files with 29 additions and 3 deletions

2
.gitattributes vendored
View File

@@ -6,3 +6,5 @@
*.ico binary
*.ttf binary
*.exe binary
# only the latest exe, in Git LFS: old versions do not bloat the history (CI commits it after each release tag)
game_godot/TinMerezhi.exe filter=lfs diff=lfs merge=lfs -text

View File

@@ -130,3 +130,27 @@ jobs:
run: |
if [ -z "$BUTLER_API_KEY" ] || [ -z "$ITCH_TARGET" ]; then echo "itch.io: no BUTLER_API_KEY / ITCH_TARGET, skipped"; exit 0; fi
butler push game_godot "$ITCH_TARGET:windows" --userversion "${TAG#v}"
- name: Latest exe into game_godot/ on main (Git LFS, replaces the previous one)
if: startsWith(github.ref, 'refs/tags/')
env:
TOKEN: ${{ secrets.RELEASE_TOKEN || secrets.GITHUB_TOKEN }}
TAG: ${{ github.ref_name }}
GIT_LFS_SKIP_SMUDGE: "1" # do not download the previous exe on checkout
run: |
R="http://x:$TOKEN@gitea:3000/${{ github.repository }}.git"
cp game_godot/TinMerezhi.exe /tmp/TinMerezhi.exe
git config user.name "Gitea Actions"; git config user.email "actions@localhost"
git lfs install --local
# LFS upload links point to the public ROOT_URL (Funnel), unreachable from the job: rewrite them to the internal address
# (github.server_url is already http://gitea:3000 here, so the public address is written out)
git config lfs.transfer.enablehrefrewrite true
git config url."http://gitea:3000/".insteadOf "https://serv.tail9357bc.ts.net/"
git fetch -q "$R" main && git checkout -qf -B main FETCH_HEAD
cp /tmp/TinMerezhi.exe game_godot/TinMerezhi.exe
git add game_godot/TinMerezhi.exe
git show :game_godot/TinMerezhi.exe | head -c 200 | grep -q git-lfs || { echo "exe is not an LFS pointer, refusing to commit it into git"; exit 1; }
if git diff --cached --quiet; then echo "exe unchanged"; exit 0; fi
git commit -qm "game_godot: TinMerezhi.exe $TAG [skip ci]"
git push -q "$R" HEAD:main
echo "main: game_godot/TinMerezhi.exe = $TAG"

1
.gitignore vendored
View File

@@ -1,7 +1,6 @@
# Godot cache and builds
.godot/
*.tmp
game_godot/*.exe
source_godot/tools/template.exe
source_godot/tools/icon.ico
# old exe parts and update folders

View File

@@ -3,7 +3,7 @@
# Built on the server by ci/build_image.sh (workflow ci-image.yml) as the local image tinmerezhi-ci:4.7.2.
FROM node:20-bookworm
ARG GODOT_VER=4.7.2
RUN apt-get update -qq && DEBIAN_FRONTEND=noninteractive apt-get install -y -qq --no-install-recommends python3-fonttools \
RUN apt-get update -qq && DEBIAN_FRONTEND=noninteractive apt-get install -y -qq --no-install-recommends python3-fonttools git-lfs \
wine64 wine xvfb xauth libgl1-mesa-dri \
&& rm -rf /var/lib/apt/lists/*
RUN curl -sSL --fail -o /tmp/g.zip "https://github.com/godotengine/godot/releases/download/${GODOT_VER}-stable/Godot_v${GODOT_VER}-stable_linux.x86_64.zip" \

View File

@@ -5,7 +5,8 @@
ЩОБ ПРОСТО ГРАТИ
----------------
game_godot\TinMerezhi.exe — гра (рушій Godot), Windows 10/11 64-біт.
Якщо exe тут немає (копія з git), завантаж його з https://tuberon.itch.io/tinmerezhi
У git exe лежить через Git LFS (лише остання версія). Якщо після git clone файл
важить ~130 байт, виконай один раз: git lfs install && git lfs pull. Або завантаж exe з https://tuberon.itch.io/tinmerezhi
або з Releases: https://serv.tail9357bc.ts.net/junior/TinMerezhi/releases/latest
Інструкція й усі команди — у game_godot\ПРОЧИТАЙ.txt.