瀏覽代碼

chore: add BETA to extension name

Gerald 4 年之前
父節點
當前提交
a34a0f3a32
共有 1 個文件被更改,包括 5 次插入1 次删除
  1. 5 1
      gulpfile.js

+ 5 - 1
gulpfile.js

@@ -10,7 +10,7 @@ const Sharp = require('sharp');
 const { isProd } = require('@gera2ld/plaid/util');
 const spawn = require('cross-spawn');
 const i18n = require('./scripts/i18n');
-const { getVersion } = require('./scripts/version-helper');
+const { getVersion, isBeta } = require('./scripts/version-helper');
 const pkg = require('./package.json');
 
 const DIST = 'dist';
@@ -68,6 +68,10 @@ async function manifest() {
   if (process.env.TARGET === 'selfHosted') {
     data.browser_specific_settings.gecko.update_url = 'https://raw.githubusercontent.com/violentmonkey/violentmonkey/master/updates.json';
   }
+  if (isBeta()) {
+    // Do not support i18n in beta version
+    data.name = 'Violentmonkey BETA';
+  }
   await fs.writeFile(`${DIST}/manifest.json`, JSON.stringify(data), 'utf8');
 }