Forráskód Böngészése

README and website: downloads for Windows, macOS and Linux (OS detection, per-OS install notes, platform table)

Ka1-S 1 hónapja
szülő
commit
8a79ec5ad3
3 módosított fájl, 206 hozzáadás és 37 törlés
  1. 87 12
      README.md
  2. 14 1
      website/README.md
  3. 105 24
      website/index.html

+ 87 - 12
README.md

@@ -5,10 +5,11 @@
 <h1 align="center">LYNX</h1>
 
 <p align="center"><strong>A lightweight DAW with the FL Studio workflow.</strong><br>
-Channel Rack, Piano Roll, Playlist and Mixer in C++20 + JUCE 8, built to run well on any PC.</p>
+Channel Rack, Piano Roll, Playlist and Mixer in C++20 + JUCE 8, built to run well on any PC.<br>
+Windows, macOS and Linux.</p>
 
 <p align="center">
-  <a href="https://github.com/Ka1-S/LYNX/releases/latest"><img src="https://img.shields.io/badge/Download%20for%20Windows-0.1.7%20alpha-d9534f?style=for-the-badge&logo=windows&logoColor=white" alt="Download LYNX for Windows"></a>
+  <a href="https://github.com/Ka1-S/LYNX/releases/latest"><img src="https://img.shields.io/badge/Download-0.1.8%20alpha-d9534f?style=for-the-badge" alt="Download LYNX"></a>
 </p>
 
 <p align="center">
@@ -27,6 +28,8 @@ Channel Rack, Piano Roll, Playlist and Mixer in C++20 + JUCE 8, built to run wel
   <img src="https://img.shields.io/badge/C%2B%2B-20-ef7b22" alt="C++20">
   <img src="https://img.shields.io/badge/JUCE-8-8a8a8a" alt="JUCE 8">
   <img src="https://img.shields.io/badge/Windows-10%20%C2%B7%2011-24292f" alt="Windows 10 and 11">
+  <img src="https://img.shields.io/badge/macOS-11%2B%20%C2%B7%20Apple%20Silicon%20%C2%B7%20Intel-24292f" alt="macOS 11 or newer, Apple Silicon and Intel">
+  <img src="https://img.shields.io/badge/Linux-x86__64-24292f" alt="Linux x86_64">
   <img src="https://img.shields.io/badge/VST3%20%C2%B7%20CLAP-supported-d9534f" alt="VST3 and CLAP">
   <img src="https://img.shields.io/badge/status-alpha-f0ad4e" alt="Alpha">
   <a href="LICENSE"><img src="https://img.shields.io/badge/license-AGPL--3.0-5cb85c" alt="AGPL-3.0 license"></a>
@@ -158,7 +161,7 @@ Any knob or fader (channel, mixer, effect, plugin parameter) becomes a clip with
 - 3-oscillator synth with an evolving harmonics oscillator, SVF or 4-pole ladder filter and a vintage chorus
 - Sampler with zones, slices, time-stretch (WSOLA) and disk streaming
 - Built-in drums (kick, snare, hat, clap)
-- VST3 and CLAP plugins, optionally sandboxed in a separate process
+- VST3 and CLAP plugins on every OS, plus Audio Units on macOS and LV2 on Linux; on Windows optionally sandboxed in a separate process
 
 </td>
 <td width="33%" valign="top">
@@ -179,7 +182,7 @@ Any knob or fader (channel, mixer, effect, plugin parameter) becomes a clip with
 - Exports WAV 16/24/32f, FLAC and OGG, song or pattern, with dither
 - Note recording (PC keyboard and MIDI) and audio input recording
 - Undo/redo on every edit
-- Audio drivers: Windows Audio (WASAPI), DirectSound and ASIO
+- Audio drivers: Windows Audio (WASAPI), DirectSound and ASIO on Windows; Core Audio on macOS; ALSA and JACK on Linux
 
 </td>
 </tr>
@@ -237,13 +240,58 @@ A report lists what was converted, what is approximated and what was left out. F
 
 ## Download
 
