Extension: Store build type in metadata
This commit is contained in:
+1
-1
@@ -11,6 +11,6 @@ const Me = extensionUtils.getCurrentExtension();
|
||||
* @param {string} msg Message to print.
|
||||
*/
|
||||
function message(msg) {
|
||||
if ('@BUILD_TYPE@' === 'debug') // eslint-disable-line no-constant-condition
|
||||
if (Me.metadata['build-type'] === 'debug')
|
||||
console.log(`[${Me.metadata.name}] ${msg}`);
|
||||
}
|
||||
|
||||
+2
-9
@@ -7,21 +7,14 @@ configure_file(
|
||||
configuration: {
|
||||
'DNS': DNS,
|
||||
'UUID': UUID,
|
||||
'VERSION': meson.project_version()
|
||||
},
|
||||
install_dir: INSTALL_DIR
|
||||
)
|
||||
|
||||
configure_file(
|
||||
input: 'debug.js',
|
||||
output: 'debug.js',
|
||||
configuration: {
|
||||
'VERSION': meson.project_version(),
|
||||
'BUILD_TYPE': get_option('buildtype')
|
||||
},
|
||||
install_dir: INSTALL_DIR
|
||||
)
|
||||
|
||||
main = [
|
||||
'debug.js',
|
||||
'extension.js',
|
||||
'prefs.js',
|
||||
'utils.js',
|
||||
|
||||
@@ -7,5 +7,6 @@
|
||||
"url": "https://nightthemeswitcher.romainvigier.fr",
|
||||
"session-modes": ["unlock-dialog", "user"],
|
||||
"shell-version": ["43"],
|
||||
"version": @VERSION@
|
||||
"version": @VERSION@,
|
||||
"build-type": "@BUILD_TYPE@"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user