Releasing SongFu¶
Releases live on songfu-app/songfu.
The app's updater reads the latest one through songfu.app, downloads the zip
for its system and checks it against the release's SHA256SUMS.txt.
What a release holds¶
| File | Made by |
|---|---|
SongFu-<version>-macos-universal.dmg |
the release-mac workflow |
SongFu-<version>-macos-universal.zip |
the release-mac workflow (the updater's file on a Mac) |
SongFu-<version>-windows-x64.zip |
the release-windows workflow (the updater's file on Windows) |
SHA256SUMS.txt |
both: one <sha256> <file name> line per file above |
<version> is the app's own version (version in Cargo.toml), whatever
the tag is called. A run warns when the two differ.
Making one¶
Nothing is built when a tag is pushed. Each workflow is started by hand
(Actions > the workflow > Run workflow) with the release's tag, such as
v0.2.0:
- It runs the whole test suite on its system. A failing test stops the run and the release is left as it was.
- It builds and packs the programs and keeps them as a workflow artifact.
- With a tag, its
attachjob adds the files to that tag's release and merges its lines intoSHA256SUMS.txt, keeping the other system's lines. With no tag it stops after step 2, which is how to try a build first.
A release that doesn't exist yet is created as a draft: look it over, then publish it. A release that is already published stays published.
The two workflows can run at the same time for one tag. Their attach jobs
share the group release-assets-<tag>, so GitHub runs them one after the
other and neither loses the other's files or checksum lines. Either can also
run alone, or again later: a rebuild replaces its own files and lines.
To take a build back, delete its files from the release and its lines from
SHA256SUMS.txt. The other system's files are not affected.
The release notes¶
The notes come from CHANGELOG.md. Start from this:
SongFu <version> (beta).
**Mac:** download the `.dmg` below, open it and drag SongFu to Applications.
**Windows:** download `SongFu-<version>-windows-x64.zip`, unpack it (right-click, *Extract All...*) and open `songfu.exe`. This build isn't code-signed yet, so the first time Windows SmartScreen says "Windows protected your PC": click *More info*, then *Run anyway*. That is needed once. The Windows build is distributed under GPLv3; `README.txt` in the zip says why and links the source.
## New in <version>
(this version's section of CHANGELOG.md)
The release-windows workflow adds the Windows paragraph by itself when the
notes don't have it yet. Leave the Windows paragraph out of a release with no
Windows build.
The Windows build by hand¶
On a Windows machine with Rust (MSVC toolchain), the Visual Studio Build
Tools and LLVM (LIBCLANG_PATH set to its bin folder):
powershell -File tools\windows\package.ps1 -Tag v0.2.0
It writes dist\windows\SongFu-<version>-windows-x64.zip and
dist\windows\SHA256SUMS.txt. The zip holds one folder,
SongFu-<version>, with songfu.exe, quickrs-cli.exe,
quickrs-convert.exe, LICENSE.txt, licences\GPL-3.0.txt and a
README.txt the script writes. -Tag is the tag the read-me's source link
names; without it the link names v<version>.
The Windows build is not code-signed yet. It includes the Steinberg ASIO® SDK under GPLv3, so it is distributed under GPLv3 and carries that licence; see INSTALL. ASIO is a registered trademark of Steinberg Media Technologies GmbH.
