gen emu script build scripts: cleanup build tmp folder + use a nested dir for build

This commit is contained in:
otavepto 2023-12-26 19:26:58 +02:00
parent d5035d3dbd
commit 6f2cca7fad
2 changed files with 8 additions and 2 deletions

View File

@ -3,7 +3,7 @@
venv=".env-linux"
out_dir="bin/linux"
build_temp_dir="build_tmp-linux"
build_temp_dir="build/linux/tmp"
tool_name="generate_emu_config"
main_file="generate_emu_config.py"
@ -26,4 +26,6 @@ echo;
echo =============
echo Built inside: "$out_dir/"
[[ -d "$build_temp_dir" ]] && rm -r -f "$build_temp_dir"
deactivate

View File

@ -5,7 +5,7 @@ pushd "%~dp0"
set "venv=.env-win"
set "out_dir=bin\win"
set "build_temp_dir=build_tmp-win"
set "build_temp_dir=build\win\tmp"
set "tool_name=generate_emu_config"
set "icon_file=icon\Froyoshark-Enkel-Steam.ico"
set "main_file=generate_emu_config.py"
@ -37,6 +37,10 @@ echo:
echo =============
echo Built inside: "%out_dir%\"
if exist "%build_temp_dir%" (
rmdir /s /q "%build_temp_dir%"
)
:script_end
popd
endlocal & (