PIKApp/build/windows/installer/version.isi

27 lines
624 B
Plaintext
Raw Normal View History

2023-09-26 00:35:21 +02:00
//set the version string
#define public
#if !Defined(VERSION)
#error "VERSION must be defined"
#endif
#define GTK_VER=GetFileVersion(AddBackslash(DEPS_DIR64) + "bin\libgtk-win32-2.0-0.dll")
#define public
//used in the component list
#define GTK_VERSION=Copy(GTK_VER,1,RPos(".",GTK_VER)-1)
#define MAJOR=Copy(VERSION,1,Pos(".",VERSION)-1)
#define MINOR=Copy(VERSION,Pos(".",VERSION)+1)
#define MICRO=Copy(MINOR,Pos(".",MINOR)+1)
#expr MINOR=Copy(MINOR,1,Pos(".",MINOR)-1)
#if Int(MINOR) % 2 == 1
#define DEVEL="-dev"
#define DIR_VER=MAJOR + "." + MINOR
#else
#define DEVEL=""
#define DIR_VER=MAJOR + ".0"
#endif