From 48c12ec28cb9412480b7860ea644bc8820c80249 Mon Sep 17 00:00:00 2001 From: Enric Morales Date: Thu, 11 Jul 2024 09:51:18 +0200 Subject: [PATCH] gruntfile: Add flag to skip building nwjs --- Gruntfile.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Gruntfile.js b/Gruntfile.js index 942480bf..d3bfeaaa 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -474,7 +474,10 @@ module.exports = function (grunt) { "nggettext_compile", //-- Extract English texts to the template file "copy:dist", //-- Copy the files to be included in the build package "json-minify", //-- Minify JSON files - "nwjs", //-- Build the executable package + + //-- Build the executable package with nwjs by default, and skip this task + //-- when the flag --dont-build-nwjs is passed + ... grunt.option('dont-build-nwjs') ? [] : ["nwjs"], //-- The clean:tmp task is also a common task, but it is //-- executed after the specific platform task