Revert "Remove meta.path from package.json."
This reverts commit 7233ea4bb3951472013413a44fcd99615b6ed7a3.
This commit is contained in:
parent
24c8db5c6b
commit
93b45c8bba
@ -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/",
|
||||
|
||||
@ -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) =>
|
||||
|
||||
@ -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: {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user