Skip to content
Open
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
18 changes: 17 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@
# artifacts instead of publishing it.
#
# Each release has Lemon Studio for Windows (.exe), Linux (.AppImage) and macOS (Apple silicon .app, zipped), each
# carrying its updater, and Lemon Studio's plugins for other DAWs (VST3 and CLAP, a zip per platform). The manifest
# carrying its updater, and Lemon Studio's plugins for other DAWs (VST3 and CLAP, a zip per platform). Beside them are
# the installers for a first install (docs/installers.md): for Windows a setup .exe and an .msi, for macOS a .dmg. The
# updater never uses those: it replaces the program. The manifest
# (nightly.json or stable.json) is signed with minisign: the repository secret MINISIGN_SECRET_KEY signs it, and the
# repository variable MINISIGN_PUBLIC_KEY, built into the updater, checks it.
name: Release
Expand Down Expand Up @@ -155,6 +157,15 @@ jobs:
- name: Build the plugins
run: cargo run --release --locked -p bundle-plugins

# A fixed version: WiX 7 asks everyone building with it to accept its maintainers' licence (docs/installers.md).
- name: Install WiX
if: runner.os == 'Windows'
run: |
dotnet tool install --global wix --version 6.0.2
export PATH="$PATH:$HOME/.dotnet/tools"
cygpath -w "$HOME/.dotnet/tools" >>"$GITHUB_PATH"
wix extension add -g WixToolset.Util.wixext/6.0.2 WixToolset.BootstrapperApplications.wixext/6.0.2

- name: Package
run: |
set -euo pipefail
Expand Down Expand Up @@ -190,6 +201,11 @@ jobs:
macOS) ditto -c -k --keepParent "$p" "dist/LemonStudio-Plugins-$v-$PLATFORM.zip" ;;
*) (cd plugins && zip -qry "../dist/LemonStudio-Plugins-$v-$PLATFORM.zip" "LemonStudio-Plugins-$v") ;;
esac
# The installers, for a first install. Windows': the program and the plugins, which it offers to install.
case "$RUNNER_OS" in
Windows) bash tools/package/windows/build.sh "dist/$program.exe" "$v" "$LEMON_CHANNEL" "$p" dist ;;
macOS) bash tools/package/dmg.sh "target/bundled/$app.app" "dist/$program.dmg" "$LEMON_CHANNEL" ;;
esac
ls -l dist

- uses: actions/upload-artifact@v4
Expand Down
2 changes: 2 additions & 0 deletions docs/alpha-checklist.md
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,8 @@ contributions that add other installers or packaging are declined.
- [ ] **Prebuilt binaries for Windows, macOS and Linux.** The release workflow builds them, a nightly from main every
night and a tagged release from a `vMAJOR.MINOR.PATCH` tag: a Windows `.exe`, a Linux AppImage and a macOS `.app`
(Apple silicon), each updating itself (`lemonstudio-updater`), and the plugins for other DAWs as a zip per platform.
Installers for a first install go beside them: a setup `.exe` and an `.msi` for Windows, a `.dmg` for macOS
([installers.md](installers.md)).
Left: the steps under "Going live" in [releasing.md](releasing.md), its first run and trying the updates on each
platform among them
- [x] **Complete [THIRD-PARTY-NOTICES.txt](../THIRD-PARTY-NOTICES.txt).** Every crate that goes into a build is
Expand Down
296 changes: 296 additions & 0 deletions docs/installers.md

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions docs/releasing.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ Each release has:
- `LemonStudio-<version>-macos-aarch64.zip`, holding `Lemon Studio.app` (a nightly: `Lemon Studio Nightly.app`), signed
ad hoc and not notarized
- `LemonStudio-Plugins-<version>-<platform>.zip`: the VST3 and CLAP plugins for other DAWs, with a `README.txt` on where they go
- the installers, for a first install ([installers.md](installers.md)): `LemonStudio-Setup.exe` and `LemonStudio.msi`
(a nightly: `LemonStudioNightly-Setup.exe`, `LemonStudioNightly.msi`), built by
[tools/package/windows/build.sh](../tools/package/windows/build.sh) with the plugins in them; and `LemonStudio.dmg`
(`LemonStudioNightly.dmg`), built by [tools/package/dmg.sh](../tools/package/dmg.sh). The updater never uses them
- `nightly.json` or `stable.json`, and its minisign signature (`.minisig`)
- `LICENSE` and `THIRD-PARTY-NOTICES.txt`

Expand Down
364 changes: 364 additions & 0 deletions tools/package/art.py

Large diffs are not rendered by default.

122 changes: 122 additions & 0 deletions tools/package/dmg.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
#!/usr/bin/env bash
# Copyright (C) 2026 ItsAlphaNeon
# SPDX-License-Identifier: GPL-3.0-or-later
# This file is part of Lemon Studio: https://github.com/ItsAlphaNeon/Lemon-Studio

