From f00565aabf8da43d2f98f6fcab0263bc7c9bfcfd Mon Sep 17 00:00:00 2001 From: Jare Guo Date: Tue, 31 Jul 2018 17:47:02 +0800 Subject: [PATCH] gulp: also sign simulator on windows (#1430) --- native/gulpfile.js | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/native/gulpfile.js b/native/gulpfile.js index 22b62db98c..c54f1d6a0b 100644 --- a/native/gulpfile.js +++ b/native/gulpfile.js @@ -179,14 +179,12 @@ gulp.task('gen-simulator', function(cb) { }); gulp.task('sign-simulator', function () { - if (process.platform === 'darwin') { - try { - var cmd = fs.readFileSync(Path.join(process.env.HOME, '.ssh', 'codesignCmd_simulator.txt'), 'utf8'); - execSync(cmd); - } - catch (e) { - console.warn('No need to run sign-simulator since v1.10.', e); - } + try { + var cmd = fs.readFileSync(Path.join(process.env.HOME, '.ssh', 'codesignCmd_simulator.txt'), 'utf8'); + execSync(cmd); + } + catch (e) { + console.warn('No need to run sign-simulator since v1.10.', e); } }); @@ -195,6 +193,7 @@ gulp.task('update-simulator-config', function(cb) { fs.copy('./tools/simulator/config.json', destPath, cb); }); +// 在 'sign-simulator' 之前执行,以保留这些 dll 来自第三方的签名 gulp.task('update-simulator-dll', function(cb) { if (process.platform === 'win32') { downloadSimulatorDLL(cb);