mirror of
https://github.com/tauri-apps/tauri.git
synced 2024-12-23 02:32:28 +03:00
7e2854007a
* 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 '
38 lines
640 B
JavaScript
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()
|