mirror of
https://github.com/pepaskopec-blip/Graduately.git
synced 2026-10-27 15:14:35 +00:00
Merge pull request #2 from FBukovina/fix/macos-bundle-update-identity
Fix update checks in locally packaged macOS apps
This commit is contained in:
commit
6e2e4efa99
5 changed files with 139 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue