From 404da6af1c9a0a902baf7d0e0813285dba02d95b Mon Sep 17 00:00:00 2001 From: Enric Morales Date: Thu, 11 Jul 2024 12:22:22 +0200 Subject: [PATCH] gruntfile: Allow an empty `platform` to skip platform-specific tasks --- Gruntfile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Gruntfile.js b/Gruntfile.js index d3bfeaaa..978ee95b 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -573,7 +573,7 @@ module.exports = function (grunt) { //-- Get the specific task to perform for the current platform - let distPlatformTasks = DIST_PLATFORM_TASKS[platform]; + let distPlatformTasks = DIST_PLATFORM_TASKS[platform] || []; //-- Special case: For the AARCH64, the platform is set to Linux64 /*if (platform === TARGET_AARCH64) {