2015-08-02 12:12:44 +00:00
|
|
|
DIM SHARED Version AS STRING
|
2022-04-24 03:39:09 +00:00
|
|
|
DIM SHARED IsCiVersion AS _BYTE
|
2018-11-02 09:17:33 +00:00
|
|
|
|
2022-08-26 13:05:07 +00:00
|
|
|
Version$ = "3.0.0"
|
|
|
|
$VERSIONINFO:FileVersion#=3,0,0,0
|
|
|
|
$VERSIONINFO:ProductVersion#=3,0,0,0
|
2022-04-24 03:39:09 +00:00
|
|
|
|
|
|
|
' If ./internal/version.txt exist, then this is some kind of CI build with a label
|
2022-04-26 22:27:57 +00:00
|
|
|
If _FILEEXISTS("internal/version.txt") THEN
|
2018-11-02 09:17:33 +00:00
|
|
|
versionfile = FREEFILE
|
|
|
|
OPEN "internal/version.txt" FOR INPUT AS #versionfile
|
2022-04-24 03:39:09 +00:00
|
|
|
|
|
|
|
LINE INPUT #versionfile, VersionLabel$
|
|
|
|
Version$ = Version$ + VersionLabel$
|
|
|
|
|
2022-05-18 05:31:20 +00:00
|
|
|
if VersionLabel$ <> "" AND VersionLabel$ <> "-UNKNOWN" then
|
2022-04-24 03:39:09 +00:00
|
|
|
IsCiVersion = -1
|
|
|
|
end if
|
|
|
|
|
2018-11-02 09:17:33 +00:00
|
|
|
CLOSE #versionfile
|
|
|
|
END IF
|