Skip to content

Commit 78aff6a

Browse files
committed
🎨
1 parent ab73f4c commit 78aff6a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tools/js2asar.py

+3
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,15 @@ def main():
1919
call_asar(archive, output_dir)
2020
shutil.rmtree(output_dir)
2121

22+
2223
def copy_js(js_source_files, output_dir):
2324
for source_file in js_source_files:
2425
output_filename = os.path.splitext(source_file)[0] + '.js'
2526
output_path = os.path.join(output_dir, output_filename)
2627
safe_mkdir(os.path.dirname(output_path))
2728
shutil.copy2(source_file, output_path)
2829

30+
2931
def call_asar(archive, output_dir):
3032
js_dir = os.path.join(output_dir, 'atom')
3133
asar = os.path.join(SOURCE_ROOT, 'node_modules', 'asar', 'bin', 'asar')
@@ -45,6 +47,7 @@ def find_node():
4547
return full_path
4648
return 'node'
4749

50+
4851
def safe_mkdir(path):
4952
try:
5053
os.makedirs(path)

0 commit comments

Comments
 (0)