mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-12 09:48:30 +12:00
Infrastructure for shipping and auto-updating experimental releases (#131)
This commit is contained in:
parent
e147c1b4a6
commit
d8da8a54a6
16 changed files with 261 additions and 122 deletions
|
@ -1,8 +1,33 @@
|
|||
#ifndef EMULATOR_NAME
|
||||
|
||||
#define EMULATOR_NAME "Cemu"
|
||||
#define EMULATOR_VERSION_LEAD 2
|
||||
#define EMULATOR_VERSION_MAJOR 0
|
||||
#define EMULATOR_VERSION_MINOR 0 // kept internally for backwards compatibility purposes, but isn't displayed anymore
|
||||
|
||||
// the minor version is used for experimental builds to indicate the build index. Set by command line option from CI build script
|
||||
// if zero, the version text will be constructed as LEAD.MAJOR, otherwise as LEAD.MAJOR-MINOR
|
||||
|
||||
#if !defined(PUBLIC_RELEASE)
|
||||
#define EMULATOR_VERSION_SUFFIX " (dev)"
|
||||
#elif defined(EMULATOR_VERSION_MINOR) && EMULATOR_VERSION_MINOR == 0
|
||||
#define EMULATOR_VERSION_SUFFIX "" // stable
|
||||
#else
|
||||
#define EMULATOR_VERSION_SUFFIX " (experimental)"
|
||||
#endif
|
||||
|
||||
#define EMULATOR_SERVER_VERSION 4000 // used for auto-updater, increment this with every release
|
||||
#ifndef EMULATOR_VERSION_MINOR
|
||||
#define EMULATOR_VERSION_MINOR 0
|
||||
#endif
|
||||
|
||||
#define _XSTRINGFY(s) _STRINGFY(s)
|
||||
#define _STRINGFY(s) #s
|
||||
|
||||
#if EMULATOR_VERSION_MINOR != 0
|
||||
#define BUILD_VERSION_WITH_NAME_STRING (EMULATOR_NAME " " _XSTRINGFY(EMULATOR_VERSION_LEAD) "." _XSTRINGFY(EMULATOR_VERSION_MAJOR) "-" _XSTRINGFY(EMULATOR_VERSION_MINOR) EMULATOR_VERSION_SUFFIX)
|
||||
#define BUILD_VERSION_STRING (_XSTRINGFY(EMULATOR_VERSION_LEAD) "." _XSTRINGFY(EMULATOR_VERSION_MAJOR) "-" _XSTRINGFY(EMULATOR_VERSION_MINOR) EMULATOR_VERSION_SUFFIX)
|
||||
#else
|
||||
#define BUILD_VERSION_STRING (_XSTRINGFY(EMULATOR_VERSION_LEAD) "." _XSTRINGFY(EMULATOR_VERSION_MAJOR) EMULATOR_VERSION_SUFFIX)
|
||||
#define BUILD_VERSION_WITH_NAME_STRING (EMULATOR_NAME " " _XSTRINGFY(EMULATOR_VERSION_LEAD) "." _XSTRINGFY(EMULATOR_VERSION_MAJOR) EMULATOR_VERSION_SUFFIX)
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue