Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions AppleNugs/macOS/AppleNugsApp.swift
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,13 @@ struct AppleNugsApp: App {
CommandGroup(before: .windowArrangement) {
NowPlayingWindowMenuItem()
}
// The default Help item only says "Help isn't available"; point it
// at the project page instead.
CommandGroup(replacing: .help) {
Button("AppleNugs Website") {
NSWorkspace.shared.open(URL(string: "https://timvanbenschoten.com/code/applenugs")!)
}
}
}

Window("Now Playing", id: NowPlayingWindow.id) {
Expand Down
6 changes: 6 additions & 0 deletions AppleNugs/macOS/Credits.rtf
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{\rtf1\ansi\ansicpg1252\cocoartf2822
{\fonttbl\f0\fnil\fcharset0 .AppleSystemUIFont;}
\pard\qc

\f0\fs22 Made by Tim VanBenschoten\
{\field{\*\fldinst{HYPERLINK "https://timvanbenschoten.com/code/applenugs"}}{\fldrslt timvanbenschoten.com/code/applenugs}}}
12 changes: 12 additions & 0 deletions DISTRIBUTION.md
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,18 @@ AppleNugs uses [Sparkle](https://sparkle-project.org) for in-app updates. The
The feed must never point at a 404 — uploading the asset before pushing
`appcast.xml` guarantees that.

End the GitHub Release notes with the project page line:

```
Project page: https://timvanbenschoten.com/code/applenugs
```

The script passes `--link` with the same URL, so each new appcast item
carries it too. To show notes in Sparkle's update window, put an
`AppleNugs-X.Y.html` file (an HTML fragment, no `<body>`) next to the DMG in
`build/sparkle-enclosure/` and end it with
`<p>Project page: <a href="https://timvanbenschoten.com/code/applenugs">timvanbenschoten.com/code/applenugs</a></p>`.

5. **Wait for the feed to resolve.** `appcast.xml` is served from
`raw.githubusercontent.com`, which only resolves once the repo is **public**.
GitHub's CDN caches raw content for approximately 5 minutes after a push, so
Expand Down
4 changes: 4 additions & 0 deletions scripts/sparkle-appcast.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,12 @@ TOOLS="${SPARKLE_TOOLS:-build/sparkle-tools/bin}"

[ -x "$TOOLS/generate_appcast" ] || { echo "generate_appcast not found at $TOOLS (see Task 1)"; exit 1; }

# --link adds a <link> to the new item: the project page, which Sparkle offers
# when it cannot install an update itself. A release-notes file named like the
# DMG (AppleNugs-X.Y.html) in the enclosure dir is embedded as the description.
"$TOOLS/generate_appcast" \
--download-url-prefix "https://github.com/tsvb/applenugs/releases/download/${TAG}/" \
--link "https://timvanbenschoten.com/code/applenugs" \
"$ENCLOSURE_DIR"

cp "$ENCLOSURE_DIR/appcast.xml" appcast.xml
Expand Down
Loading