1
0
mirror of https://github.com/moparisthebest/mail synced 2024-12-23 07:48:48 -05:00

dont delete key from dev build

This commit is contained in:
Tankred Hase 2013-11-13 13:15:44 +01:00
parent 744ca66a1c
commit 92b7ba6601

View File

@ -259,7 +259,8 @@ module.exports = function(grunt) {
patchManifest({
suffix: ' (TEST)',
client_id: '440907777130-bfpgo5fbo4f7hetrg3hn57qolrtubs0u.apps.googleusercontent.com',
version: version
version: version,
deleteKey: true
});
});
grunt.registerTask('manifest-stable', function() {
@ -269,7 +270,8 @@ module.exports = function(grunt) {
patchManifest({
suffix: ' (Alpha)',
version: version
version: version,
deleteKey: true
});
});
@ -287,7 +289,9 @@ module.exports = function(grunt) {
if (options.client_id) {
manifest.oauth2.client_id = options.client_id;
}
if (options.deleteKey) {
delete manifest.key;
}
fs.writeFileSync(path, JSON.stringify(manifest, null, 2));
}