# Packs Lemon Studio's .app as the macOS download (docs/installers.md): a .dmg that opens a Finder window in Pith, the
# app on the left, Applications on the right, an arrow between them and, under them, how to open it the first time.
#
# tools/package/dmg.sh <Lemon Studio.app> <out.dmg> [nightly]
#
# Needs only macOS: hdiutil makes the disk image, and Finder lays out its window (AppleScript), which stores the layout
# in the image's .DS_Store. The art is tools/package/art.py's, kept in the repository (macos/art/<channel>), drawn for a
# window of 660 x 440 points with the icons at (170, 190) and (490, 190): change those there and here together.
#
# Finder lays the window out only where it can run: on a Mac with someone logged in, or a CI runner, which has Finder.
# Where it can't, the .dmg is still made, with Finder's plain window, and a warning says so.
set -euo pipefail

if [ $# -lt 2 ] || [ $# -gt 3 ]; then
echo "usage: $0 <Lemon Studio.app> <out.dmg> [nightly]" >&2
exit 2
fi
app=$1
out=$2
channel=stable
[ "${3:-}" = nightly ] && channel=nightly
name="Lemon Studio"
[ "$channel" = nightly ] && name="Lemon Studio Nightly"
here=$(cd "$(dirname "$0")" && pwd)
art=$here/macos/art/$channel
appname=$(basename "$app")

work=$(mktemp -d)
mnt=""
cleanup() {
[ -n "$mnt" ] && hdiutil detach "$mnt" -quiet -force 2>/dev/null || true
rm -rf "$work"
}
trap cleanup EXIT

# What the window holds. Names starting with a dot are hidden by Finder.
stage=$work/stage
mkdir -p "$stage/.background"
ditto "$app" "$stage/$appname"
ln -s /Applications "$stage/Applications"
# One picture for both kinds of screen: Finder picks the 2x one on a Retina screen.
tiffutil -cathidpicheck "$art/background.png" "$art/background@2x.png" -out "$stage/.background/background.tiff" >/dev/null
icns=$(find "$app/Contents/Resources" -maxdepth 1 -name '*.icns' | head -n 1)
[ -n "$icns" ] && cp "$icns" "$stage/.VolumeIcon.icns"
cat >"$stage/How to open $name.txt" <<TXT
How to open $name the first time

$name isn't notarized by Apple (that needs a paid Apple developer account the project doesn't have), so macOS stops
it the first time it is opened.

1. Drag $name to Applications (in this window).
2. Open it from Applications. macOS says it can't check it: choose Done.
3. Open System Settings, then Privacy & Security. Near the bottom, next to "$name" was blocked, choose Open Anyway,
and then Open.

Or, instead of 2 and 3, paste this into Terminal and press Return:

xattr -dr com.apple.quarantine "/Applications/$appname"

After that it opens like any other app, and the updates it installs itself don't ask again.

Its plugins for other DAWs (VST3 and CLAP) aren't in here: they're the release's plugin download.
TXT

# A writable image to lay out, made into the compressed one at the end. The volume's name is the window's title.
rw=$work/rw.dmg
size=$(( $(du -sm "$stage" | cut -f1) + 40 ))
hdiutil create -quiet -srcfolder "$stage" -volname "$name" -fs HFS+ -format UDRW -size "${size}m" "$rw"
mnt=$(hdiutil attach -readwrite -noverify -noautoopen "$rw" | awk -F'\t' '/\/Volumes\// { print $NF; exit }')
disk=$(basename "$mnt")

# The custom volume icon (the app's), where SetFile is there to switch it on (Xcode's command line tools).
if [ -f "$mnt/.VolumeIcon.icns" ] && command -v SetFile >/dev/null; then
SetFile -a C "$mnt"
fi

# The window: no toolbar, the background, the icons on their wells and the note top right, out of the drag's way. The
# bounds are the window's frame, so its height is the picture's plus Finder's title bar.
layout() {
osascript <<APPLESCRIPT
tell application "Finder"
tell disk "$disk"
open
set current view of container window to icon view
set toolbar visible of container window to false
set statusbar visible of container window to false
set bounds of container window to {200, 120, 860, 588}
set opts to the icon view options of container window
set arrangement of opts to not arranged
set icon size of opts to 80
set text size of opts to 13
set background picture of opts to file ".background:background.tiff"
set position of item "$appname" of container window to {170, 190}
set position of item "Applications" of container window to {490, 190}
set position of item "How to open $name.txt" of container window to {596, 54}
close
open
update without registering applications
delay 2
close
end tell
end tell
APPLESCRIPT
}
if ! layout; then
echo "warning: Finder couldn't lay out the window; the .dmg has Finder's plain window" >&2
fi
# Finder writes the .DS_Store when it gets round to it.
for _ in 1 2 3 4 5 6 7 8 9 10; do [ -f "$mnt/.DS_Store" ] && break; sleep 1; done
chmod -Rf go-w "$mnt" || true
sync
hdiutil detach "$mnt" -quiet || { sleep 3; hdiutil detach "$mnt" -quiet -force; }
mnt=""

