Compare commits

...

3 Commits

Author SHA1 Message Date
Gitea Actions
f152997ae1 template.sha256: rebuilt template-4.7.2
All checks were successful
build / build (push) Successful in 2m56s
2026-11-27 07:01:05 +00:00
Claude
96c32e4edd Ліміт 60 кадр/с (у фоні 10), zip у релізах, менший шаблон: build profile без невживаних класів, без minizip/brotli/graphite
Some checks failed
build / build (push) Successful in 44s
ci-image / image (push) Failing after 13s
template / template (push) Successful in 13m53s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017HrHZyk6KaYPc8KyisbcEk
2026-11-27 06:47:38 +00:00
Gitea Actions
5c25f940d4 game_godot: TinMerezhi.exe v1.0.59 2026-11-27 00:29:31 +00:00
9 changed files with 121 additions and 8 deletions

View File

@@ -111,11 +111,14 @@ jobs:
ID=$(curl -sf -H "$H" "$API/releases/tags/$TAG" | getid) || \
ID=$(curl -sf -H "$H" -H "Content-Type: application/json" -d "$BODY" "$API/releases" | getid)
# Re-run of the same tag: drop the assets uploaded last time, or the updater could pick the old duplicate
for A in $(curl -sf -H "$H" "$API/releases/$ID/assets" | python3 -c 'import json,sys; print(" ".join(str(a["id"]) for a in json.load(sys.stdin) if a["name"] == "TinMerezhi.exe"))'); do
for A in $(curl -sf -H "$H" "$API/releases/$ID/assets" | python3 -c 'import json,sys; print(" ".join(str(a["id"]) for a in json.load(sys.stdin) if a["name"] in ("TinMerezhi.exe", "TinMerezhi.zip")))'); do
curl -sSf -X DELETE -H "$H" "$API/releases/$ID/assets/$A" >/dev/null
done
curl -sSf -H "$H" -F "attachment=@game_godot/TinMerezhi.exe" "$API/releases/$ID/assets?name=TinMerezhi.exe" >/dev/null
echo "Release $TAG: TinMerezhi.exe uploaded"
# the same exe zipped (~13 MB instead of ~36) for a lighter manual download; the updater still takes the exe
(cd game_godot && python3 -m zipfile -c /tmp/TinMerezhi.zip TinMerezhi.exe)
curl -sSf -H "$H" -F "attachment=@/tmp/TinMerezhi.zip" "$API/releases/$ID/assets?name=TinMerezhi.zip" >/dev/null
echo "Release $TAG: TinMerezhi.exe and TinMerezhi.zip uploaded"
- name: Publish to itch.io
if: startsWith(github.ref, 'refs/tags/')

View File

@@ -6,7 +6,7 @@ name: template
on:
push:
branches: [main]
paths: ['source_godot/tools/template_custom.py', 'source_godot/tools/build_template.sh']
paths: ['source_godot/tools/template_custom.py', 'source_godot/tools/build_template.sh', 'source_godot/tools/template.gdbuild']
workflow_dispatch:
env:

View File

@@ -8,7 +8,7 @@ RUN apt-get update -qq && DEBIAN_FRONTEND=noninteractive apt-get install -y -qq
&& 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/
COPY template_custom.py template.gdbuild 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

BIN
game_godot/TinMerezhi.exe (Stored with Git LFS)

Binary file not shown.

View File

@@ -208,7 +208,16 @@ func _side_avatars() -> Dictionary:
# ═══════════════════════ старт ═══════════════════════
# CRT-шейдер на весь екран іде щокадру: більше 60 кадрів нічого не дає, а у фоні вистачить 10
func _notification(what: int) -> void:
if what == NOTIFICATION_APPLICATION_FOCUS_OUT:
Engine.max_fps = 10
elif what == NOTIFICATION_APPLICATION_FOCUS_IN:
Engine.max_fps = 60
func _ready() -> void:
if DisplayServer.get_name() != "headless": # тести без вікна крутять кадри на повну швидкість
Engine.max_fps = 60
get_window().title = L.t("Тінь Мережі") # config/name — "TinMerezhi" лише заради назви папки збережень
for k in skill_defs:
skills[k] = 0

