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.
|
* @param {string} msg Message to print.
|
||||||
*/
|
*/
|
||||||
function message(msg) {
|
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}`);
|
console.log(`[${Me.metadata.name}] ${msg}`);
|
||||||
}
|
}
|
||||||
|
|||||||
+2
-9
@@ -7,21 +7,14 @@ configure_file(
|
|||||||
configuration: {
|
configuration: {
|
||||||
'DNS': DNS,
|
'DNS': DNS,
|
||||||
'UUID': UUID,
|
'UUID': UUID,
|
||||||
'VERSION': meson.project_version()
|
'VERSION': meson.project_version(),
|
||||||
},
|
|
||||||
install_dir: INSTALL_DIR
|
|
||||||
)
|
|
||||||
|
|
||||||
configure_file(
|
|
||||||
input: 'debug.js',
|
|
||||||
output: 'debug.js',
|
|
||||||
configuration: {
|
|
||||||
'BUILD_TYPE': get_option('buildtype')
|
'BUILD_TYPE': get_option('buildtype')
|
||||||
},
|
},
|
||||||
install_dir: INSTALL_DIR
|
install_dir: INSTALL_DIR
|
||||||
)
|
)
|
||||||
|
|
||||||
main = [
|
main = [
|
||||||
|
'debug.js',
|
||||||
'extension.js',
|
'extension.js',
|
||||||
'prefs.js',
|
'prefs.js',
|
||||||
'utils.js',
|
'utils.js',
|
||||||
|
|||||||
@@ -7,5 +7,6 @@
|
|||||||
"url": "https://nightthemeswitcher.romainvigier.fr",
|
"url": "https://nightthemeswitcher.romainvigier.fr",
|
||||||
"session-modes": ["unlock-dialog", "user"],
|
"session-modes": ["unlock-dialog", "user"],
|
||||||
"shell-version": ["43"],
|
"shell-version": ["43"],
|
||||||
"version": @VERSION@
|
"version": @VERSION@,
|
||||||
|
"build-type": "@BUILD_TYPE@"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user