From c313fd614c3fe6d2ae58c4966d12dcc15ea8eba3 Mon Sep 17 00:00:00 2001 From: Samuel Attard Date: Tue, 17 Jul 2018 15:31:06 +1000 Subject: [PATCH] build: handle win32 path separator in js2asar (#13694) --- tools/js2asar.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/js2asar.py b/tools/js2asar.py index 633665079e..3f912fedb1 100755 --- a/tools/js2asar.py +++ b/tools/js2asar.py @@ -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 + "/"): + if not 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)