Skip to content

Commit

Permalink
Prepared version 0.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Tech-FZ authored May 7, 2022
1 parent de82ffe commit 5bb1d8d
Show file tree
Hide file tree
Showing 12 changed files with 11 additions and 6 deletions.
Binary file modified bin/randopackage/RandochooseMain$1.class
Binary file not shown.
Binary file modified bin/randopackage/RandochooseMain$2.class
Binary file not shown.
Binary file modified bin/randopackage/RandochooseMain$3.class
Binary file not shown.
Binary file modified bin/randopackage/RandochooseMain$4.class
Binary file not shown.
Binary file modified bin/randopackage/RandochooseMain$5.class
Binary file not shown.
Binary file modified bin/randopackage/RandochooseMain$6.class
Binary file not shown.
Binary file modified bin/randopackage/RandochooseMain.class
Binary file not shown.
Binary file modified bin/randopackage/RandochooseUpdate$1.class
Binary file not shown.
Binary file modified bin/randopackage/RandochooseUpdate.class
Binary file not shown.
4 changes: 4 additions & 0 deletions doc/Changelog English.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
Randochoose 0.2.1 Alpha
- Completion: 7th May, 2022
- The updater has been fixed.

Randochoose 0.2.0 Alpha
- Completion: 13th April, 2022
- The Java VM processing bug has been fixed. If you close this program, you REALLY close it now! :)
Expand Down
8 changes: 3 additions & 5 deletions src/randopackage/RandochooseMain.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,12 @@ public class RandochooseMain {

public static int majorVer = 0;
public static int minorVer1 = 2;
public static int minorVer2 = 0;
public static int minorVer2 = 1;

public static void main(String[] args) {
String link = "https://raw.githubusercontent.com/Tech-FZ/randochoose/main/vercheck.rdc";
File out = new File("vercheck.rdc");
new Thread(new RandochooseUpdate(link, out)).start();
RandochooseUpdateStageTwo.checkStage(majorVer, minorVer1, minorVer2, false);
new Thread(new RandochooseUpdate(link, out, false)).start();

JFrame mainFrame = new JFrame();
mainFrame.setTitle("Randochoose");
Expand Down Expand Up @@ -67,8 +66,7 @@ public void actionPerformed(ActionEvent arg0) {
public void actionPerformed(ActionEvent arg0) {
String link = "https://raw.githubusercontent.com/Tech-FZ/randochoose/main/vercheck.rdc";
File out = new File("vercheck.rdc");
new Thread(new RandochooseUpdate(link, out)).start();
RandochooseUpdateStageTwo.checkStage(majorVer, minorVer1, minorVer2, true);
new Thread(new RandochooseUpdate(link, out, true)).start();
}
});

Expand Down
5 changes: 4 additions & 1 deletion src/randopackage/RandochooseUpdate.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,12 @@
public class RandochooseUpdate implements Runnable {
String link;
File out;
boolean manual;

public RandochooseUpdate(String link, File out) {
public RandochooseUpdate(String link, File out, boolean manual) {
this.link = link;
this.out = out;
this.manual = manual;
}

@Override
Expand All @@ -38,6 +40,7 @@ public void run() {

bout.close();
in.close();
RandochooseUpdateStageTwo.checkStage(RandochooseMain.majorVer, RandochooseMain.minorVer1, RandochooseMain.minorVer2, this.manual);
}

catch (Exception e) {
Expand Down

0 comments on commit 5bb1d8d

Please sign in to comment.