fix: run dev should reinstall extensions

This commit is contained in:
Louis 2025-08-05 00:09:12 +07:00
parent 45c2b02842
commit 72de519430
3 changed files with 4 additions and 4 deletions

View File

@ -17,7 +17,7 @@
"test:coverage": "vitest run --coverage", "test:coverage": "vitest run --coverage",
"test:prepare": "yarn build:icon && yarn copy:assets:tauri && yarn build --no-bundle ", "test:prepare": "yarn build:icon && yarn copy:assets:tauri && yarn build --no-bundle ",
"dev:web": "yarn workspace @janhq/web-app dev", "dev:web": "yarn workspace @janhq/web-app dev",
"dev:tauri": "yarn build:icon && yarn copy:assets:tauri && tauri dev", "dev:tauri": "yarn build:icon && yarn copy:assets:tauri && cross-env IS_CLEAN=true tauri dev",
"copy:assets:tauri": "cpx \"pre-install/*.tgz\" \"src-tauri/resources/pre-install/\"", "copy:assets:tauri": "cpx \"pre-install/*.tgz\" \"src-tauri/resources/pre-install/\"",
"download:lib": "node ./scripts/download-lib.mjs", "download:lib": "node ./scripts/download-lib.mjs",
"download:bin": "node ./scripts/download-bin.mjs", "download:bin": "node ./scripts/download-bin.mjs",

View File

@ -43,8 +43,8 @@ pub fn install_extensions(app: tauri::AppHandle, force: bool) -> Result<(), Stri
let mut clean_up = force; let mut clean_up = force;
// Check CLEAN environment variable to optionally skip extension install // Check IS_CLEAN environment variable to optionally skip extension install
if std::env::var("CLEAN").is_ok() { if std::env::var("IS_CLEAN").is_ok() {
clean_up = true; clean_up = true;
} }
log::info!( log::info!(

View File

@ -6,7 +6,7 @@
"build": { "build": {
"frontendDist": "../web-app/dist", "frontendDist": "../web-app/dist",
"devUrl": "http://localhost:1420", "devUrl": "http://localhost:1420",
"beforeDevCommand": "cross-env IS_TAURI=true CLEAN=true yarn dev:web", "beforeDevCommand": "cross-env IS_TAURI=true yarn dev:web",
"beforeBuildCommand": "cross-env IS_TAURI=true yarn build:web" "beforeBuildCommand": "cross-env IS_TAURI=true yarn build:web"
}, },
"app": { "app": {