1
1
Fork 0
mirror of https://github.com/QB64-Phoenix-Edition/QB64pe.git synced 2024-07-10 15:55:13 +00:00
QB64-PE/source/global/version.bas

22 lines
605 B
QBasic
Raw Normal View History

DIM SHARED Version AS STRING
DIM SHARED IsCiVersion AS _BYTE
2018-11-02 09:17:33 +00:00
2024-01-03 10:48:06 +00:00
Version$ = "3.11.0"
$VERSIONINFO:FILEVERSION#=3,11,0,0
$VERSIONINFO:PRODUCTVERSION#=3,11,0,0
' If ./internal/version.txt exist, then this is some kind of CI build with a label
2023-10-04 15:50:24 +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
LINE INPUT #versionfile, VersionLabel$
Version$ = Version$ + VersionLabel$
2023-10-04 15:50:24 +00:00
IF VersionLabel$ <> "" AND VersionLabel$ <> "-UNKNOWN" THEN
IsCiVersion = -1
2023-10-04 15:50:24 +00:00
END IF
2018-11-02 09:17:33 +00:00
CLOSE #versionfile
END IF