godotengine/godot-build-scripts

Windows console scripts do not match the engine provided ones

Macksaur opened this issue · 3 comments

echo ${binname} >> ${batname}

https://github.com/godotengine/godot/blob/5a8d786ef9dcfd5b206ec3eeb5e369930e773acc/platform/windows/export/export_plugin.cpp#L53

This is an issue because it prevents things like opening projects quickly with the desired editor version by dragging and dropping project.godot onto the respective script.

In order for the console scripts to be useful beyond launching the project manager they need to support passing arguments.

In order for the console scripts to be useful beyond launching the project manager they need to support passing arguments.

This is done by passing "$@" after ${binname}.

@echo off
Godot_v3.5-stable_win64.exe
pause > nul

for context, this is what is in the official zip. I was expecting something like "%~dp0Godot_v3.5-stable_win64.exe" "%*"

Sorry for the delay. The suggestion was good, but it's not longer relevant as we replaced these batch scripts by wrapper executables.