fix(runner) set dist dir env variable

This commit is contained in:
Lucas Fernandes Nogueira 2019-08-21 21:54:49 -03:00
parent 022f6a370c
commit c0312612a6
No known key found for this signature in database
GPG Key ID: F800CCFC85EC52D9
1 changed files with 5 additions and 2 deletions

View File

@ -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)
})