X Tutup
Skip to content

Commit a6bc803

Browse files
committed
build: [gn win] fix path names in js2asar
1 parent 27e6805 commit a6bc803

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

build/asar.gni

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ template("chdir_action") {
1616
])
1717
assert(defined(cwd), "Need cwd in $target_name")
1818
script = "//electron/build/run-in-dir.py"
19+
sources += [ invoker.script ]
1920
args = [
2021
cwd,
2122
rebase_path(invoker.script),

tools/js2asar.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def copy_files(source_files, output_dir, folder_name):
2626
output_path = os.path.join(output_dir, source_file)
2727
# Files that aren't in the default_app folder need to be put inside
2828
# the temp one we are making so they end up in the ASAR
29-
if not source_file.startswith(folder_name + os.sep):
29+
if not os.path.normpath(source_file).startswith(folder_name + os.sep):
3030
output_path = os.path.join(output_dir, folder_name, source_file)
3131
safe_mkdir(os.path.dirname(output_path))
3232
shutil.copy2(source_file, output_path)

0 commit comments

Comments
 (0)
X Tutup