atom-shell-packager
Advanced tools
Comparing version 2.0.0 to 2.1.0
@@ -8,2 +8,11 @@ #!/usr/bin/env node | ||
var protocolSchemes = [].concat(args.protocol || []) | ||
var protocolNames = [].concat(args['protocol-name'] || []) | ||
if (protocolSchemes && protocolNames && protocolNames.length === protocolSchemes.length) { | ||
args.protocols = protocolSchemes.map(function (scheme, i) { | ||
return {schemes: [scheme], name: protocolNames[i]} | ||
}) | ||
} | ||
if (!args.dir || !args.name) { | ||
@@ -10,0 +19,0 @@ console.error('Usage: atom-shell-packager <sourcedir> <Appname>') |
@@ -6,3 +6,4 @@ ## Collaborators | ||
<table><tbody><tr><th align="left">maxogden</th><td><a href="https://github.com/maxogden">GitHub/maxogden</a></td></tr> | ||
<tr><th align="left">mafintosh</th><td><a href="https://github.com/mafintosh">GitHub/mafintosh</a></td></tr> | ||
<tr><th align="left">remixz</th><td><a href="https://github.com/remixz">GitHub/remixz</a></td></tr> | ||
</tbody></table> |
@@ -60,2 +60,11 @@ var os = require('os') | ||
if (opts.protocols) { | ||
pl2.CFBundleURLTypes = pl1.CFBundleURLTypes = opts.protocols.map(function (protocol) { | ||
return { | ||
CFBundleURLName: protocol.name, | ||
CFBundleURLSchemes: [].concat(protocol.schemes) | ||
} | ||
}) | ||
} | ||
fs.writeFileSync(paths.info1, plist.build(pl1)) | ||
@@ -62,0 +71,0 @@ fs.writeFileSync(paths.info2, plist.build(pl2)) |
{ | ||
"name": "atom-shell-packager", | ||
"version": "2.0.0", | ||
"version": "2.1.0", | ||
"description": "package and distribute your atom-shell app in OS executables (.app, .exe, etc) via JS or CLI", | ||
@@ -26,3 +26,5 @@ "main": "index.js", | ||
}, | ||
"devDependencies": {}, | ||
"devDependencies": { | ||
"standard": "^3.3.2" | ||
}, | ||
"scripts": { | ||
@@ -29,0 +31,0 @@ "test": "standard" |
@@ -14,4 +14,10 @@ # atom-shell-packager | ||
``` | ||
npm i atom-shell-packager | ||
npm i atom-shell # if you dont have it already | ||
# for use in npm scripts | ||
npm i atom-shell-packager --save-dev | ||
# for use from cli | ||
npm i atom-shell-packager -g | ||
# you also need atom-shell installed | ||
npm i atom-shell | ||
``` | ||
@@ -18,0 +24,0 @@ |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
7283
115
49
1
2