Ensure GDevelop.js build is done using release mode if not specified [skip ci]

Only show in developer changelog
This commit is contained in:
Florian Rival
2024-10-19 16:30:23 +02:00
parent 3c5bcf2762
commit 54237114d9
+2 -1
View File
@@ -7,12 +7,13 @@ module.exports = function (grunt) {
const useMinGW = grunt.option('use-MinGW') || false;
const possibleVariants = [
'release',
'dev',
'debug',
'debug-assertions',
'debug-sanitizers',
];
const variant = grunt.option('variant') || (grunt.option('dev') ? 'dev' : '');
const variant = grunt.option('variant') || (grunt.option('dev') ? 'dev' : 'release');
if (variant && possibleVariants.indexOf(variant) === -1) {
console.error(