View File

@@ -12,5 +12,5 @@ if [ ! -f "godot-$VER-stable/SConstruct" ]; then
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 winrt=no accesskit=no angle=no -j"$(nproc)"
scons profile="$HERE/template_custom.py" build_profile="$HERE/template.gdbuild" d3d12=no vulkan=no winrt=no accesskit=no angle=no -j"$(nproc)"
sha256sum bin/godot.windows.template_release.x86_64.exe

View File

@@ -0,0 +1,96 @@
{
"type": "build_profile",
"disabled_classes": [
"AStar2D",
"AStar3D",
"AStarGrid2D",
"AnimatedTexture",
"Animation",
"AnimationLibrary",
"AnimationMixer",
"AnimationNode",
"AnimationNodeStateMachinePlayback",
"AnimationNodeStateMachineTransition",
"AspectRatioContainer",
"AtlasTexture",
"AudioEffect",
"AudioEffectInstance",
"AudioStreamInteractive",
"AudioStreamMP3",
"AudioStreamMicrophone",
"AudioStreamOggVorbis",
"AudioStreamPlaybackInteractive",
"AudioStreamPlaybackOggVorbis",
"AudioStreamPlaybackPlaylist",
"AudioStreamPlaybackPolyphonic",
"AudioStreamPlaybackSynchronized",
"AudioStreamPlaylist",
"AudioStreamPolyphonic",
"AudioStreamRandomizer",
"AudioStreamSynchronized",
"BitMap",
"CenterContainer",
"CheckButton",
"CodeEdit",
"ColorPalette",
"ColorPicker",
"ColorPickerButton",
"Curve2D",
"Curve3D",
"CurveTexture",
"CurveXYZTexture",
"Expression",
"FoldableContainer",
"FoldableGroup",
"GraphEdit",
"GraphElement",
"ImporterMesh",
"ItemList",
"LinkButton",
"MenuBar",
"MenuButton",
"Mesh",
"MeshDataTool",
"MeshLibrary",
"MeshTexture",
"MultiMesh",
"NinePatchRect",
"Node2D",
"Noise",
"NoiseTexture2D",
"OccluderPolygon2D",
"OggPacketSequence",
"OggPacketSequencePlayback",
"PCKPacker",
"PackedDataContainer",
"PackedDataContainerRef",
"PolygonPathFinder",
"ReferenceRect",
"Shape2D",
"SkeletonModification2D",
"SkeletonModificationStack2D",
"SpinBox",
"SplitContainer",
"SpriteFrames",
"SubViewportContainer",
"SurfaceTool",
"SyntaxHighlighter",
"TextureButton",
"TextureProgressBar",
"TextureRect",
"TileData",
"TileMapPattern",
"TileSet",
"TileSetSource",
"Tree",
"TreeItem",
"VideoStream",
"VideoStreamPlayback",
"VideoStreamPlayer",
"VirtualJoystick",
"VisualShader",
"VisualShaderNode",
"ZIPPacker",
"ZIPReader"
]
}

View File

@@ -1 +1 @@
5a3eda63d88b32bd07e6139103232403318ff5c0a8dadc04ea1a8d51bbe7550e
62edba5640db26c21132ea522dcb417c1a9cae6506eb57082efe1e1cd8393ecb

View File

@@ -21,6 +21,11 @@ winrt = "no"
accesskit = "no"
angle = "no"
modules_enabled_by_default = "no"
# unused libraries: ZIP archives, Brotli (WOFF2 fonts), Graphite font shaping
minizip = "no"
brotli = "no"
graphite = "no"
# engine classes the game never uses (2D nodes, animation, extra GUI and audio): template.gdbuild, passed in build_template.sh
# GDScript, fonts (FreeType + HarfBuzz shaping), SVG for the default theme icons, mbedTLS for HTTPS in the updater
module_gdscript_enabled = "yes"
module_freetype_enabled = "yes"