new DuVersion(version)
D:/DEV_SRC/RxOT/DuPSF/tools/output/DuPSF.jsxinc, line 4269
Constructs a new version object
| Name | Type | Default | Description |
|---|---|---|---|
version |
string | '1.0.0' | optional The version in the form Major.Minor.Patch |
Properties:
| Name | Type | Description |
|---|---|---|
fullVersion |
string | The complete version name |
versionString |
string | The Major.Minor part as a string |
version |
float | The Major.Minor part as a float |
major |
int | |
minor |
int | |
patch |
int | |
build |
int | The build is -1 if it cannot be parsed as an int, like "alpha". |
buildString |
string | The build as a string |
Methods
-
staticDuVersion.compare(vA, vB){boolean}
D:/DEV_SRC/RxOT/DuPSF/tools/output/DuPSF.jsxinc, line 4371 -
Compares two versions of an application
Name Type Default Description vAstring | DuVersion The first version vBstring | DuVersion DuESF.scriptVersion optional The other version Returns:
Type Description boolean True if vA is more recent than vB (strict, if they're equal it will return false) -
atLeast(otherVersion){bool}
D:/DEV_SRC/RxOT/DuPSF/tools/output/DuPSF.jsxinc, line 4344 -
Checks if this version is higher than or equals another.
Name Type Description otherVersionDuVersion | string The version to compare with. Returns:
Type Description bool true if this version is more recent than or the same as otherVersion -
equals(otherVersion){bool}
D:/DEV_SRC/RxOT/DuPSF/tools/output/DuPSF.jsxinc, line 4356 -
Checks if this version is the same as another.
Name Type Description otherVersionDuVersion | string The version to compare with. Returns:
Type Description bool true if this version is the same -
higherThan(otherVersion){bool}
D:/DEV_SRC/RxOT/DuPSF/tools/output/DuPSF.jsxinc, line 4333 -
Checks if this version is higher than another.
Name Type Description otherVersionDuVersion | string The version to compare with. Returns:
Type Description bool true if this version is more recent than otherVersion
Type Definitions
-
UpdateReplyObject
-
Information got from an update query on a RxVersion server, as returned by
DuVersion.checkUpdate().Properties:
Name Type Description updateBoolean Whether this script needs an update. versionstring The available version. namestring The name of the script. descriptionstring A description of the version. downloadURLstring The link to download the current version. changelogURLstring The link to the changelog. donateURLstring The link to make a donation. datestring The date of the version, in the form "yyyy-MM-dd hh:mm:ss". messagestring Information about success/errors. successBoolean false if the query failed and the version could not be retrieved. acceptedBoolean false if the query was wrong or the server did not recognize it. Should always be true. /** Checks if a new version is available for the current script,
using the DuESF.rxVersionURL if it is set.