mirror of
https://github.com/moparisthebest/mail
synced 2024-12-23 15:58:49 -05:00
dont delete key from dev build
This commit is contained in:
parent
744ca66a1c
commit
92b7ba6601
@ -259,7 +259,8 @@ module.exports = function(grunt) {
|
|||||||
patchManifest({
|
patchManifest({
|
||||||
suffix: ' (TEST)',
|
suffix: ' (TEST)',
|
||||||
client_id: '440907777130-bfpgo5fbo4f7hetrg3hn57qolrtubs0u.apps.googleusercontent.com',
|
client_id: '440907777130-bfpgo5fbo4f7hetrg3hn57qolrtubs0u.apps.googleusercontent.com',
|
||||||
version: version
|
version: version,
|
||||||
|
deleteKey: true
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
grunt.registerTask('manifest-stable', function() {
|
grunt.registerTask('manifest-stable', function() {
|
||||||
@ -269,7 +270,8 @@ module.exports = function(grunt) {
|
|||||||
|
|
||||||
patchManifest({
|
patchManifest({
|
||||||
suffix: ' (Alpha)',
|
suffix: ' (Alpha)',
|
||||||
version: version
|
version: version,
|
||||||
|
deleteKey: true
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -287,7 +289,9 @@ module.exports = function(grunt) {
|
|||||||
if (options.client_id) {
|
if (options.client_id) {
|
||||||
manifest.oauth2.client_id = options.client_id;
|
manifest.oauth2.client_id = options.client_id;
|
||||||
}
|
}
|
||||||
|
if (options.deleteKey) {
|
||||||
delete manifest.key;
|
delete manifest.key;
|
||||||
|
}
|
||||||
|
|
||||||
fs.writeFileSync(path, JSON.stringify(manifest, null, 2));
|
fs.writeFileSync(path, JSON.stringify(manifest, null, 2));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user