mirror of
https://github.com/tauri-apps/tauri.git
synced 2024-12-24 11:14:40 +03:00
9981da93ed
* feat(mode) cleanup * fix(cli) fix bin entry
12 lines
353 B
JavaScript
12 lines
353 B
JavaScript
const
|
|
path = require('path'),
|
|
{ writeFileSync } = require('fs')
|
|
|
|
module.exports.generate = tauriConfig => {
|
|
const
|
|
{ bundle, ...cfg } = tauriConfig,
|
|
outDir = path.resolve(__dirname, '../..')
|
|
writeFileSync(path.join(outDir, 'config.json'), JSON.stringify(cfg))
|
|
writeFileSync(path.join(outDir, 'bundle.json'), JSON.stringify(bundle))
|
|
}
|