Skip to content
This repository was archived by the owner on Feb 28, 2025. It is now read-only.

Commit 7d91b0c

Browse files
committed
Fixed updater script
1 parent 8c11f23 commit 7d91b0c

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

UpdateHelper/Updater.bat

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
@echo off
2+
setlocal
3+
4+
set "tempFilePath=%1"
5+
set "currentFilePath=%2"
6+
7+
:: Wait for the main application to close
8+
timeout /t 5 /nobreak >nul
9+
10+
:: Replace the old version with the new version
11+
del "%currentFilePath%"
12+
timeout /t 1 /nobreak >nul
13+
move "%tempFilePath%" "%currentFilePath%"
14+
15+
:: Start the new version
16+
start "" "%currentFilePath%"

UpdateHelper/Updater.ps1

-16
This file was deleted.

0 commit comments

Comments
 (0)