Skip to content

Commit

Permalink
Router: add option to include a release 'status' in the version numbe…
Browse files Browse the repository at this point in the history
…r, i.e. beta1, rc1
  • Loading branch information
eyedeekay committed Jul 18, 2023
1 parent 206cc00 commit d66a742
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions router/java/src/net/i2p/router/RouterVersion.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,12 @@ public class RouterVersion {
/** deprecated */
public final static String ID = "Git";
public final static String VERSION = CoreVersion.VERSION;
public final static long BUILD = 0;

/** for example: "beta", "alpha", "rc" */
public final static String STATUS = "";
public final static long BUILD = 1;
/** for example "-test" */
public final static String EXTRA = "";
public final static String FULL_VERSION = VERSION + "-" + BUILD + EXTRA;
public final static String FULL_VERSION = VERSION + "-" + STATUS + BUILD + EXTRA;
public static void main(String args[]) {
System.out.println("I2P Router version: " + FULL_VERSION);
System.out.println("Router ID: " + RouterVersion.ID);
Expand Down

0 comments on commit d66a742

Please sign in to comment.