mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-07-15 20:56:30 +02:00
Installer, Win: allow "pre-release" in version name (inno setup)
git-svn-id: trunk@42825 -
This commit is contained in:
parent
156b1bffea
commit
2899e3dc78
@ -6,8 +6,12 @@ EnableISX=true
|
|||||||
// A valid file version contains only digits, so drop the RC part
|
// A valid file version contains only digits, so drop the RC part
|
||||||
#if pos('RC',AppVersion)>0
|
#if pos('RC',AppVersion)>0
|
||||||
#define FileVersion = copy(AppVersion, 1, pos('RC', AppVersion)-1)
|
#define FileVersion = copy(AppVersion, 1, pos('RC', AppVersion)-1)
|
||||||
#else
|
#else
|
||||||
#define FileVersion = AppVersion
|
#if pos('pre',AppVersion)>0
|
||||||
|
#define FileVersion = copy(AppVersion, 1, pos('pre', AppVersion)-1)
|
||||||
|
#else
|
||||||
|
#define FileVersion = AppVersion
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
#define LazRevision GetEnv('LazRevision')
|
#define LazRevision GetEnv('LazRevision')
|
||||||
#define FPCVersion GetEnv('FPCVersion')
|
#define FPCVersion GetEnv('FPCVersion')
|
||||||
|
@ -6,8 +6,12 @@ EnableISX=true
|
|||||||
// A valid file version contains only digits, so drop the RC part
|
// A valid file version contains only digits, so drop the RC part
|
||||||
#if pos('RC',AppVersion)>0
|
#if pos('RC',AppVersion)>0
|
||||||
#define FileVersion = copy(AppVersion, 1, pos('RC', AppVersion)-1)
|
#define FileVersion = copy(AppVersion, 1, pos('RC', AppVersion)-1)
|
||||||
#else
|
#else
|
||||||
#define FileVersion = AppVersion
|
#if pos('pre',AppVersion)>0
|
||||||
|
#define FileVersion = copy(AppVersion, 1, pos('pre', AppVersion)-1)
|
||||||
|
#else
|
||||||
|
#define FileVersion = AppVersion
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
#define FPCVersion GetEnv('FPCVersion')
|
#define FPCVersion GetEnv('FPCVersion')
|
||||||
#define FPCTargetOS GetEnv('FPCTargetOS')
|
#define FPCTargetOS GetEnv('FPCTargetOS')
|
||||||
|
Loading…
Reference in New Issue
Block a user