diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 40bb862..28ad585 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -8,10 +8,12 @@ name: Release on: - # macOS is DEFERRED until Linux/Windows/Android are polished — so this is - # manual-dispatch only for now (no auto-build on release publish). When macOS - # is back on the table, re-add `release: { types: [published] }` here and the - # macOS job will attach a universal build to each release automatically. + # macOS builds on its native runner automatically when a release is published + # (the macOS job has no dispatch-only gate). Linux/Windows stay dispatch-only — + # they are built locally and uploaded with the release; run the workflow by hand + # to (re)build those on runners against an existing tag. + release: + types: [published] workflow_dispatch: inputs: tag: diff --git a/android/app/src/main/java/mw/gri/android/BackgroundService.java b/android/app/src/main/java/mw/gri/android/BackgroundService.java index f58c035..3cf557d 100644 --- a/android/app/src/main/java/mw/gri/android/BackgroundService.java +++ b/android/app/src/main/java/mw/gri/android/BackgroundService.java @@ -74,12 +74,13 @@ public class BackgroundService extends Service { if (Build.VERSION.SDK_INT > 25) { startStopIntent.putExtra(EXTRA_NOTIFICATION_ID, NOTIFICATION_ID); } - if (canStart) { - startStopIntent.setAction(ACTION_START_NODE); - PendingIntent i = PendingIntent - .getBroadcast(BackgroundService.this, 1, startStopIntent, PendingIntent.FLAG_IMMUTABLE | PendingIntent.FLAG_ONE_SHOT); - mNotificationBuilder.addAction(R.drawable.ic_start, getStartText(), i); - } else if (canStop) { + // Goblin's background job is the light Nostr-over-Nym payment + // listen (the "Listening for payments" status); the heavy + // integrated node is never STARTED from this notification -- + // Goblin defaults to an external node, so the GRIM "Enable" + // action is removed. Only offer STOP as a safety valve if the + // node is somehow already running (started elsewhere). + if (canStop) { startStopIntent.setAction(ACTION_STOP_NODE); PendingIntent i = PendingIntent .getBroadcast(BackgroundService.this, 1, startStopIntent, PendingIntent.FLAG_IMMUTABLE | PendingIntent.FLAG_ONE_SHOT);