Skip to content

Commit

Permalink
final fix
Browse files Browse the repository at this point in the history
  • Loading branch information
KDot227 committed Mar 25, 2024
1 parent 2434cdf commit de94d14
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.bat
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
5 changes: 3 additions & 2 deletions builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@

args = parser.parse_args()

print(args.yes)
print(args.hide, args.remove)


_cwd = os.getcwd()

Expand All @@ -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;")
Expand Down

0 comments on commit de94d14

Please sign in to comment.