Browse Source

chore: add update_url only for self-served Firefox version

Gerald 8 years ago
parent
commit
4858aab67d
2 changed files with 1 additions and 2 deletions
  1. 1 1
      gulpfile.js
  2. 0 1
      src/manifest.yml

+ 1 - 1
gulpfile.js

@@ -77,7 +77,7 @@ gulp.task('manifest', () => (
     data.version = pkg.version.replace(/-[^.]*/, '');
     data.version = pkg.version.replace(/-[^.]*/, '');
     if (process.env.TARGET === 'firefox') {
     if (process.env.TARGET === 'firefox') {
       data.version += 'f';
       data.version += 'f';
-      delete data.applications.gecko.update_url;
+      data.applications.gecko.update_url = 'https://violentmonkey.top/static/updates.json';
     }
     }
     file.path = file.path.replace(/\.yml$/, '.json');
     file.path = file.path.replace(/\.yml$/, '.json');
     return JSON.stringify(data);
     return JSON.stringify(data);

+ 0 - 1
src/manifest.yml

@@ -43,4 +43,3 @@ permissions:
 applications:
 applications:
   gecko:
   gecko:
     id: '{aecec67f-0d10-4fa7-b7c7-609a2db280cf}'
     id: '{aecec67f-0d10-4fa7-b7c7-609a2db280cf}'
-    update_url: https://violentmonkey.top/static/updates.json