Added git hash to version number

This commit is contained in:
AnnaSnoeijs 2025-06-06 21:31:59 +02:00
parent be33c08738
commit 7bbd877fb5
2 changed files with 16 additions and 3 deletions

View file

@ -26,10 +26,16 @@
#include "types.h"
#include "ui.h"
#define VERSION 0.1.0
#define VERSION 0.1.1
#ifndef GITHASH
#define FULLVERSION VERSION
#else
#define FULLVERSION VERSION~git.GITHASH
#endif
#define VERSIONSTRING \
"AnnaConnect version "XSTR(VERSION)", Copyright (C) Anna Snoeijs\n"
"AnnaConnect version "XSTR(FULLVERSION)", Copyright (C) Anna Snoeijs\n"
// The LISENCE file
// Not null-terminated so need pointers for both start and end