From 7c76f341b1e9bbe94c66ff642876402aa69654f5 Mon Sep 17 00:00:00 2001 From: Robert Staudinger Date: Tue, 22 Mar 2016 22:42:02 +0100 Subject: [PATCH] Windows: Package all dll files We used to have a whitelist of dll files, that should go into the MSI. But it is more sustainable to just ship all of them. BUG=XWALK-6575 --- windows/lib/WixSDK.js | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/windows/lib/WixSDK.js b/windows/lib/WixSDK.js index e1e43e4..a6e3d36 100644 --- a/windows/lib/WixSDK.js +++ b/windows/lib/WixSDK.js @@ -190,10 +190,16 @@ function(app_path, xwalk_path, meta_data, callback) { AddFileComponent(app_root_folder, xwalk_path, 'icudtl.dat'); AddFileComponent(app_root_folder, xwalk_path, 'natives_blob.bin'); AddFileComponent(app_root_folder, xwalk_path, 'snapshot_blob.bin'); - AddFileComponent(app_root_folder, xwalk_path, 'libEGL.dll'); - AddFileComponent(app_root_folder, xwalk_path, 'libGLESv2.dll'); - AddFileComponent(app_root_folder, xwalk_path, 'osmesa.dll'); + AddFileComponent(app_root_folder, xwalk_path, 'VERSION'); + // Add all dll files + readDir.readSync(xwalk_path).forEach(function (name) { + var suffix = name.substring(name.length - ".dll".length); + if (suffix && suffix.toLowerCase() === ".dll") { + AddFileComponent(app_root_folder, xwalk_path, name); + } + }); + var subfolder_map = {}; function GetFolderNode(subfolder, root) {