tauri/cli/tauri.js/bin/tauri-build.js
Lucas Fernandes Nogueira 7e2854007a
test(e2e) add FS API tests (#521)
* fix(tauri.js) update e2e test

* test(e2e) add FS API tests

* fix(tauri.js) lint errors

* fix(tauri) clippy checks

* fix(test) use " instead of '
2020-03-29 23:41:45 -03:00

38 lines
640 B
JavaScript

const parseArgs = require('minimist')
const argv = parseArgs(process.argv.slice(2), {
alias: {
h: 'help',
d: 'debug',
t: 'target'
},
boolean: ['h', 'd']
})
if (argv.help) {
console.log(`
Description
Tauri build.
Usage
$ tauri build
Options
--help, -h Displays this message
--debug, -d Builds with the debug flag
--target, -t Comma-separated list of target triples to build against
`)
process.exit(0)
}
async function run () {
const build = require('../dist/api/build')
await build({
ctx: {
debug: argv.debug,
target: argv.target
}
}).promise
}
run()