Merge pull request #2 from FBukovina/fix/macos-bundle-update-identity

Fix update checks in locally packaged macOS apps
This commit is contained in:
Josef Skopec 2026-09-18 13:34:18 +02:00 • committed by GitHub
commit 6e2e4efa99
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 139 additions and 2 deletions

View file

@ -23,7 +23,8 @@
#define APP_ID "org.maturita.Maturita"
/* Published builds bake in the commit they were made from (see COMMIT in the
* Makefile), which is what the updater compares against the build published
* in the repository. Local builds stay at "dev" and never offer an update. */
* in the repository. Plain source builds stay at "dev" and never offer an
* update; the macOS bundler supplies the checkout commit for local packages. */
#ifndef APP_COMMIT
#define APP_COMMIT "dev"
#endif

View file

@ -196,7 +196,7 @@ static gboolean same_commit(const char *a, const char *b) {
return ok;
}
/* Only builds published by CI carry a commit; see APP_COMMIT in maturita.h. */
/* Packaged builds carry a source commit; see APP_COMMIT in maturita.h. */
static gboolean is_published_build(void) {
return g_ascii_isxdigit(APP_COMMIT[0]) && strlen(APP_COMMIT) >= 7;
}