Skip to content

Commit

Permalink
windows打包
Browse files Browse the repository at this point in the history
  • Loading branch information
wushuo894 committed Sep 12, 2024
1 parent fb74528 commit d852f91
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/ani/rss/util/UpdateUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -79,14 +79,14 @@ public static void update(About about) {
return;
}
ThreadUtil.execute(() -> {
FileUtil.rename(file, jar.getName(), true);
ThreadUtil.sleep(3000);
if ("exe".equals(extName)) {
ThreadUtil.sleep(1000);
ServerUtil.stop();
RuntimeUtil.exec(file.getName());
System.exit(0);
return;
}
ThreadUtil.sleep(3000);
FileUtil.rename(file, jar.getName(), true);
System.exit(0);
});
});
Expand Down

0 comments on commit d852f91

Please sign in to comment.