From 1aa369a66f9bc5482db1f72428faf69362aec708 Mon Sep 17 00:00:00 2001 From: Aarron Lee Date: Sun, 7 Jan 2024 20:32:01 -0500 Subject: [PATCH] update electron-build script --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 9a45ec7..4c119c1 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ "build_noerr": "vite build", "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0", "preview": "vite preview", - "electron-build": "rm -rf ./electron/static/build && vite build && cp -rf ./dist ./electron/static/build && sed -i 's\\/assets\\./assets\\g' ./electron/static/build/index.html" + "electron-build": "rm -rf ./electron/static/build && mkdir -p ./electron/static/build && vite build && cp -rf ./dist ./electron/static/build && sed -i 's\\/assets\\./assets\\g' ./electron/static/build/index.html" }, "dependencies": { "@chakra-ui/icons": "^2.1.1",