From 8c117d5b1f167b126ef85bf297d6b37fcd5692b9 Mon Sep 17 00:00:00 2001 From: misyaguziya <53165965+misyaguziya@users.noreply.github.com> Date: Thu, 13 Feb 2025 13:05:21 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=8D=EF=B8=8F[Update]=20Build=20:=20?= =?UTF-8?q?=E3=83=93=E3=83=AB=E3=83=89=E6=99=82=E3=81=AB=E4=B8=8D=E8=A6=81?= =?UTF-8?q?=E3=81=AA=E3=83=95=E3=82=A1=E3=82=A4=E3=83=AB=E3=82=92=E5=89=8A?= =?UTF-8?q?=E9=99=A4=E3=81=99=E3=82=8B=E5=87=A6=E7=90=86=E3=82=92=E8=BF=BD?= =?UTF-8?q?=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- clean.py | 6 ++++++ package.json | 5 +++-- 2 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 clean.py diff --git a/clean.py b/clean.py new file mode 100644 index 00000000..93084e62 --- /dev/null +++ b/clean.py @@ -0,0 +1,6 @@ +import shutil + +shutil.rmtree('build', ignore_errors=True) +shutil.rmtree('dist', ignore_errors=True) +shutil.rmtree('src-tauri\\bin', ignore_errors=True) +shutil.rmtree('src-tauri\\target', ignore_errors=True) \ No newline at end of file diff --git a/package.json b/package.json index 5cbeaae6..48ee7f7e 100644 --- a/package.json +++ b/package.json @@ -12,11 +12,12 @@ "vite-preview": "vite preview", "tauri": "tauri", "tauri-dev": "tauri dev", + "clean": "python clean.py", "dev": "npm run build-python && npm run dev-ui", "dev-cuda": "npm run build-python-cuda && npm run dev-ui", "dev-ui": "npm-run-all --parallel vite tauri-dev", - "build": "npm run build-python && npm run vite-build && npm run tauri build", - "build-cuda": "npm run build-python-cuda && npm run vite-build && npm run tauri build", + "build": "npm run clean && npm run build-python && npm run vite-build && npm run tauri build", + "build-cuda": "npm run clean && npm run build-python-cuda && npm run vite-build && npm run tauri build", "release": "npm run build && python zip.py --zip_name VRCT.zip", "release-cuda": "npm run build-cuda && python zip.py --zip_name VRCT_cuda.zip", "release-all": "npm run release && npm run release-cuda"