mirror of
https://github.com/deunix-educ/aventuriers-des-mots.git
synced 2026-10-13 02:11:58 +02:00
Fix export on fresh clone (make import), add elision and duplicate-sentence guards, replace 14 duplicate sentences (0.5.3)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -6,12 +6,21 @@ PYRIGHT := $(VENV)/bin/pyright
|
||||
PYTHON := $(VENV)/bin/python3
|
||||
GD_SOURCES := autoload scripts tests
|
||||
|
||||
.PHONY: setup run lint format validate-data test check content-review generate-dictation-audio generate-sounds export-linux export-windows package screenshot
|
||||
.PHONY: setup import run lint format validate-data test check content-review generate-dictation-audio generate-sounds export-linux export-windows package screenshot
|
||||
|
||||
setup:
|
||||
tools/setup.sh
|
||||
|
||||
run:
|
||||
# Importe les ressources (polices, SVG, audio...) dans .godot/. Indispensable
|
||||
# sur un depot fraichement clone : sans cela, l'export plante ou produit un
|
||||
# jeu sans theme. Deux passes : le theme n'est valide qu'une fois les polices
|
||||
# importees. La premiere passe peut echouer (theme charge avant les polices) :
|
||||
# son code de retour est ignore, la seconde fait foi.
|
||||
import:
|
||||
-@$(GODOT_BIN) --headless --path . --import >/dev/null 2>&1
|
||||
$(GODOT_BIN) --headless --path . --import >/dev/null
|
||||
|
||||
run: import
|
||||
$(GODOT_BIN) --path .
|
||||
|
||||
lint:
|
||||
@@ -21,10 +30,10 @@ lint:
|
||||
format:
|
||||
$(GDFORMAT) $(GD_SOURCES)
|
||||
|
||||
validate-data:
|
||||
validate-data: import
|
||||
$(GODOT_BIN) --headless --path . -s res://scripts/data/validate_data_cli.gd
|
||||
|
||||
test:
|
||||
test: import
|
||||
$(GODOT_BIN) --headless --path . -s res://addons/gut/gut_cmdln.gd -gdir=res://tests -ginclude_subdirs -gexit
|
||||
|
||||
check: lint validate-data test
|
||||
@@ -38,11 +47,11 @@ generate-dictation-audio:
|
||||
generate-sounds:
|
||||
$(PYTHON) tools/generate_sounds.py
|
||||
|
||||
export-linux:
|
||||
export-linux: import
|
||||
mkdir -p build/linux
|
||||
$(GODOT_BIN) --headless --path . --export-release "Linux" build/linux/aventuriers_des_mots.x86_64
|
||||
|
||||
export-windows:
|
||||
export-windows: import
|
||||
mkdir -p build/windows
|
||||
$(GODOT_BIN) --headless --path . --export-release "Windows" build/windows/aventuriers_des_mots.exe
|
||||
|
||||
@@ -51,5 +60,5 @@ package:
|
||||
|
||||
# Capture d'une scene dans une vraie fenetre (voir tools/screenshot.gd) :
|
||||
# make screenshot SCENE=res://scenes/world/world_map.tscn OUT=/tmp/map.png ARGS="CE2"
|
||||
screenshot:
|
||||
screenshot: import
|
||||
$(GODOT_BIN) --path . -s res://tools/screenshot.gd -- $(SCENE) $(OUT) $(ARGS)
|
||||
|
||||
Reference in New Issue
Block a user