Remove meta.path from package.json.

This commit is contained in:
ccd0 2016-04-17 05:12:38 -07:00
parent 9613de917f
commit 7233ea4bb3
3 changed files with 4 additions and 3 deletions

View File

@ -3,7 +3,6 @@
"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,10 +1,11 @@
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(`../${pkg.meta.path}.keys/${pkg.name}.pem`);
var privateKey = fs.readFileSync(`../${path.basename(process.cwd())}.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,8 +1,9 @@
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(`../${pkg.meta.path}.keys/chrome-store.json`, 'utf8'));
var secrets = JSON.parse(fs.readFileSync(`../${path.basename(process.cwd())}.keys/chrome-store.json`, 'utf8'));
webstore_upload({
accounts: {