fix: export_preset path not resetting propperly

This commit is contained in:
Jan van der Weide 2025-04-13 22:15:59 +02:00
parent f0fc98b2b8
commit 58690660c4
2 changed files with 7 additions and 10 deletions

View file

@ -2,9 +2,6 @@ set export
BUILD_NAME := "change_me"
release_template_path_linux := `realpath engine/bin/godot.linuxbsd.template_release.x86_64.llvm`
release_template_path_windows := `realpath engine/bin/godot.windows.template_release.x86_64.llvm`
build:
cd engine/ && scons target=editor symbols=yes optimization=debug dev_build=yes linker=mold use_llvm=yes compiledb=yes
@ -13,19 +10,19 @@ run: build
release-linux: build
cd engine/ && scons platform=linuxbsd target=template_release arch=x86_64 linker=mold use_llvm=yes compiledb=yes custom_modules="../modules"
sed -i "s!{path}!{{release_template_path_linux}}!" project/export_presets.cfg
sed -i "s!templatepath!{{`realpath engine/bin/godot.linuxbsd.template_release.x86_64.llvm`}}!" project/export_presets.cfg
rm -rf build && mkdir build
engine/bin/godot.*.editor.dev.*.llvm --headless --export-release "Linux" project/project.godot && zip build.zip build/*
touch build/.gitkeep
sed -i "s!{{release_template_path_linux}}!{path}!" project/export_presets.cfg
sed -i "s!{{`realpath engine/bin/godot.linuxbsd.template_release.x86_64.llvm`}}!templatepath!" project/export_presets.cfg
release-windows: build
cd engine/ && scons platform=windows target=template_release arch=x86_64 linker=mold use_llvm=yes compiledb=yes custom_modules="../modules"
sed -i "s!{path}!{{release_template_path_windows}}!" project/export_presets.cfg
sed -i "s!templatepath!{{`realpath engine/bin/godot.windows.template_release.x86_64.llvm`}}!" project/export_presets.cfg
rm -rf build && mkdir build
engine/bin/godot.*.editor.dev.*.llvm --headless --export-release "Windows" project/project.godot && zip build.zip build/*
touch build/.gitkeep
sed -i "s!{{release_template_path_windows}}!{path}!" project/export_presets.cfg
sed -i "s!{{`realpath engine/bin/godot.windows.template_release.x86_64.llvm`}}!templatepath!" project/export_presets.cfg
initialize-template projectname:
sed -i -e "s/PROJECT/{{projectname}}/g" ./modules/PROJECT/register_types.h ./modules/PROJECT/register_types.cpp ./project/project.godot ./project/export_presets.cfg .gitignore

View file

@ -21,7 +21,7 @@ script_export_mode=2
[preset.0.options]
custom_template/debug=""
custom_template/release="{path}"
custom_template/release="templatepath"
debug/export_console_wrapper=1
binary_format/embed_pck=false
texture_format/s3tc_bptc=true
@ -45,7 +45,7 @@ rm -rf \"{temp_dir}\""
name="Windows"
platform="Windows Desktop"
runnable=true
advanced_options=false
advanced_options=true
dedicated_server=false
custom_features=""
export_filter="all_resources"
@ -63,7 +63,7 @@ script_export_mode=2
[preset.1.options]
custom_template/debug=""
custom_template/release="{path}"
custom_template/release="templatepath"
debug/export_console_wrapper=1
binary_format/embed_pck=false
texture_format/s3tc_bptc=true