From 529238ae99ab2c17f6652c7f0d01c5bedaf6e15e Mon Sep 17 00:00:00 2001 From: RodrigoDornelles Date: Thu, 26 Oct 2023 21:18:48 -0300 Subject: [PATCH] Update build-pwa.py --- build-pwa.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build-pwa.py b/build-pwa.py index 6159d83..bcffb14 100755 --- a/build-pwa.py +++ b/build-pwa.py @@ -17,7 +17,7 @@ cdn = 'https://cdn.jsdelivr.net/gh/takahirox/nes-js@v0.0.1/build' with requests.get(f'{cdn}/{file_name}', stream=True) as download: file_name = file_name.replace(r'.min.js', '.js') - open(f'./html/{file_name}', "w").write(download.text) + open(f'./html/{file_name}', "x").write(download.text) rom = b64(open(input, "rb").read()).decode() html = open("./res/index.html", "r").read()