mirror of https://github.com/tauri-apps/tauri
fix(runner) set dist dir env variable
This commit is contained in:
parent
022f6a370c
commit
c0312612a6
|
@ -22,8 +22,9 @@ class TauriRunner {
|
|||
}
|
||||
|
||||
async run(cfg) {
|
||||
const
|
||||
url = cfg.build.APP_URL
|
||||
process.env.TAURI_DIST_DIR = cfg.build.distDir
|
||||
|
||||
const url = cfg.build.APP_URL
|
||||
|
||||
if (this.pid) {
|
||||
if (this.url !== url) {
|
||||
|
@ -72,6 +73,8 @@ class TauriRunner {
|
|||
}
|
||||
|
||||
async build(cfg) {
|
||||
process.env.TAURI_DIST_DIR = cfg.build.distDir
|
||||
|
||||
this.__manipulateToml(toml => {
|
||||
this.__whitelistApi(cfg, toml)
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue