mirror of
https://github.com/Llewellynvdm/nativefier.git
synced 2024-11-10 15:21:03 +00:00
21 lines
423 B
JavaScript
Executable File
21 lines
423 B
JavaScript
Executable File
#!/usr/bin/env node
|
|
var args = require('minimist')(process.argv.slice(2))
|
|
var packager = require('./')
|
|
|
|
args.dir = args._[0]
|
|
args.name = args._[1]
|
|
|
|
if (!args.dir || !args.name) {
|
|
console.error('Usage: atom-shell-packager <sourcedir> <Appname>')
|
|
process.exit(1)
|
|
}
|
|
|
|
packager(args, function done (err, appPath) {
|
|
if (err) {
|
|
console.error(err)
|
|
process.exit(1)
|
|
}
|
|
|
|
console.error('Wrote new app to', appPath)
|
|
})
|