diff --git a/build.bat b/build.bat index 3949b6f..d154e7f 100644 --- a/build.bat +++ b/build.bat @@ -20,7 +20,7 @@ if %hideConsole% == y ( set "hideConsole=" ) -set /p removeFiles=Remove files after build? (y/n): +set /p removeFiles=Remove files after build? (y/n): if %removeFiles% == y ( set "removeFiles=--remove" ) else ( diff --git a/builder.py b/builder.py index 75daa33..9541b2a 100644 --- a/builder.py +++ b/builder.py @@ -9,7 +9,8 @@ args = parser.parse_args() -print(args.yes) +print(args.hide, args.remove) + _cwd = os.getcwd() @@ -29,7 +30,7 @@ f"{_cwd}/src/to_compile/template.js", "w", encoding="utf8", errors="ignore" ) as file: output = template1.replace("BASE64ENCODEDSTUFFHERE", bat_file) - if args.yes: + if args.hide: output = output.replace("const hide = false;", "const hide = true;") if args.remove: output = output.replace("const remove = false;", "const remove = true;")