-Grab `LYNX-x.y.z-setup-x64.exe` from the [latest release](https://github.com/Ka1-S/LYNX/releases/latest) (Windows 10/11,
-64-bit): a per-user installer that needs no admin rights, adds Start-menu/desktop shortcuts, opens `.lynx` projects and
-offers LYNX in *Open with* for `.flp` without changing FL Studio's default. Prefer no installer? The portable `.zip` is
-still there: extract it and run `LYNX.exe`. Both include a demo project (`Demo.lynx`). The executable is not code-signed
-yet, so SmartScreen may warn on first launch (*More info* → *Run anyway*); see [Code signing policy](#code-signing-policy).
+Every release on the [latest release page](https://github.com/Ka1-S/LYNX/releases/latest) has builds for all three
+platforms (`<v>` is the version, e.g. `0.1.8-alpha`):
+
+| OS | Download | Notes |
+|---|---|---|
+| **Windows** 10 / 11, 64-bit | `LYNX-<v>-setup-x64.exe` (installer) or `LYNX-<v>-windows-x64.zip` (portable) | per-user installer, no admin rights |
+| **macOS** 11 Big Sur or newer | `LYNX-<v>-macos-universal.dmg` | universal: Apple Silicon and Intel |
+| **Linux** x86_64, glibc 2.39+ | `LYNX-<v>-linux-x86_64.AppImage` or `LYNX-<v>-linux-x86_64.tar.gz` | Ubuntu 24.04+, Debian 13+, Fedora 40+, current Arch / Manjaro |
+
 Release files are built from the tagged source by GitHub Actions ([`release.yml`](.github/workflows/release.yml)) and
-listed with their SHA-256 in `SHA256SUMS.txt`.
+listed with their SHA-256 in `SHA256SUMS.txt`. Releases up to 0.1.7 are Windows-only.
+
+**Windows.** Run the installer: it needs no admin rights, adds Start-menu/desktop shortcuts, opens `.lynx` projects and
+offers LYNX in *Open with* for `.flp` without changing FL Studio's default. Prefer no installer? Extract the portable
+`.zip` and run `LYNX.exe`. Both include a demo project (`Demo.lynx`). The executable is not code-signed yet, so
+SmartScreen may warn on first launch (*More info* → *Run anyway*); see [Code signing policy](#code-signing-policy).
+
+**macOS.** Open the `.dmg` and drag LYNX to *Applications*. The app is not notarized by Apple and has no Developer ID
+signature (ad-hoc only), so the first launch needs one extra step: right-click (Control-click) LYNX in *Applications*
+→ *Open* → *Open*. On macOS 15 Sequoia or newer, try to open it once, then go to *System Settings* → *Privacy &
+Security* and click *Open Anyway*. Or, in Terminal:
+
+```
+xattr -dr com.apple.quarantine /Applications/LYNX.app
+```
+
+macOS asks for microphone access the first time you record.
+
+**Linux.** Needs X11 or XWayland, and audio through ALSA, JACK or PipeWire (through its JACK or ALSA layer). For the
+AppImage:
+
+```
+chmod +x LYNX-*.AppImage
+./LYNX-*.AppImage
+```
+
+Some distributions need libfuse2 to run AppImages (`libfuse2t64` on Ubuntu 24.04, `fuse2` on Arch, `fuse-libs` on Fedora); otherwise
+use the `.tar.gz`: extract it and run `./install.sh`, which installs LYNX for your user under `~/.local` with a menu
+entry, an icon and the `.lynx` file type (`./install.sh --uninstall` removes it again).
+
+### Platform notes
+
+| | Windows | macOS | Linux |
+|---|---|---|---|
+| Plugin formats | VST3, CLAP, VST2 | VST3, CLAP, Audio Units | VST3, CLAP, LV2 |
+| Audio drivers | Windows Audio (WASAPI), DirectSound, ASIO, built-in LYNX ASIO driver | Core Audio | ALSA, JACK (PipeWire via `pipewire-jack`) |
+| Out-of-process plugin sandbox | optional | – | – |
+| FL Studio integration (factory samples, plugin database) | FL Studio installation | FL Studio app bundle is looked for (untested) | Windows FL Studio under Wine (`~/.wine` or `$WINEPREFIX`) |
+| Settings folder | `%APPDATA%\LYNX` | `~/Library/Application Support/LYNX` | `~/.config/LYNX` (`$XDG_CONFIG_HOME`) |
+
+Opening FL Studio projects (`.flp`) works on every OS; the FL Studio integration only adds FL's own samples and plugin
+paths when an installation is found.
 
 On first start a short setup wizard (skippable; *Options > Setup wizard* reopens it) picks the language, tests the audio
 device and lists the plugin folders — the standard VST3/CLAP folders plus the ones FL Studio uses on the same PC — and
@@ -253,7 +301,8 @@ plugin database) and find samples in FL's folders; a plugin LYNX doesn't know ye
 
 ## Command line
 
-`LYNX.exe` also runs headless, which is how everything is verified without opening windows:
+`LYNX.exe` also runs headless, which is how everything is verified without opening windows. On macOS and Linux the
+binary is `LYNX` (`/Applications/LYNX.app/Contents/MacOS/LYNX` on macOS); the options are the same:
 
 ```
 LYNX.exe project.lynx                          open a project (.lynx, .flp or .mid)
@@ -304,6 +353,31 @@ cmake -B build -G "Visual Studio 17 2022" -A x64
 cmake --build build --config Release
 ```
 
+### Linux
+
+Ubuntu 24.04 dependencies:
+
+```
+sudo apt install build-essential cmake ninja-build pkg-config libasound2-dev libjack-jackd2-dev libx11-dev \
+  libxrandr-dev libxinerama-dev libxcursor-dev libxext-dev libxcomposite-dev libfreetype-dev libfontconfig1-dev libgl-dev
+```
+
+```
+cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release
+cmake --build build
+```
+
+### macOS
+
+Needs the Xcode command line tools (`xcode-select --install`), CMake and Ninja (e.g. `brew install cmake ninja`).
+
+```
+cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_OSX_ARCHITECTURES="arm64;x86_64"
+cmake --build build
+```
+
+`CMAKE_OSX_ARCHITECTURES="arm64;x86_64"` produces a universal app; leave it out to build for the current Mac only.
+
 ### Core tests (any C++20 compiler, no JUCE)
 
 ```
@@ -360,7 +434,8 @@ Built with [JUCE](https://juce.com), [CLAP](https://github.com/free-audio/clap),
 
 Free code signing provided by [SignPath.io](https://about.signpath.io), certificate by
 [SignPath Foundation](https://signpath.org). *(Pending approval: until the application is accepted, release
-binaries are not signed.)*
+binaries are not signed.)* This covers the Windows binaries. The macOS app has an ad-hoc signature only (no Apple
+Developer ID, not notarized); Linux packages are not signed.
 
 - Release binaries are built only from this repository by GitHub Actions
   ([`.github/workflows/release.yml`](.github/workflows/release.yml)); nothing built on a personal machine is signed.

+ 14 - 1
website/README.md

@@ -1,8 +1,21 @@
 # lynx-share.com
 
 The project website: a single static page (`index.html`) plus `assets/`.
-The download buttons read the newest GitHub release at runtime, so a new release needs no redeploy.
+The download buttons read the GitHub releases at runtime, so a new release needs no redeploy.
 
+- **Download section (Windows / macOS / Linux):** the script detects the visitor's OS (`navigator.userAgentData.platform`,
+  then `navigator.platform` / `userAgent`; a touch "Mac" is treated as iPadOS) and shows "Download for <OS>" plus that
+  OS's second format, with the other platforms as links below. Phones, tablets, ChromeOS and unknown systems get all
+  three platforms with no "for your OS" claim. `?os=win|mac|linux|any` forces a platform (testing, screenshots).
+- **Asset matching** (`DL` in the script) runs over `/releases?per_page=10`; for each OS and format the newest
+  non-draft release with a matching file wins, so platforms missing from the latest release fall back to older ones
+  and releases up to 0.1.7 (Windows only) still work:
+  Windows `/setup.*\.exe$/i` (fallback `/\.exe$/i`) and `/windows.*\.zip$/i`; macOS `/macos.*\.dmg$/i` (fallback
+  `/\.dmg$/i`); Linux `/\.AppImage$/i` and `/linux.*\.tar\.gz$/i`. Anything unresolved, and every button without JS
+  or when the API fails, links to `releases/latest`. The nav/hero `.dl-link` buttons go to the detected OS's main
+  file (or to `#download` when no OS was detected).
+- The multi-platform download section needs **one deploy** once v0.1.8-alpha (the first release with macOS and Linux
+  files) is published; after that, new releases again need no redeploy.
 - Screenshots come from LYNX's own showcase project (`LYNX.exe --showcase Demo.lynx`, then
   `LYNX.exe --snapshot <prefix> Demo.lynx` with `LYNX_SNAPSHOT_SIZE=1920x1080`), never from Image-Line demo projects.
 - `assets/media/demo.mp3` is `LYNX.exe --export Demo.lynx demo.wav`; `lynx-tour.mp4` is a slideshow of the

+ 105 - 24
website/index.html

@@ -4,7 +4,7 @@
 <meta charset="utf-8">
 <meta name="viewport" content="width=device-width, initial-scale=1">
 <title>LYNX — a lightweight DAW with the FL Studio workflow</title>
-<meta name="description" content="LYNX is a free, open-source, lightweight DAW for Windows with the FL Studio workflow: Channel Rack, Piano Roll, Playlist and Mixer. Opens .flp projects. C++20 + JUCE 8.">
+<meta name="description" content="LYNX is a free, open-source, lightweight DAW for Windows, macOS and Linux with the FL Studio workflow: Channel Rack, Piano Roll, Playlist and Mixer. Opens .flp projects. C++20 + JUCE 8.">
 <meta property="og:title" content="LYNX — a lightweight DAW with the FL Studio workflow">
 <meta property="og:description" content="Free and open source. Channel Rack, Piano Roll, Playlist and Mixer, built to run well on any PC. Opens FL Studio projects.">
 <meta property="og:image" content="https://lynx-share.com/assets/img/hero.webp?v=0.1.7">
@@ -73,7 +73,7 @@ nav .wrap{display:flex;align-items:center;gap:28px;height:68px}
 .grid-bg{position:absolute;inset:0;z-index:0;background-image:linear-gradient(var(--line) 1px,transparent 1px),linear-gradient(90deg,var(--line) 1px,transparent 1px);background-size:56px 56px;mask-image:radial-gradient(ellipse 70% 60% at 50% 30%,#000 10%,transparent 70%);-webkit-mask-image:radial-gradient(ellipse 70% 60% at 50% 30%,#000 10%,transparent 70%);opacity:.35}
 .hero .wrap{position:relative;z-index:2;text-align:center}
 .pill{display:inline-flex;align-items:center;gap:8px;padding:6px 14px 6px 8px;border:1px solid var(--line);border-radius:99px;background:rgba(24,26,33,.7);backdrop-filter:blur(6px);font-size:13px;color:var(--muted)}
-.pill b{background:var(--red);color:#fff;border-radius:99px;padding:2px 9px;font-size:11px;letter-spacing:.05em}
+.pill b{background:var(--red);color:#fff;border-radius:99px;padding:2px 9px;font-size:11px;letter-spacing:.05em;white-space:nowrap}
 .pill .dot{width:7px;height:7px;border-radius:50%;background:var(--green);box-shadow:0 0 0 0 rgba(61,220,132,.6);animation:pulse 2s infinite}
 @keyframes pulse{70%{box-shadow:0 0 0 8px rgba(61,220,132,0)}100%{box-shadow:0 0 0 0 rgba(61,220,132,0)}}
 .hero h1{font-size:clamp(44px,8vw,96px);margin:26px auto 18px;max-width:14ch;font-weight:700}
@@ -273,6 +273,18 @@ input[type=range]{accent-color:var(--red);width:130px}
 @keyframes grow{0%{width:0;height:0;opacity:1}100%{width:1400px;height:1400px;opacity:0}}
 .req{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin-top:30px}
 .req span{font-size:12px;border:1px solid var(--line);border-radius:99px;padding:5px 12px;color:var(--muted);background:rgba(0,0,0,.25)}
+.dl .btn small{font-weight:500;font-size:12px;opacity:.75}
+.dl-hint{max-width:640px;margin:0 auto 20px;font-size:13px;line-height:1.6;color:var(--muted);display:grid;gap:6px}
+.dl-hint:empty{display:none}
+.dl-hint b{color:var(--text);font-weight:600}
+.dl-hint code,.dl-plat code{font:500 12px "JetBrains Mono",monospace;background:rgba(0,0,0,.35);border:1px solid var(--line);border-radius:5px;padding:1px 6px;color:#c9ccd4;overflow-wrap:anywhere;display:inline-block;max-width:100%;vertical-align:middle}
+.dl-other{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:8px;margin:0 auto 22px;font-size:13px;color:var(--dim)}
+.dl-other a{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--line);border-radius:99px;padding:4px 12px;background:rgba(255,255,255,.03);color:var(--muted);transition:color .2s,border-color .2s}
+.dl-other a:hover{color:var(--text);border-color:var(--dim)}
+.dl-other a b{font-weight:600;color:#c9ccd4}
+.dl .cta .btn small{white-space:nowrap}
+@media (max-width:560px){.dl .cta .btn{white-space:normal;flex-wrap:wrap;justify-content:center;text-align:center;row-gap:2px}}
+.dl-plat{font-size:12px;color:var(--dim);margin:14px auto 0;max-width:620px}
 
 /* open source */
 .os{display:grid;grid-template-columns:1fr 1fr;gap:40px;align-items:center}
@@ -377,7 +389,7 @@ html.shot .ft,html.shot .cl,html.shot .cl-vh,html.shot .cl-alt{opacity:1!importa
     </div>
     <div class="navbtns">
       <button class="lang" id="lang" aria-label="Language">PT</button>
-      <a class="btn btn-red btn-sm dl-link" href="https://github.com/Ka1-S/LYNX/releases"><span data-i18n="nav.download">Download</span></a>
+      <a class="btn btn-red btn-sm dl-link" href="https://github.com/Ka1-S/LYNX/releases/latest"><span data-i18n="nav.download">Download</span></a>
     </div>
   </div>
 </nav>
@@ -387,13 +399,13 @@ html.shot .ft,html.shot .cl,html.shot .cl-vh,html.shot .cl-alt{opacity:1!importa
   <div class="grid-bg"></div>
   <canvas id="waves"></canvas>
   <div class="wrap">
-    <a class="pill fade-up" href="https://github.com/Ka1-S/LYNX" style="animation-delay:.1s"><b class="ver-tag">ALPHA</b><span class="dot"></span><span data-i18n="hero.pill">Free &amp; open source · Windows 10/11</span></a>
+    <a class="pill fade-up" href="https://github.com/Ka1-S/LYNX" style="animation-delay:.1s"><b class="ver-tag">ALPHA</b><span class="dot"></span><span data-i18n="hero.pill">Free &amp; open source · Windows · macOS · Linux</span></a>
     <h1 id="h1" data-i18n-words="hero.title">A lightweight DAW, fully open source.</h1>
     <p class="lead fade-up" style="animation-delay:.7s" data-i18n="hero.lead">LYNX is a lightweight, fully open-source DAW with the FL Studio workflow you already know — Channel Rack, Piano Roll, Playlist and Mixer — built in modern C++ to run smoothly on any PC. It even opens your .flp projects.</p>
     <div class="cta fade-up" style="animation-delay:.9s">
-      <a class="btn btn-red dl-link" href="https://github.com/Ka1-S/LYNX/releases">
-        <svg viewBox="0 0 24 24" fill="currentColor"><path d="M3 5.5l7.4-1v7.1H3V5.5zm0 13l7.4 1v-7H3v6zm8.2 1.1L21 21v-8.4h-9.8v7zm0-15.2v7.2H21V3l-9.8 1.4z"/></svg>
-        <span data-i18n="cta.download">Download for Windows</span>
+      <a class="btn btn-red dl-link" href="https://github.com/Ka1-S/LYNX/releases/latest">
+        <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.4"><path d="M12 3v12m0 0l-5-5m5 5l5-5M4 21h16"/></svg>
+        <span class="dl-label">Download</span>
       </a>
       <a class="btn btn-ghost" href="https://github.com/Ka1-S/LYNX">
         <svg viewBox="0 0 24 24" fill="currentColor"><path d="M12 .5a12 12 0 00-3.8 23.4c.6.1.8-.3.8-.6v-2.1c-3.3.7-4-1.6-4-1.6-.6-1.4-1.4-1.8-1.4-1.8-1-.7.1-.7.1-.7 1.2.1 1.8 1.2 1.8 1.2 1 1.8 2.8 1.3 3.5 1 .1-.8.4-1.3.7-1.6-2.7-.3-5.5-1.3-5.5-6 0-1.2.5-2.3 1.2-3.1-.1-.4-.5-1.6.1-3.2 0 0 1-.3 3.3 1.2a11.5 11.5 0 016 0C17.3 4.6 18.3 5 18.3 5c.7 1.6.2 2.8.1 3.2.8.8 1.2 1.9 1.2 3.1 0 4.6-2.8 5.6-5.5 5.9.4.4.8 1.1.8 2.2v3.3c0 .3.2.7.8.6A12 12 0 0012 .5z"/></svg>
@@ -556,13 +568,15 @@ html.shot .ft,html.shot .cl,html.shot .cl-vh,html.shot .cl-alt{opacity:1!importa
       <i class="ring"></i><i class="ring" style="animation-delay:-2s"></i><i class="ring" style="animation-delay:-4s"></i>
       <div class="eyebrow" style="position:relative">// download</div>
       <h2 style="position:relative" data-i18n="dl.title">Start making music.</h2>
-      <p style="position:relative" data-i18n="dl.lead">A per-user installer (no admin rights) or a portable zip. No account, no subscription.</p>
-      <div class="cta" style="position:relative">
-        <a class="btn btn-red dl-link" id="dlExe" href="https://github.com/Ka1-S/LYNX/releases"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.4"><path d="M12 3v12m0 0l-5-5m5 5l5-5M4 21h16"/></svg><span data-i18n="dl.exe">Download the installer</span></a>
-        <a class="btn btn-ghost" id="dlZip" href="https://github.com/Ka1-S/LYNX/releases"><span data-i18n="dl.zip">Portable (.zip)</span></a>
+      <p style="position:relative" data-i18n="dl.lead">For Windows, macOS and Linux. No account, no subscription.</p>
+      <div class="cta" style="position:relative" id="dlCta">
+        <a class="btn btn-red" href="https://github.com/Ka1-S/LYNX/releases/latest"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.4"><path d="M12 3v12m0 0l-5-5m5 5l5-5M4 21h16"/></svg><span>Download</span></a>
       </div>
+      <div class="dl-hint" id="dlHint" style="position:relative"></div>
+      <div class="dl-other" id="dlOther" style="position:relative"><span>Windows · macOS · Linux</span></div>
       <div class="small" style="position:relative"><span class="ver-line">Latest release</span> · <a href="https://github.com/Ka1-S/LYNX/releases" data-i18n="dl.all">all releases &amp; checksums</a></div>
-      <div class="req" style="position:relative"><span>Windows 10 / 11 · 64-bit</span><span>ASIO · WASAPI</span><span>VST3 · CLAP</span><span data-i18n="dl.alpha">Alpha — expect rough edges</span></div>
+      <div class="req" style="position:relative"><span>Windows 10 / 11 · 64-bit</span><span data-i18n="dl.reqmac">macOS 11+ · Apple Silicon / Intel</span><span>Linux x86_64 · glibc 2.39+</span><span>VST3 · CLAP</span><span data-i18n="dl.alpha">Alpha — expect rough edges</span></div>
+      <div class="dl-plat" style="position:relative" data-i18n="dl.plat">Audio Units on macOS and LV2 on Linux. VST2 hosting, ASIO and the plugin sandbox are Windows-only.</div>
     </div>
     <p class="note" data-i18n="legal">LYNX is an independent project, not affiliated with or endorsed by Image-Line. FL Studio is a trademark of Image-Line Software.</p>
     <div class="policy" id="signing">
@@ -602,9 +616,9 @@ const $ = s => document.querySelector(s), $$ = s => [...document.querySelectorAl
 /* ---------- i18n ---------- */
 const PT = {
  'nav.features':'Recursos','nav.try':'Experimente','nav.media':'Vídeo','nav.gallery':'Galeria','nav.source':'Código aberto','nav.download':'Baixar',
- 'hero.pill':'Grátis e de código aberto · Windows 10/11','hero.title':'Uma DAW leve e|totalmente open-source.',
+ 'hero.pill':'Grátis e de código aberto · Windows · macOS · Linux','hero.title':'Uma DAW leve e|totalmente open-source.',
  'hero.lead':'LYNX é uma DAW leve e totalmente open-source, com o workflow do FL Studio que você já conhece — Channel Rack, Piano Roll, Playlist e Mixer — feita em C++ moderno para rodar liso em qualquer PC. Ela até abre seus projetos .flp.',
- 'cta.download':'Baixar para Windows','cta.github':'Ver no GitHub',
+ 'cta.github':'Ver no GitHub',
  'why.title':'Tudo que você precisa. Nada te atrasando.','why.lead':'Um motor sem travas que distribui canais e pistas do mixer pelos núcleos da CPU, pula canais parados e lê áudio longo direto do disco.',
  'stat.rt':'mais rápido que o tempo real — a demo de 46 s renderiza em 0,93 s','stat.plugins':'plugins nativos do FL Studio recriados ou convertidos na importação','stat.tests':'verificações automáticas a cada build','stat.free':'grátis para sempre, código aberto sob AGPL-3.0',
  'c1.t':'Leve','c1.p':'Grafo de áudio multithread, streaming do disco e interface leve. Roda até em notebook antigo.',
@@ -622,7 +636,8 @@ const PT = {
  'media.song':'“Demo” — a música de exemplo','media.songp':'124 BPM · kick, clap, reese bass, pad, pluck e supersaw. Clique na onda para pular.',
  'gal.title':'Escura, limpa, focada.','g.ws':'O espaço de trabalho completo','g.synth':'Synth de 3 osciladores embutido','g.eq':'EQ paramétrico de 7 bandas','g.auto':'Clipes de automação','g.mix':'Mixer com sends e sidechain',
  'os.title':'Feito às claras.','os.lead':'C++20 e JUCE 8. Cada recurso vem com testes, e cada comportamento do FL Studio que reproduzimos é documentado. Dê uma estrela, abra uma issue, mande um pull request.','os.star':'Estrela no GitHub',
- 'dl.title':'Comece a fazer música.','dl.lead':'Um instalador por usuário (sem admin) ou um zip portátil. Sem conta, sem assinatura.','dl.exe':'Baixar o instalador','dl.zip':'Portátil (.zip)','dl.all':'todas as versões e checksums','dl.alpha':'Alpha — pode ter arestas',
+ 'dl.title':'Comece a fazer música.','dl.lead':'Para Windows, macOS e Linux. Sem conta, sem assinatura.','dl.reqmac':'macOS 11+ · Apple Silicon / Intel',
+ 'dl.plat':'Audio Units no macOS e LV2 no Linux. Plugins VST2, ASIO e o isolamento de plugins são só do Windows.','dl.all':'todas as versões e checksums','dl.alpha':'Alpha — pode ter arestas',
  'legal':'LYNX é um projeto independente, sem afiliação ou endosso da Image-Line. FL Studio é marca registrada da Image-Line Software.',
  'sig.title':'Política de assinatura de código','sig.pending':'aguardando aprovação',
  'sig.p1':'Assinatura de código gratuita fornecida por <a href="https://about.signpath.io">SignPath.io</a>, certificado da <a href="https://signpath.org">SignPath Foundation</a>.',
@@ -661,7 +676,7 @@ function setLang(l){
   words(d['hero.title'] || EN['hero.title']);
   $('#lang').textContent = l==='pt' ? 'EN' : 'PT';
   try { localStorage.setItem('lynx-lang', l); } catch(e){}
-  renderPlugins(); renderFeatured(); renderClassics();
+  renderPlugins(); renderFeatured(); renderClassics(); renderDownload();
 }
 
 /* ---------- built-in plugins (docs/PLUGINS.md) ---------- */
@@ -810,19 +825,85 @@ $('#clTabs').addEventListener('click', e => { const b = e.target.closest('[data-
   $$('#clTabs .pl-f').forEach(x => x.classList.toggle('on', x===b));
   $$('#clGroups .cl-v').forEach(v => { v.hidden = clVendor!=='all' && clVendor!==v.dataset.v; if (!v.hidden){ v.classList.add('in'); clSeen.add(v.dataset.v); } }); });
 $('#clGroups').addEventListener('pointermove', e => { const c = e.target.closest('.cl'); if (!c) return; const r = c.getBoundingClientRect(); c.style.setProperty('--x',(e.clientX-r.left)+'px'); c.style.setProperty('--y',(e.clientY-r.top)+'px'); });
+/* ---------- download: visitor's OS + per-OS assets (resolved from the GitHub API below) ---------- */
+const RELEASES = 'https://github.com/Ka1-S/LYNX/releases/latest';
+// main = primary package, alt = second format; tests run on asset names, newest release with a match wins
+const DL = {
+  win:  {name:'Windows', main:{re:[/setup.*\.exe$/i, /\.exe$/i], en:'Installer', pt:'Instalador', ext:'.exe'},
+         alt:{re:[/windows.*\.zip$/i], en:'Portable', pt:'Portátil', ext:'.zip'}},
+  mac:  {name:'macOS', main:{re:[/macos.*\.dmg$/i, /\.dmg$/i], en:'Universal', pt:'Universal', ext:'.dmg'}},
+  linux:{name:'Linux', main:{re:[/\.AppImage$/i], en:'AppImage', pt:'AppImage', ext:''},
+         alt:{re:[/linux.*\.tar\.gz$/i], en:'Archive', pt:'Arquivo', ext:'.tar.gz'}}
+};
+const dlUrl = {};   // 'win.main' -> browser_download_url
+function detectOS(){
+  const q = new URLSearchParams(location.search).get('os');   // ?os=win|mac|linux|any (testing)
+  if (q) return DL[q] ? q : '';
+  const uad = navigator.userAgentData, ua = navigator.userAgent || '';
+  const p = ((uad && uad.platform) || navigator.platform || '').toLowerCase();
+  if ((uad && uad.mobile) || /android|iphone|ipad|ipod/i.test(ua) || /android|iphone|ipad|ipod/.test(p)) return '';
+  if (/mac/.test(p) || /Macintosh|Mac OS X/.test(ua)) return navigator.maxTouchPoints > 1 ? '' : 'mac';   // touch "Mac" = iPadOS
+  if (/win/.test(p) || /Windows/.test(ua)) return 'win';
+  if (/cros/.test(p) || /CrOS/.test(ua)) return '';
+  if (/linux|x11|bsd/.test(p) || /Linux|X11/.test(ua)) return 'linux';
+  return '';
+}
+const userOS = detectOS();
+function renderDownload(){
+  const pt = lang==='pt';
+  const T = pt ? {for:n=>'Baixar para '+n, dl:'Baixar', other:'Outras plataformas:', more:'Mais formatos:'}
+               : {for:n=>'Download for '+n, dl:'Download', other:'Other platforms:', more:'More formats:'};
+  const H = pt ? {
+    win:'<b>Windows 10 ou 11, 64 bits.</b> O instalador não pede admin. O executável ainda não tem assinatura de código: se o SmartScreen avisar, clique em <i>Mais informações</i> → <i>Executar assim mesmo</i>.',
+    mac:'<b>macOS 11 ou mais novo, Apple Silicon ou Intel.</b> O app ainda não é notarizado pela Apple: arraste o LYNX para Aplicativos e, na primeira vez, clique com o botão direito nele → <i>Abrir</i> → <i>Abrir</i> (no macOS 15 ou mais novo: tente abrir uma vez e depois <i>Ajustes do Sistema → Privacidade e Segurança → Abrir Mesmo Assim</i>). Ou no Terminal: <code>xattr -dr com.apple.quarantine /Applications/LYNX.app</code>',
+    linux:'<b>Linux x86_64 com glibc 2.39 ou mais novo</b> (Ubuntu 24.04, Debian 13, Fedora 40 ou mais novos). AppImage: <code>chmod +x LYNX-*.AppImage</code> e execute (algumas distros precisam do libfuse2). O .tar.gz traz um <code>install.sh</code> que instala no seu usuário com atalho no menu.'
+  } : {
+    win:'<b>Windows 10 or 11, 64-bit.</b> The installer needs no admin rights. The executable is not code-signed yet: if SmartScreen warns, choose <i>More info</i> → <i>Run anyway</i>.',
+    mac:'<b>macOS 11 or newer, Apple Silicon or Intel.</b> The app is not notarized by Apple yet: drag LYNX to Applications, then the first time right-click it → <i>Open</i> → <i>Open</i> (on macOS 15 or newer: try to open it once, then <i>System Settings → Privacy &amp; Security → Open Anyway</i>). Or in Terminal: <code>xattr -dr com.apple.quarantine /Applications/LYNX.app</code>',
+    linux:'<b>Linux x86_64 with glibc 2.39 or newer</b> (Ubuntu 24.04, Debian 13, Fedora 40 or newer). AppImage: <code>chmod +x LYNX-*.AppImage</code>, then run it (some distros need libfuse2). The .tar.gz has an <code>install.sh</code> that installs for your user with a menu entry.'
+  };
+  const url = (os,k) => dlUrl[os+'.'+k] || RELEASES;
+  const fmt = f => (pt ? f.pt : f.en) + (f.ext ? ' (' + f.ext + ')' : '');
+  const icon = '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.4"><path d="M12 3v12m0 0l-5-5m5 5l5-5M4 21h16"/></svg>';
+  const chip = (os,k) => `<a href="${url(os,k)}"><b>${DL[os].name}</b>${fmt(DL[os][k])}</a>`;
+  const others = Object.keys(DL).filter(o => o!==userOS);
+  let cta, hint, row;
+  if (userOS){
+    const d = DL[userOS];
+    cta = `<a class="btn btn-red" href="${url(userOS,'main')}">${icon}<span>${T.for(d.name)}</span><small>${fmt(d.main)}</small></a>`
+        + (d.alt ? `<a class="btn btn-ghost" href="${url(userOS,'alt')}"><span>${fmt(d.alt)}</span></a>` : '');
+    hint = `<div>${H[userOS]}</div>`;
+    row = `<span>${T.other}</span>` + others.flatMap(o => ['main','alt'].filter(k => DL[o][k]).map(k => chip(o,k))).join('');
+  } else {
+    // phone, tablet or unknown: every platform, no "for your OS" claim
+    cta = Object.keys(DL).map(o => `<a class="btn btn-ghost" href="${url(o,'main')}">${icon}<span>${DL[o].name}</span><small>${fmt(DL[o].main)}</small></a>`).join('');
+    hint = Object.keys(DL).map(o => `<div>${H[o]}</div>`).join('');
+    row = `<span>${T.more}</span>` + Object.keys(DL).filter(o => DL[o].alt).map(o => chip(o,'alt')).join('');
+  }
+  $('#dlCta').innerHTML = cta; $('#dlHint').innerHTML = hint; $('#dlOther').innerHTML = row;
+  // nav + hero buttons: the detected OS's main package, or the download section
+  $$('.dl-link').forEach(a => a.href = userOS ? url(userOS,'main') : '#download');
+  $$('.dl-label').forEach(e => e.textContent = userOS ? T.for(DL[userOS].name) : T.dl);
+}
 $('#lang').onclick = () => setLang(lang==='pt' ? 'en' : 'pt');
 setLang(lang);
 
 /* ---------- latest release from GitHub ---------- */
-fetch('https://api.github.com/repos/Ka1-S/LYNX/releases?per_page=5').then(r=>r.ok?r.json():null).then(rs=>{
-  if (!rs || !rs.length) return;
-  const r = rs.find(x=>!x.draft) || rs[0];
-  const exe = r.assets.find(a=>/setup.*\.exe$/i.test(a.name)) || r.assets.find(a=>/\.exe$/i.test(a.name)), zip = r.assets.find(a=>/\.zip$/i.test(a.name));
-  const v = r.tag_name.replace(/^v/,'');
+fetch('https://api.github.com/repos/Ka1-S/LYNX/releases?per_page=10').then(r=>r.ok?r.json():null).then(rs=>{
+  if (!Array.isArray(rs) || !rs.length) return;
+  rs = rs.filter(x=>!x.draft); if (!rs.length) return;
+  const r = rs[0], v = r.tag_name.replace(/^v/,'');
   $$('.ver-line').forEach(e=>e.textContent = 'v'+v + (r.published_at ? ' · ' + new Date(r.published_at).toLocaleDateString(lang==='pt'?'pt-BR':'en') : ''));
   $$('.ver-tag').forEach(e=>e.textContent = v.toUpperCase());
-  if (exe) $$('.dl-link').forEach(a=>a.href = exe.browser_download_url);
-  if (zip) $('#dlZip').href = zip.browser_download_url;
+  // per OS and format: the newest release that has a matching file (releases up to 0.1.7 are Windows-only)
+  Object.keys(DL).forEach(os => ['main','alt'].forEach(k => {
+    const f = DL[os][k]; if (!f) return;
+    for (const re of f.re) for (const rel of rs){
+      const a = (rel.assets||[]).find(x => re.test(x.name));
+      if (a){ dlUrl[os+'.'+k] = a.browser_download_url; return; }
+    }
+  }));
+  renderDownload();
 }).catch(()=>{});
 
 /* ---------- nav + progress ---------- */
@@ -840,7 +921,7 @@ addEventListener('scroll', onScroll, {passive:true}); onScroll();
 screen.addEventListener('pointermove', e => { const r = screen.getBoundingClientRect(); screen.style.setProperty('--mx', (e.clientX-r.left)+'px'); screen.style.setProperty('--my', (e.clientY-r.top)+'px'); });
 
 /* ---------- marquee ---------- */
-const items = ['Channel Rack','Piano Roll','Playlist','Mixer','Sidechain','VST3 · CLAP','ASIO','Automation clips','.flp import','Disk streaming','Parametric EQ','Time-stretch','MIDI controllers','Stems export','Sampler','3x Osc synth'];
+const items = ['Channel Rack','Piano Roll','Playlist','Mixer','Sidechain','VST3 · CLAP','ASIO','Automation clips','.flp import','Disk streaming','Parametric EQ','Time-stretch','MIDI controllers','Stems export','Sampler','3x Osc synth','Windows · macOS · Linux'];
 const half = items.map(t=>`<span>${t}</span>`).join(''); $('#track').innerHTML = half + half;
 
 /* ---------- reveal + counters ---------- */