Compare commits
8 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b42d24c477 | ||
|
|
90d7440756 | ||
|
|
25bf505bab | ||
|
|
796f4c73e3 | ||
|
|
7e64cdd18b | ||
|
|
2ba5ac6424 | ||
|
|
54564c5764 | ||
|
|
3e78f4ccef |
@@ -12,44 +12,62 @@ env:
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
# local image with Godot, the small template, fontTools, go-winres and butler (ci/Dockerfile, workflow ci-image.yml);
|
||||
# if a job says the image is missing: Actions -> ci-image -> Run workflow
|
||||
container:
|
||||
image: tinmerezhi-ci:4.7.2
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0 # all tags and history: release notes from commits since the previous tag
|
||||
|
||||
- name: Godot
|
||||
run: |
|
||||
curl -sSL --fail -o /tmp/godot.zip "https://github.com/godotengine/godot/releases/download/${GODOT_VER}-stable/Godot_v${GODOT_VER}-stable_linux.x86_64.zip"
|
||||
unzip -q -o /tmp/godot.zip -d /tmp/godot
|
||||
install /tmp/godot/Godot_v${GODOT_VER}-stable_linux.x86_64 /usr/local/bin/godot
|
||||
godot --version
|
||||
|
||||
- name: Import
|
||||
working-directory: source_godot
|
||||
run: godot --headless --path . --import
|
||||
run: godot --version && godot --headless --path . --import
|
||||
|
||||
- name: Tests
|
||||
run: GODOT=godot sh source_godot/run_tests.sh
|
||||
|
||||
- name: Balance bot (several seeds, every difficulty, both endings, endless)
|
||||
- name: Tests and balance bot (in parallel; a tag skips them if this commit already passed on main)
|
||||
working-directory: source_godot
|
||||
env:
|
||||
TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
run: |
|
||||
# seed:difficulty (0 novice, 1 normal, 2 paranoid):choices in the Act IV and Act V finals
|
||||
fail=0
|
||||
case "$GITHUB_REF" in refs/tags/*)
|
||||
if curl -sf -H "Authorization: token $TOKEN" "http://gitea:3000/api/v1/repos/$GITHUB_REPOSITORY/actions/tasks?limit=50" | python3 -c '
|
||||
import json, os, sys
|
||||
ok = any(t["name"] == "build" and t["head_branch"] == "main" and t["head_sha"] == os.environ["GITHUB_SHA"]
|
||||
and t["status"] == "success" for t in json.load(sys.stdin)["workflow_runs"])
|
||||
sys.exit(0 if ok else 1)'; then
|
||||
echo "commit $GITHUB_SHA already passed the tests on main: skipped"; exit 0
|
||||
fi;;
|
||||
esac
|
||||
# every Godot process gets its own user:// (XDG_DATA_HOME), because the tests reuse save file names
|
||||
L=/tmp/ci; mkdir -p $L
|
||||
run() { n=$1; shift; (env XDG_DATA_HOME=$L/u_$n "$@" > $L/$n.log 2>&1; echo $? > $L/$n.rc) & }
|
||||
run tests env GODOT=godot sh run_tests.sh
|
||||
# balance bot: seed:difficulty (0 novice, 1 normal, 2 paranoid):choices in the Act IV and Act V finals
|
||||
for c in 1:1:22 2:1:11 3:1:22 4:0:11 5:2:22 7:2:11; do
|
||||
s=$(echo $c | cut -d: -f1); d=$(echo $c | cut -d: -f2); ch=$(echo $c | cut -d: -f3)
|
||||
r=$(BAL_DIFF=$d BAL_CHOICE=$ch BAL_ENDLESS=1 godot --headless --path . -s tests/balance.gd -- $s 2>&1) || fail=1
|
||||
echo "seed $s diff $d choice $ch: $(echo "$r" | grep -E '^(НЕСКІНЧЕННА|КІНЕЦЬ|OK|FAIL)' | tr '\n' ' ')"
|
||||
run "bal_$s" env BAL_DIFF=$d BAL_CHOICE=$ch BAL_ENDLESS=1 godot --headless --path . -s tests/balance.gd -- $s
|
||||
done
|
||||
wait
|
||||
cat $L/tests.log
|
||||
fail=0
|
||||
for c in 1:1:22 2:1:11 3:1:22 4:0:11 5:2:22 7:2:11; do
|
||||
s=${c%%:*}
|
||||
echo "seed $c: $(grep -E '^(НЕСКІНЧЕННА|КІНЕЦЬ|OK|FAIL)' $L/bal_$s.log | tr '\n' ' ')"
|
||||
done
|
||||
for r in $L/*.rc; do [ "$(cat $r)" = 0 ] || { fail=1; echo "FAILED: $(basename $r .rc)"; cat ${r%.rc}.log | tail -30; }; done
|
||||
exit $fail
|
||||
|
||||
- name: Export Windows exe
|
||||
if: startsWith(github.ref, 'refs/tags/')
|
||||
working-directory: source_godot
|
||||
run: |
|
||||
# small template without 3D/physics (tools/build_template.sh), kept in the prerelease template-<ver>;
|
||||
# if it is missing or its checksum differs, fall back to the official 109 MB one
|
||||
if curl -sSL --fail -o tools/template.exe "http://gitea:3000/${{ github.repository }}/releases/download/template-${GODOT_VER}/TinMerezhi-template.exe" \
|
||||
# small template without 3D/physics (tools/build_template.sh): from the CI image, else from the prerelease
|
||||
# template-<ver>; if both are missing or their checksum differs, fall back to the official 109 MB one
|
||||
cp /opt/tinmerezhi/template.exe tools/template.exe 2>/dev/null || true
|
||||
if echo "$(cat tools/template.sha256) tools/template.exe" | sha256sum -c - 2>/dev/null; then
|
||||
echo "small template from the CI image: $(stat -c %s tools/template.exe) bytes"
|
||||
elif curl -sSL --fail -o tools/template.exe "http://gitea:3000/${{ github.repository }}/releases/download/template-${GODOT_VER}/TinMerezhi-template.exe" \
|
||||
&& echo "$(cat tools/template.sha256) tools/template.exe" | sha256sum -c -; then
|
||||
echo "small template: $(stat -c %s tools/template.exe) bytes"
|
||||
else
|
||||
@@ -57,20 +75,11 @@ jobs:
|
||||
python3 tools/fetch_template.py
|
||||
cp ~/.local/share/godot/export_templates/${GODOT_VER}.stable/windows_release_x86_64.exe tools/template.exe
|
||||
fi
|
||||
# emoji font: keep only the characters the game uses (10.6 MB -> ~0.2 MB); without fontTools the full font stays
|
||||
python3 -c 'import fontTools' 2>/dev/null || python3 -m pip install -q --break-system-packages fonttools \
|
||||
|| (apt-get update -qq && DEBIAN_FRONTEND=noninteractive apt-get install -y -qq python3-fonttools >/dev/null) || true
|
||||
if python3 -c 'import fontTools'; then
|
||||
python3 tools/subset_emoji.py fonts/NotoColorEmoji.ttf /tmp/emoji.ttf && mv /tmp/emoji.ttf fonts/NotoColorEmoji.ttf
|
||||
godot --headless --path . --import
|
||||
else
|
||||
echo "::warning::fontTools not installed, emoji font not reduced"
|
||||
fi
|
||||
# emoji font: keep only the characters the game uses (10.6 MB -> ~0.2 MB), fontTools is in the CI image
|
||||
python3 tools/subset_emoji.py fonts/NotoColorEmoji.ttf /tmp/emoji.ttf && mv /tmp/emoji.ttf fonts/NotoColorEmoji.ttf
|
||||
godot --headless --path . --import
|
||||
cp icon.ico tools/
|
||||
# official Go toolchain from the Go module proxy, only to build go-winres (puts the icon into the exe)
|
||||
curl -sSL --fail -o /tmp/go.zip "https://proxy.golang.org/golang.org/toolchain/@v/v0.0.1-go1.24.7.linux-amd64.zip"
|
||||
unzip -q -o /tmp/go.zip -d /tmp/go
|
||||
GOBIN=/usr/local/bin /tmp/go/golang.org/toolchain@v0.0.1-go1.24.7.linux-amd64/bin/go install github.com/tc-hib/go-winres@v0.3.3
|
||||
# go-winres (from the CI image) puts the icon into the exe
|
||||
(cd tools && go-winres patch --in winres.json --no-backup template.exe)
|
||||
sed -i "s|^custom_template/release=.*|custom_template/release=\"$PWD/tools/template.exe\"|" export_presets.cfg
|
||||
# version for the in-game updater: tag v1.0.4 -> 1.0.4
|
||||
@@ -107,6 +116,4 @@ jobs:
|
||||
TAG: ${{ github.ref_name }}
|
||||
run: |
|
||||
if [ -z "$BUTLER_API_KEY" ] || [ -z "$ITCH_TARGET" ]; then echo "itch.io: no BUTLER_API_KEY / ITCH_TARGET, skipped"; exit 0; fi
|
||||
curl -sSL --fail -o /tmp/butler.zip https://broth.itch.zone/butler/linux-amd64/15.32.0/archive/default
|
||||
unzip -q -o /tmp/butler.zip -d /tmp/butler && chmod +x /tmp/butler/butler
|
||||
/tmp/butler/butler push game_godot "$ITCH_TARGET:windows" --userversion "${TAG#v}"
|
||||
butler push game_godot "$ITCH_TARGET:windows" --userversion "${TAG#v}"
|
||||
|
||||
15
.gitea/workflows/ci-image.yml
Normal file
15
.gitea/workflows/ci-image.yml
Normal file
@@ -0,0 +1,15 @@
|
||||
# Rebuilds the local CI image tinmerezhi-ci:4.7.2 that build.yml runs in.
|
||||
# Runs by hand (Actions -> ci-image -> Run workflow) or when the image recipe or the template checksum changes.
|
||||
name: ci-image
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
paths: ['ci/**', 'source_godot/tools/template.sha256', '.gitea/workflows/ci-image.yml']
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
image:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- run: sh ci/build_image.sh
|
||||
54
.gitea/workflows/template.yml
Normal file
54
.gitea/workflows/template.yml
Normal file
@@ -0,0 +1,54 @@
|
||||
# Rebuilds the small Windows export template (tools/template_custom.py) from Godot sources on the server,
|
||||
# replaces TinMerezhi-template.exe in the prerelease template-<ver>, commits the new tools/template.sha256
|
||||
# and rebuilds the CI image. First build ~15 min on 8 cores, a profile change rebuilds only what it touches,
|
||||
# an unchanged profile ~1 min (Docker cache). Up to ~8 GB RAM (lto=full), ~6 GB disk in the Docker build cache.
|
||||
name: template
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
paths: ['source_godot/tools/template_custom.py', 'source_godot/tools/build_template.sh']
|
||||
workflow_dispatch:
|
||||
|
||||
env:
|
||||
GODOT_VER: "4.7.2"
|
||||
|
||||
jobs:
|
||||
template:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Build template (Docker, cached toolchain and objects)
|
||||
run: |
|
||||
. ci/docker_cli.sh
|
||||
time docker buildx build --build-arg GODOT_VER=$GODOT_VER -f ci/template.Dockerfile --output type=local,dest=/tmp/tpl source_godot/tools
|
||||
ls -l /tmp/tpl/template.exe
|
||||
|
||||
- name: Upload to the prerelease, commit the checksum
|
||||
env:
|
||||
TOKEN: ${{ secrets.RELEASE_TOKEN || secrets.GITHUB_TOKEN }}
|
||||
API: http://gitea:3000/api/v1/repos/${{ github.repository }}
|
||||
run: |
|
||||
EXE=/tmp/tpl/template.exe
|
||||
TAG=template-$GODOT_VER
|
||||
H="Authorization: token $TOKEN"
|
||||
getid() { python3 -c 'import json,sys; print(json.load(sys.stdin)["id"])'; }
|
||||
ID=$(curl -sf -H "$H" "$API/releases/tags/$TAG" | getid) || \
|
||||
ID=$(curl -sf -H "$H" -H "Content-Type: application/json" \
|
||||
-d "{\"tag_name\":\"$TAG\",\"name\":\"$TAG\",\"prerelease\":true,\"body\":\"Small Windows export template (tools/template_custom.py)\"}" "$API/releases" | getid)
|
||||
# replace the old asset
|
||||
for a in $(curl -sf -H "$H" "$API/releases/$ID/assets" | python3 -c 'import json,sys; [print(a["id"]) for a in json.load(sys.stdin) if a["name"]=="TinMerezhi-template.exe"]'); do
|
||||
curl -sSf -X DELETE -H "$H" "$API/releases/$ID/assets/$a"
|
||||
done
|
||||
curl -sSf -H "$H" -F "attachment=@$EXE" "$API/releases/$ID/assets?name=TinMerezhi-template.exe" >/dev/null
|
||||
sha256sum "$EXE" | cut -d' ' -f1 > source_godot/tools/template.sha256
|
||||
echo "template: $(stat -c %s "$EXE") bytes, sha256 $(cat source_godot/tools/template.sha256)"
|
||||
git config user.name "Gitea Actions"; git config user.email "actions@localhost"
|
||||
if ! git diff --quiet source_godot/tools/template.sha256; then
|
||||
git commit -qm "template.sha256: rebuilt template-$GODOT_VER" source_godot/tools/template.sha256
|
||||
git pull -q --rebase "http://x:$TOKEN@gitea:3000/${{ github.repository }}.git" main
|
||||
git push -q "http://x:$TOKEN@gitea:3000/${{ github.repository }}.git" HEAD:main
|
||||
fi
|
||||
|
||||
- name: Rebuild the CI image with the new template
|
||||
run: sh ci/build_image.sh
|
||||
1
.gitignore
vendored
1
.gitignore
vendored
@@ -18,3 +18,4 @@ cleanup/
|
||||
# Windows junk
|
||||
Thumbs.db
|
||||
desktop.ini
|
||||
ci/template.exe
|
||||
|
||||
18
ci/Dockerfile
Normal file
18
ci/Dockerfile
Normal file
@@ -0,0 +1,18 @@
|
||||
# CI image for build.yml: Godot headless, the small Windows template, fontTools, go-winres, butler.
|
||||
# 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 \
|
||||
&& 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" \
|
||||
&& unzip -q /tmp/g.zip -d /tmp/g && install /tmp/g/Godot_v${GODOT_VER}-stable_linux.x86_64 /usr/local/bin/godot && rm -rf /tmp/g /tmp/g.zip
|
||||
# go-winres puts the icon into the exe; the Go toolchain is only needed to build it
|
||||
RUN curl -sSL --fail -o /tmp/go.zip "https://proxy.golang.org/golang.org/toolchain/@v/v0.0.1-go1.24.7.linux-amd64.zip" \
|
||||
&& unzip -q /tmp/go.zip -d /tmp/go \
|
||||
&& GOBIN=/usr/local/bin GOPATH=/tmp/gopath GOCACHE=/tmp/gocache /tmp/go/golang.org/toolchain@v0.0.1-go1.24.7.linux-amd64/bin/go install github.com/tc-hib/go-winres@v0.3.3 \
|
||||
&& rm -rf /tmp/go /tmp/go.zip /tmp/gopath /tmp/gocache
|
||||
RUN curl -sSL --fail -o /tmp/b.zip https://broth.itch.zone/butler/linux-amd64/15.32.0/archive/default \
|
||||
&& unzip -q /tmp/b.zip -d /opt/butler && chmod +x /opt/butler/butler && ln -s /opt/butler/butler /usr/local/bin/butler && rm /tmp/b.zip
|
||||
# the small template from the prerelease template-<ver> (build_image.sh downloads it next to this file)
|
||||
COPY template.exe /opt/tinmerezhi/template.exe
|
||||
RUN godot --version && go-winres --help >/dev/null && butler -V && python3 -c 'import fontTools'
|
||||
13
ci/build_image.sh
Normal file
13
ci/build_image.sh
Normal file
@@ -0,0 +1,13 @@
|
||||
#!/bin/sh
|
||||
# Builds the local CI image tinmerezhi-ci:<ver> through the host Docker (the runner mounts /var/run/docker.sock into jobs).
|
||||
# Run from the repo root inside a Gitea Actions job (needs http://gitea:3000).
|
||||
set -e
|
||||
VER="${GODOT_VER:-4.7.2}"
|
||||
REPO="${GITHUB_REPOSITORY:-junior/TinMerezhi}"
|
||||
. ci/docker_cli.sh
|
||||
curl -sSL --fail -o ci/template.exe "http://gitea:3000/$REPO/releases/download/template-$VER/TinMerezhi-template.exe"
|
||||
echo "$(cat source_godot/tools/template.sha256) ci/template.exe" | sha256sum -c -
|
||||
docker buildx build --build-arg GODOT_VER="$VER" -t "tinmerezhi-ci:$VER" ci
|
||||
rm -f ci/template.exe
|
||||
docker image prune -f >/dev/null # drop the previous untagged image; build cache stays for the next run
|
||||
docker images tinmerezhi-ci
|
||||
12
ci/docker_cli.sh
Normal file
12
ci/docker_cli.sh
Normal file
@@ -0,0 +1,12 @@
|
||||
#!/bin/sh
|
||||
# Docker CLI + buildx (BuildKit: layer cache and cache mounts) for jobs; the daemon is the host one via /var/run/docker.sock.
|
||||
set -e
|
||||
command -v docker >/dev/null || {
|
||||
curl -sSL --fail -o /tmp/docker.tgz https://download.docker.com/linux/static/stable/x86_64/docker-27.5.1.tgz
|
||||
tar xzf /tmp/docker.tgz -C /tmp && install /tmp/docker/docker /usr/local/bin/docker
|
||||
}
|
||||
docker buildx version >/dev/null 2>&1 || {
|
||||
mkdir -p ~/.docker/cli-plugins
|
||||
curl -sSL --fail -o ~/.docker/cli-plugins/docker-buildx https://github.com/docker/buildx/releases/download/v0.19.3/buildx-v0.19.3.linux-amd64
|
||||
chmod +x ~/.docker/cli-plugins/docker-buildx
|
||||
}
|
||||
16
ci/template.Dockerfile
Normal file
16
ci/template.Dockerfile
Normal file
@@ -0,0 +1,16 @@
|
||||
# Small Windows export template (source_godot/tools/template_custom.py), built by template.yml:
|
||||
# docker buildx build -f ci/template.Dockerfile --output type=local,dest=out source_godot/tools
|
||||
# The toolchain is a cached layer; the Godot sources and scons objects live in a BuildKit cache mount,
|
||||
# so a rebuild only recompiles what the new profile changes.
|
||||
FROM debian:bookworm-slim AS build
|
||||
RUN apt-get update -qq && DEBIAN_FRONTEND=noninteractive apt-get install -y -qq --no-install-recommends \
|
||||
scons mingw-w64 python3 curl ca-certificates xz-utils >/dev/null \
|
||||
&& update-alternatives --set x86_64-w64-mingw32-gcc /usr/bin/x86_64-w64-mingw32-gcc-posix \
|
||||
&& update-alternatives --set x86_64-w64-mingw32-g++ /usr/bin/x86_64-w64-mingw32-g++-posix
|
||||
ARG GODOT_VER=4.7.2
|
||||
COPY template_custom.py build_template.sh /tools/
|
||||
RUN --mount=type=cache,target=/work cd /work && GODOT_VER=$GODOT_VER sh /tools/build_template.sh \
|
||||
&& mkdir /out && cp godot-$GODOT_VER-stable/bin/godot.windows.template_release.x86_64.exe /out/template.exe
|
||||
|
||||
FROM scratch
|
||||
COPY --from=build /out/template.exe /
|
||||
@@ -69,8 +69,11 @@
|
||||
**Малий exe (~35 МБ замість ~120 МБ).** CI бере власний шаблон без 3D, фізики, навігації, XR і зайвих модулів
|
||||
(`tools/template_custom.py`) з пререлізу `template-4.7.2` у Gitea і звіряє `tools/template.sha256`; шрифт емодзі
|
||||
урізається до символів, що є в коді (`tools/subset_emoji.py`, потрібен `pip install fonttools`). Новий шаблон
|
||||
(інша версія Godot або інші модулі): `tools/build_template.sh` (~20–40 хв, mingw-w64 + scons), викласти exe в
|
||||
пререліз `template-<версія>` як `TinMerezhi-template.exe` і оновити `tools/template.sha256`. Пререліз не бачить
|
||||
(інша версія Godot або інші модулі) збирає на сервері workflow `template.yml`: сам, коли змінюється
|
||||
`tools/template_custom.py`, або вручну (Actions → template → Run workflow). Він кладе exe в пререліз
|
||||
`template-<версія>` як `TinMerezhi-template.exe`, комітить новий `tools/template.sha256` і перезбирає CI-образ
|
||||
(перший раз ~15 хв, без змін профілю ~20 с; кеш Docker зберігає тулчейн, вихідні коди й об'єкти scons, тож зміна профілю перезбирає
|
||||
лише зачеплене; до ~8 ГБ RAM, ~6 ГБ диска). Пререліз не бачить
|
||||
автооновлення гри (`/releases/latest` віддає лише звичайні релізи). Нові класи рушія в коді: перевір, що їх не вимкнено.
|
||||
|
||||
## Реліз
|
||||
@@ -78,4 +81,9 @@
|
||||
Кожен push у `main` — тести й бот балансу в Gitea Actions (`.gitea/workflows/build.yml`).
|
||||
Тег `v*` (`git tag v1.0.17 && git push origin v1.0.17`) — ще й збірка `TinMerezhi.exe` у Releases
|
||||
з нотатками зі списку комітів після попереднього тегу, і публікація на itch.io через butler.
|
||||
Збірка йде в локальному Docker-образі `tinmerezhi-ci:4.7.2` (`ci/Dockerfile`: Godot, малий шаблон, fontTools,
|
||||
go-winres, butler), тож нічого не завантажується щоразу. Образ перезбирає workflow `ci-image.yml`
|
||||
(сам при зміні `ci/` або `tools/template.sha256`, або вручну); якщо збірка каже, що образу немає, запусти його.
|
||||
Тести й шість сідів бота балансу йдуть паралельно (~35 с на push). Тег не повторює тести, якщо цей самий коміт
|
||||
уже пройшов їх на `main`, тож реліз займає менше хвилини.
|
||||
Гра бачить новий реліз сама (`updater.gd`).
|
||||
|
||||
@@ -1,13 +1,16 @@
|
||||
#!/bin/sh
|
||||
# Builds the small Windows export template (tools/template_custom.py) from Godot sources.
|
||||
# Needs: python3 + scons, mingw-w64 (posix threads). About 40 min on 4 cores, ~6 GB RAM, ~5 GB disk.
|
||||
# Result: godot-<ver>-stable/bin/godot.windows.template_release.x86_64.exe -> upload it to the Gitea
|
||||
# prerelease "template-<ver>" as TinMerezhi-template.exe and put its sha256 into tools/template.sha256.
|
||||
# Needs: python3 + scons, mingw-w64 (posix threads). ~13 min on 8 cores (first build), ~8 GB RAM, ~5 GB disk.
|
||||
# Run again in the same folder: the sources are kept and scons rebuilds only what changed.
|
||||
# Result: godot-<ver>-stable/bin/godot.windows.template_release.x86_64.exe. On the server this is done by
|
||||
# the workflow template.yml (ci/template.Dockerfile), which also uploads it and updates tools/template.sha256.
|
||||
set -e
|
||||
VER="${GODOT_VER:-4.7.2}"
|
||||
HERE="$(cd "$(dirname "$0")" && pwd)"
|
||||
curl -sSL --fail -o "godot-$VER.tar.xz" "https://github.com/godotengine/godot/releases/download/$VER-stable/godot-$VER-stable.tar.xz"
|
||||
tar xf "godot-$VER.tar.xz"
|
||||
if [ ! -f "godot-$VER-stable/SConstruct" ]; then
|
||||
curl -sSL --fail -o "godot-$VER.tar.xz" "https://github.com/godotengine/godot/releases/download/$VER-stable/godot-$VER-stable.tar.xz"
|
||||
tar xf "godot-$VER.tar.xz" && rm "godot-$VER.tar.xz"
|
||||
fi
|
||||
cd "godot-$VER-stable"
|
||||
scons profile="$HERE/template_custom.py" d3d12=no vulkan=no -j"$(nproc)"
|
||||
scons profile="$HERE/template_custom.py" d3d12=no vulkan=no winrt=no accesskit=no angle=no -j"$(nproc)"
|
||||
sha256sum bin/godot.windows.template_release.x86_64.exe
|
||||
|
||||
@@ -1 +1 @@
|
||||
84715e06d937dd9b7e84838fa4ef8f4619e0d4f97b7887c72385189db26f67bb
|
||||
5a3eda63d88b32bd07e6139103232403318ff5c0a8dadc04ea1a8d51bbe7550e
|
||||
|
||||
@@ -16,6 +16,10 @@ disable_xr = "yes"
|
||||
vulkan = "no"
|
||||
d3d12 = "no"
|
||||
openxr = "no"
|
||||
# drivers whose SDKs are not in the source tarball: scons switches them off anyway, this only silences the warnings
|
||||
winrt = "no"
|
||||
accesskit = "no"
|
||||
angle = "no"
|
||||
modules_enabled_by_default = "no"
|
||||
# GDScript, fonts (FreeType + HarfBuzz shaping), SVG for the default theme icons, mbedTLS for HTTPS in the updater
|
||||
module_gdscript_enabled = "yes"
|
||||
|
||||
Reference in New Issue
Block a user