Revert "Remove meta.path from package.json."

This reverts commit 7233ea4bb3951472013413a44fcd99615b6ed7a3.
This commit is contained in:
ccd0 2016-04-17 12:11:42 -07:00
parent 24c8db5c6b
commit 93b45c8bba
3 changed files with 3 additions and 4 deletions

View File

@ -3,6 +3,7 @@
"description": "Cross-browser userscript for maximum lurking on 4chan.",
"meta": {
"name": "4chan X",
"path": "4chan-x",
"fork": "ccd0",
"page": "https://www.4chan-x.net/",
"downloads": "https://www.4chan-x.net/builds/",

View File

@ -1,11 +1,10 @@
var fs = require('fs');
var path = require('path');
var crx = require('crx');
var pkg = JSON.parse(fs.readFileSync('package.json', 'utf8'));
var channel = process.argv[2] || '';
var privateKey = fs.readFileSync(`../${path.basename(process.cwd())}.keys/${pkg.name}.pem`);
var privateKey = fs.readFileSync(`../${pkg.meta.path}.keys/${pkg.name}.pem`);
var archive = fs.readFileSync(`testbuilds/${pkg.name}${channel}.crx.zip`);
var extension = new crx({privateKey, loaded: true});
extension.pack(archive).then((data) =>

View File

@ -1,9 +1,8 @@
var fs = require('fs');
var path = require('path');
var webstore_upload = require('webstore-upload');
var pkg = JSON.parse(fs.readFileSync('package.json', 'utf8'));
var secrets = JSON.parse(fs.readFileSync(`../${path.basename(process.cwd())}.keys/chrome-store.json`, 'utf8'));
var secrets = JSON.parse(fs.readFileSync(`../${pkg.meta.path}.keys/chrome-store.json`, 'utf8'));
webstore_upload({
accounts: {