Skip to content

Commit

Permalink
build: [gn win] fix path names in js2asar
Browse files Browse the repository at this point in the history
  • Loading branch information
nornagon committed Jul 27, 2018
1 parent 27e6805 commit a6bc803
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions build/asar.gni
Expand Up @@ -16,6 +16,7 @@ template("chdir_action") {
])
assert(defined(cwd), "Need cwd in $target_name")
script = "//electron/build/run-in-dir.py"
sources += [ invoker.script ]
args = [
cwd,
rebase_path(invoker.script),
Expand Down
2 changes: 1 addition & 1 deletion tools/js2asar.py
Expand Up @@ -26,7 +26,7 @@ def copy_files(source_files, output_dir, folder_name):
output_path = os.path.join(output_dir, source_file)
# Files that aren't in the default_app folder need to be put inside
# the temp one we are making so they end up in the ASAR
if not source_file.startswith(folder_name + os.sep):
if not os.path.normpath(source_file).startswith(folder_name + os.sep):
output_path = os.path.join(output_dir, folder_name, source_file)
safe_mkdir(os.path.dirname(output_path))
shutil.copy2(source_file, output_path)
Expand Down

0 comments on commit a6bc803

Please sign in to comment.