🗑️[Removal] update/restart処理を別プログラムに任せるためバッチ処理を削除

This commit is contained in:
misyaguziya
2024-08-28 11:36:17 +09:00
parent 41199221f6
commit 519ab57137
3 changed files with 1 additions and 30 deletions

View File

@@ -1,9 +0,0 @@
@if not "%~0"=="%~dp0.\%~nx0" start /min cmd /c,"%~dp0.\%~nx0" %* & goto :eof
set name=%1
set local_path=%~dp0
taskkill /im %name% /F
ping -n 2 127.0.0.1 > nul
START "" "%local_path%%name%"
del /f "%~dp0%~nx0"

View File

@@ -1,20 +0,0 @@
@if not "%~0"=="%~dp0.\%~nx0" start /min cmd /c,"%~dp0.\%~nx0" %* & goto :eof
set exe_name=%1
set folder_name=%2
set folder_tmp=%3
set restart=%4
set local_path=%~dp0
taskkill /im %exe_name% /F
ping -n 2 127.0.0.1 > nul
del /f "%local_path%%exe_name%"
rmdir /s /q "%local_path%%folder_name%"
xcopy "%local_path%%folder_tmp%" "%local_path%" /E /I
rmdir /s /q "%local_path%%folder_tmp%"
if %restart% == True (
START "" "%local_path%%exe_name%"
)
del /f "%~dp0%~nx0"

View File

@@ -5,7 +5,7 @@
"type": "module",
"scripts": {
"setup-python": "install.bat",
"build-python": "pyinstaller -F src-python/webui_mainloop.py --add-data ./fonts;fonts/ --add-data ./batch;batch/ --add-data .venv/Lib/site-packages/zeroconf;zeroconf/ --add-data .venv/Lib/site-packages/openvr;openvr/ --distpath src-tauri/bin --exclude-module pandas --exclude-module matplotlib --exclude-module PyQt5 --clean -n backend-x86_64-pc-windows-msvc",
"build-python": "pyinstaller -F src-python/webui_mainloop.py --add-data ./fonts;fonts/ --add-data .venv/Lib/site-packages/zeroconf;zeroconf/ --add-data .venv/Lib/site-packages/openvr;openvr/ --distpath src-tauri/bin --exclude-module pandas --exclude-module matplotlib --exclude-module PyQt5 --clean -n backend-x86_64-pc-windows-msvc --icon=./src-ui/assets/chato_icon_fill.png",
"vite": "vite",
"vite-build": "vite build",
"vite-preview": "vite preview",