rm -f "$out"
hdiutil convert -quiet "$rw" -format UDZO -imagekey zlib-level=9 -o "$out"
echo "$out"
Binary file added tools/package/macos/art/nightly/background.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added tools/package/macos/art/nightly/background@2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added tools/package/macos/art/stable/background.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added tools/package/macos/art/stable/background@2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
32 changes: 16 additions & 16 deletions tools/package/release-notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,25 @@

### Downloads

| | Lemon Studio | Its plugins for other DAWs (VST3 and CLAP) |
|---|---|---|
| Windows | `{PROGRAM}.exe` | `LemonStudio-Plugins-{VERSION}-windows-x86_64.zip` |
| Linux | `{PROGRAM}.AppImage` | `LemonStudio-Plugins-{VERSION}-linux-x86_64.zip` |
| macOS (Apple silicon) | `LemonStudio-{VERSION}-macos-aarch64.zip` | `LemonStudio-Plugins-{VERSION}-macos-aarch64.zip` |
| | Install it | Or just the program | Its plugins for other DAWs (VST3 and CLAP) |
|---|---|---|---|
| Windows | `{PROGRAM}-Setup.exe` (or `{PROGRAM}.msi`) | `{PROGRAM}.exe` | `LemonStudio-Plugins-{VERSION}-windows-x86_64.zip` |
| Linux | `{PROGRAM}.AppImage` | | `LemonStudio-Plugins-{VERSION}-linux-x86_64.zip` |
| macOS (Apple silicon) | `{PROGRAM}.dmg` | `LemonStudio-{VERSION}-macos-aarch64.zip` | `LemonStudio-Plugins-{VERSION}-macos-aarch64.zip` |

Lemon Studio has its own plugins built in; the plugin downloads are for using them in other DAWs. Once installed, Lemon
Studio checks for updates when it starts (Settings ▸ General ▸ Updates) and installs them itself, under the same file
name, so shortcuts to it keep working.
Lemon Studio has its own plugins built in; the plugin downloads are for using them in other DAWs. The Windows
installers offer to install them too. Once installed, Lemon Studio checks for updates when it starts (Settings ▸
General ▸ Updates) and installs them itself, under the same file name, so shortcuts and pins keep working.

