mirror of
https://github.com/tauri-apps/tauri.git
synced 2024-12-19 00:21:32 +03:00
39ce652329
* chore(monorepo): cleanup * fix(tauri-cli): build errors * fix(tauri:build.rs): dont' panic if env missing * fix(finalize): setup for crates * npm publish on release actual publish currently disabled * cargo publish on release actual publish currently disabled * update PR tests for new folder structure * doesn't like the period on job name? * fail on cargo warnings otherwise we would assume green arrow is all good * green on warnings for now
38 lines
707 B
JavaScript
38 lines
707 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 { tauriDir } = require('../helpers/app-paths')
|
|
const Runner = require('../runner')
|
|
const tauri = new Runner({ modeDir: tauriDir })
|
|
const tauriConfig = require('../helpers/tauri-config')({
|
|
ctx: {
|
|
debug: argv.debug,
|
|
prod: true
|
|
}
|
|
})
|
|
|
|
require('../generator').generate(tauriConfig.tauri)
|
|
require('../entry').generate(tauriDir, tauriConfig)
|
|
|
|
tauri.build(tauriConfig)
|