mirror of
https://github.com/QB64-Phoenix-Edition/QB64pe.git
synced 2024-09-07 09:30:15 +00:00
19 lines
497 B
QBasic
19 lines
497 B
QBasic
DIM SHARED Version AS STRING
|
|
DIM SHARED IsCiVersion AS _BYTE
|
|
|
|
Version$ = "2.1.0"
|
|
|
|
' If ./internal/version.txt exist, then this is some kind of CI build with a label
|
|
IF _FILEEXISTS("internal/version.txt") THEN
|
|
versionfile = FREEFILE
|
|
OPEN "internal/version.txt" FOR INPUT AS #versionfile
|
|
|
|
LINE INPUT #versionfile, VersionLabel$
|
|
Version$ = Version$ + VersionLabel$
|
|
|
|
if VersionLabel$ <> "" then
|
|
IsCiVersion = -1
|
|
end if
|
|
|
|
CLOSE #versionfile
|
|
END IF
|