- **Windows:** run the `.exe`. It isn't signed, so SmartScreen may say it doesn't recognise it: choose **More info** ▸
**Run anyway**.
- **Windows:** run `{PROGRAM}-Setup.exe`. It installs for you only and needs no administrator rights. It isn't
signed, so SmartScreen may say it doesn't recognise it: choose **More info** ▸ **Run anyway**. The `.msi` installs
the same way, for those who'd rather have one.
- **Linux:** make the AppImage executable (`chmod +x {PROGRAM}.AppImage`, or in its file properties) and run it.
- **macOS:** Lemon Studio is not notarized by Apple (that needs a paid Apple Developer account the project doesn't have),
so macOS stops it the first time. Unzip it and move **{APP}.app** to Applications. Then open it once, go to
**System Settings ▸ Privacy & Security** and choose **Open Anyway** (on macOS 14 and earlier, right-click the app ▸
**Open** ▸ **Open** also works). Or, in Terminal:
`xattr -dr com.apple.quarantine "/Applications/{APP}.app"`. Updates Lemon Studio installs itself don't ask
again.
- **macOS:** open the `.dmg` and drag **{APP}** to Applications. Lemon Studio is not notarized by Apple (that needs a
paid Apple Developer account the project doesn't have), so macOS stops it the first time: open it once, go to
**System Settings ▸ Privacy & Security** and choose **Open Anyway**. Or, in Terminal:
`xattr -dr com.apple.quarantine "/Applications/{APP}.app"`. The `.dmg` has these steps in it too. Updates Lemon
Studio installs itself don't ask again.
- **Plugins:** unzip and copy the `VST3` folder's contents to your VST3 folder and the `CLAP` folder's to your CLAP
folder (the zip's `README.txt` lists where those are). On macOS, also run
`xattr -dr com.apple.quarantine` on the copied plugins, or DAWs won't load them.
Expand Down
74 changes: 74 additions & 0 deletions tools/package/windows/Bundle.wxs
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2026 ItsAlphaNeon
SPDX-License-Identifier: GPL-3.0-or-later
This file is part of Lemon Studio: https://github.com/ItsAlphaNeon/Lemon-Studio

Lemon Studio's setup .exe (docs/installers.md), built by build.sh: WiX's own setup program, in Pith (theme.xml), running
the .msi (Package.wxs) with the choices made in it. The .msi does the installing, so the two install the same way and
either can update what the other installed.

Defines (build.sh): Channel, Version, Msi (the .msi built from Package.wxs), Probe (one of the CLAP plugins' file
names), Art (art/<channel>), Icon.
-->
<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs"
xmlns:bal="http://wixtoolset.org/schemas/v4/wxs/bal"
xmlns:util="http://wixtoolset.org/schemas/v4/wxs/util">
<?if $(Channel) = "nightly" ?>
<?define Name = "Lemon Studio Nightly" ?>
<?define Program = "LemonStudioNightly.exe" ?>
<?define Record = "Nightly" ?>
<?define BundleUpgradeCode = "2E4337A8-4755-406E-B644-58F9643D3A61" ?>
<?else?>
<?define Name = "Lemon Studio" ?>
<?define Program = "LemonStudio.exe" ?>
<?define Record = "Stable" ?>
<?define BundleUpgradeCode = "C84F2340-EA3B-43D2-B7D3-8A86CC5C4A0C" ?>
<?endif?>

<Bundle Name="$(Name)" Manufacturer="Lemon Studio" Version="$(Version)" UpgradeCode="$(BundleUpgradeCode)"
IconSourceFile="$(Icon)" AboutUrl="https://getlemonstudio.app/" HelpUrl="https://getlemonstudio.app/wiki/"
DisableModify="button">
<BootstrapperApplication>
<bal:WixStandardBootstrapperApplication Theme="hyperlinkLicense" LicenseUrl="https://github.com/ItsAlphaNeon/Lemon-Studio/blob/main/LICENSE" ThemeFile="$(Theme)" LocalizationFile="theme.wxl"
SuppressOptionsUI="yes" SuppressRepair="no" ShowVersion="no" />
<Payload SourceFile="$(Art)\setup.png" Name="setup.png" />
<Payload SourceFile="$(Art)\brand.png" Name="brand.png" />
<Payload SourceFile="$(Art)\brand@1.5x.png" Name="brand@1.5x.png" />
<Payload SourceFile="$(Art)\brand@2x.png" Name="brand@2x.png" />
</BootstrapperApplication>

<Variable Name="LemonName" Value="$(Name)" />
<?if $(Channel) = "nightly" ?>
<!-- theme.xml says it's a nightly before anything else. -->
<Variable Name="LemonNightly" Type="numeric" Value="1" />
<?endif?>
<Variable Name="LemonVersion" Value="$(Version)" />
<!-- The window's check boxes (theme.xml names them after these), ticked to begin with. -->
<Variable Name="InstallPlugins" Type="numeric" Value="1" bal:Overridable="yes" />
<Variable Name="DesktopShortcut" Type="numeric" Value="1" bal:Overridable="yes" />
<!-- Open (the last page's button). -->
<Variable Name="LaunchTarget" Value="[LocalAppDataFolder]Programs\$(Name)\$(Program)" />

<!-- Installed already (by this or the .msi): then the choices made then stand, and the window doesn't ask. -->
<util:RegistrySearch Id="LemonInstalled" Variable="LemonInstalled" Root="HKCU"
Key="Software\Lemon Studio\Install\$(Record)" Value="Path" Result="exists" />

<!-- Lemon plugins in the plugin folder that no install of Lemon Studio put there (a .zip's, or ones built by hand):
then the plugins start unticked, as the .msi's do (Package.wxs), so as not to take them over unasked. -->
<util:FileSearch Id="LemonForeignPlugins" Variable="LemonForeignPlugins" Result="exists"
Path="[LocalAppDataFolder]Programs\Common\CLAP\$(Probe)" />
<util:RegistrySearch Id="LemonPluginsOwned" Variable="LemonPluginsOwned" Root="HKCU"
Key="Software\Lemon Studio\Install\Plugins" Value="VST3" Result="exists" />
<SetVariable Id="LemonPluginsUnticked" Variable="InstallPlugins" Value="0" Type="numeric"
Condition="LemonForeignPlugins AND NOT LemonPluginsOwned" After="LemonPluginsOwned" />

<Chain>
<MsiPackage Id="LemonStudio" SourceFile="$(Msi)" Visible="no">
<MsiProperty Name="LEMONSETUP" Value="exe" />
<MsiProperty Name="INSTALLPLUGINS" Value="[InstallPlugins]" Condition="NOT LemonInstalled" />
<MsiProperty Name="DESKTOPSHORTCUT" Value="[DesktopShortcut]" Condition="NOT LemonInstalled" />
</MsiPackage>
</Chain>
</Bundle>
</Wix>
Loading
Loading