mirror of
https://github.com/tauri-apps/tauri.git
synced 2024-12-18 16:11:38 +03:00
26 lines
408 B
JavaScript
26 lines
408 B
JavaScript
const parseArgs = require('minimist')
|
|
|
|
const argv = parseArgs(process.argv.slice(2), {
|
|
alias: {
|
|
h: 'help',
|
|
d: 'debug'
|
|
},
|
|
boolean: ['h', 'd']
|
|
})
|
|
|
|
if (argv.help) {
|
|
console.log(`
|
|
Description
|
|
Tauri build.
|
|
Usage
|
|
$ tauri build
|
|
Options
|
|
--help, -h Displays this message
|
|
`)
|
|
process.exit(0)
|
|
}
|
|
|
|
const build = require('../dist/api/build')
|
|
|
|
build({ ctx: { debug: argv.debug } })
|