Skip to content

Commit

Permalink
dawg...
Browse files Browse the repository at this point in the history
final fix for the auto updater
  • Loading branch information
yophlox committed Oct 28, 2024
1 parent 2af3e8e commit cf5d128
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion TODO.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@

- Improve the Song Downloader.

- Improve the Chart Editor.
- Improve the Chart Editor.
7 changes: 4 additions & 3 deletions source/util/AutoUpdater.hx
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ class AutoUpdater
var fileName = entry.fileName;
trace("Extracting: " + fileName);

if (fileName == "AutoUpdater.exe" || fileName == "lime.ndll") { // replace with your executable's name.
if (fileName == "lime.ndll" || fileName == "Moon4K.exe" || fileName == "libvlc.dll") { // replace with your executable's name.
var content = Reader.unzip(entry);
File.saveBytes(fileName + ".new", content);
trace("Saved new version of: " + fileName);
Expand Down Expand Up @@ -245,9 +245,10 @@ class AutoUpdater
var batchContent =
'@echo off\n' +
'timeout /t 1 /nobreak > NUL\n' +
'move /y AutoUpdater.exe.new AutoUpdater.exe\n' + // replace with your executable's name.
'move /y Moon4K.exe.new Moon4K.exe\n' + // replace with your executable's name.
'move /y lime.ndll.new lime.ndll\n' +
'start "" AutoUpdater.exe\n' + // replace with your executable's name.
'move /y libvlc.dll.new libvlc.dll\n' +
'start "" Moon4K.exe\n' + // replace with your executable's name.
'del "%~f0"';

File.saveContent("finish_update.bat", batchContent);
Expand Down

0 comments on commit cf5d128

Please sign in to comment.