fix: remove version_name from Firefox WebExtension manifest
Sarhan Aissi committed
Jun 4, 2019 at 22:34 UTC
e158768b16d0946e8c33bd36db91794361e05be0
1 file changed
+3
-1
shells/browser/shared/build.js
+3
-1
@@ -63,7 +63,9 @@ const build = async (tempPath, manifestPath) => {
63
64
const manifest = JSON.parse(readFileSync(copiedManifestPath).toString());
65
manifest.description += `\n\nCreated from revision ${commit} (${new Date().toLocaleDateString()})`;
66
- manifest.version_name = `${commit} (${new Date().toLocaleDateString()})`;
66
+ if (tempPath.includes('chrome')) {
67
+ manifest.version_name = `${commit} (${new Date().toLocaleDateString()})`;
68
+ }
69
writeFileSync(copiedManifestPath, JSON.stringify(manifest, null, 2));
70
71
// Pack the extension