mirror of
https://github.com/tauri-apps/tauri.git
synced 2024-12-18 08:02:13 +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
13 lines
391 B
JavaScript
13 lines
391 B
JavaScript
const
|
|
path = require('path')
|
|
const { writeFileSync } = require('fs-extra')
|
|
const { tauriDir } = require('./helpers/app-paths')
|
|
|
|
module.exports.generate = tauriConfig => {
|
|
const
|
|
{ bundle, ...cfg } = tauriConfig
|
|
const outDir = tauriDir
|
|
writeFileSync(path.join(outDir, 'config.json'), JSON.stringify(cfg))
|
|
writeFileSync(path.join(outDir, 'bundle.json'), JSON.stringify(bundle))
|
|
}
|