thedesk/app/node_modules/electron-download/lib/cli.js

19 lines
333 B
JavaScript
Raw Normal View History

2019-09-13 00:38:13 +10:00
#!/usr/bin/env node
'use strict'
const download = require('./')
const minimist = require('minimist')
const opts = minimist(process.argv.slice(2))
if (opts['strict-ssl'] === false) {
opts.strictSSL = false
}
download(opts, (err, zipPath) => {
if (err) throw err
console.log('Downloaded zip:', zipPath)
process.exit(0)
})