Skip to content

Commit 576e7e2

Browse files
committed
fix os.copy with shutil.
1 parent 9e23f21 commit 576e7e2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

hub_patcher.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import os
33
import sys
44
import fileinput
5+
import shutil
56

67
css = """<style>
78
/* cloud services column header */
@@ -44,7 +45,7 @@
4445
print("Extracting app..")
4546
subprocess.run("npx asar extract app.asar app", shell=True)
4647
print("Backing up...")
47-
os.copy("app.asar", "app.asar.bak")
48+
shutil.move("app.asar", "app.asar.bak")
4849
os.chdir(os.path.join("app", "build", "renderer"))
4950

5051
print("Patching...")

0 commit comments

Comments
 (0)