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
96 changes: 96 additions & 0 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
name: Publish download website (GitHub Pages)

on:
pull_request:
paths:
- 'site/**'
- 'docs/LANDING-PAGE-DEPLOYMENT.md'
- '.github/workflows/pages.yml'
push:
branches: [main]
paths:
- 'site/**'
- 'docs/LANDING-PAGE-DEPLOYMENT.md'
- '.github/workflows/pages.yml'
workflow_dispatch:

concurrency:
group: arsoncomp-pages-${{ github.ref }}
cancel-in-progress: true

permissions:
contents: read

jobs:
validate:
name: Verify site, downloads and real screenshots
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Validate static site links and screenshots
run: python3 site/scripts/validate_site.py
- name: Check native JavaScript syntax
run: node --check site/app.js
- name: Smoke-test static HTTP response
run: |
set -euo pipefail
python3 -m http.server 8765 --bind 127.0.0.1 --directory site >/tmp/arson-site-http.log 2>&1 &
server_pid=$!
trap 'kill "$server_pid" 2>/dev/null || true' EXIT
for i in 1 2 3 4 5; do
if curl --fail --silent --output /dev/null http://127.0.0.1:8765/; then break; fi
sleep 1
done
curl --fail --silent --show-error http://127.0.0.1:8765/ | grep -Fq 'Download for Windows'
curl --fail --silent --show-error --output /dev/null http://127.0.0.1:8765/assets/arsoncomp-full.png
curl --fail --silent --show-error --output /dev/null http://127.0.0.1:8765/styles.css
echo 'Static HTTP delivery PASS'
- name: Capture real desktop and mobile browser previews
run: |
set -euo pipefail
browser="$(command -v google-chrome || command -v chromium || true)"
if [[ -z "$browser" ]]; then
echo "Chrome not available on runner; static tests still passed"
exit 0
fi
mkdir -p preview
python3 -m http.server 8766 --bind 127.0.0.1 --directory site >/tmp/arson-preview.log 2>&1 &
pid=$!
trap 'kill "$pid" 2>/dev/null || true' EXIT
sleep 2
"$browser" --headless --no-sandbox --disable-gpu --hide-scrollbars --run-all-compositor-stages-before-draw --virtual-time-budget=9000 --screenshot=preview/desktop-1440.png --window-size=1440,5200 http://127.0.0.1:8766/ >/tmp/arson-chrome.log 2>&1
"$browser" --headless --no-sandbox --disable-gpu --hide-scrollbars --run-all-compositor-stages-before-draw --virtual-time-budget=9000 --screenshot=preview/mobile-390.png --window-size=390,5200 http://127.0.0.1:8766/ >>/tmp/arson-chrome.log 2>&1
test -s preview/desktop-1440.png
test -s preview/mobile-390.png
- name: Upload website visual QA
if: always()
uses: actions/upload-artifact@v4
with:
name: ArSonComp-M9-Landing-Preview
path: preview/*.png
if-no-files-found: warn
retention-days: 7

deploy:
name: Deploy static website
if: github.event_name != 'pull_request'
needs: validate
runs-on: ubuntu-latest
permissions:
contents: read
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- uses: actions/checkout@v4
- name: Configure GitHub Pages
uses: actions/configure-pages@v5
- name: Upload site root only
uses: actions/upload-pages-artifact@v4
with:
path: site
- name: Publish to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# ArSonComp

**[Official download website](https://masarray.github.io/arson-comp/)** · [Windows / macOS / Linux installers](https://masarray.github.io/arson-comp/#downloads) · [Source and releases](https://github.com/masarray/arson-comp/releases)

**Real-time dynamics for vocals, music, podcasts, streaming, and live mixing.**

[![Cross-platform packages](https://github.com/masarray/arson-comp/actions/workflows/release-installers.yml/badge.svg)](https://github.com/masarray/arson-comp/actions/workflows/release-installers.yml)
Expand Down
37 changes: 37 additions & 0 deletions docs/LANDING-PAGE-DEPLOYMENT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# ArSonComp landing page — GitHub Pages and Cloudflare Pages

This is the production-ready, framework-free marketing/download site under site/.
There is no npm install, bundler, Google Fonts request, analytics SDK or web API.
It uses **real original M7 JUCE screenshots**, copied by their Git blob SHA from docs/images/ to site/assets/. The source release is **v0.2.0-rc.1** and must not be called stable before actual host/hardware gates.

## GitHub Pages — automatic deployment
1. Repository: Settings → Pages → Build and deployment → **Source: GitHub Actions**.
2. The workflow .github/workflows/pages.yml runs on pushes to main that change site/, and on manual dispatch; it validates files and publishes only site/.
3. Project URL: https://masarray.github.io/arson-comp/ (once Pages deployment succeeds).
4. A pull request runs light static validation only; it does not publish the draft. It does not trigger heavy audio engine tests.
5. Relative assets (./styles.css, ./assets/...) work at both /arson-comp/ and a custom-domain root. Do not put a Cloudflare custom domain into a GitHub Pages CNAME unless intentionally changing GitHub Pages itself.

## Cloudflare Pages — preferred primary site
1. Cloudflare dashboard → Workers & Pages → Create → **Pages** → Connect to Git.
2. Select GitHub masarray/arson-comp and set **production branch = main**.
3. Framework preset = **None**; Build command = **exit 0**; Build output directory = **site**; Root directory = repository root.
4. Deploy. A *.pages.dev preview/production URL is created; connect your own domain under Pages → Custom domains when the domain is chosen.
5. Cloudflare automatically previews PR branches and redeploys main after merges.
6. site/_headers ships security/cache headers for Cloudflare Pages. GitHub Pages ignores _headers; both hosts still use the same static assets.

Do not add a guessed CNAME or domain. Cloudflare Pages project/domain connection requires the user's Cloudflare account authorization and DNS control. The Git repository is ready, but it is not evidence that a Cloudflare deployment has been performed.

## Content maintenance
- Official release assets and names are pinned in site/index.html. The OS-aware main CTA in site/app.js uses the same Windows/macOS release files. **When a new public release is published, update the links in both files**, then run site/scripts/validate_site.py. This prevents silent downloads pointing to a nonexistent "latest" installer.
- Keep the Linux DEB and portable paths distinct; autodetection must not force Ubuntu DEB onto arbitrary Linux.
- v0.2.0-rc.1 macOS PKG is ad-hoc signed and not notarized. Do not remove this caveat.
- Keep all 5 actual product snapshots in site/assets, not AI renderings.
- No claims of zero *hardware* latency, zero xruns or parity with other commercial compressors.

## Lightweight tests
Run: python3 site/scripts/validate_site.py
Run: node --check site/app.js
No audio plugin compilation is needed for website-only commits.

## Deployment credentials and custom domains
GitHub Pages uses built-in GITHUB_TOKEN with pages:write/id-token:write. Cloudflare native Git integration uses the Cloudflare app connection (no API token stored in repo). Configure a primary custom domain via Cloudflare Pages dashboard later; do not invent DNS values in source.
Empty file added site/.nojekyll
Empty file.
1 change: 1 addition & 0 deletions site/404.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Page not found · ArSonComp</title><link rel="stylesheet" href="./styles.css"></head><body><main class="shell" style="padding:18vh 0"><a class="brand" href="./"><span class="brand-word">ArSon<span>Comp</span></span></a><h1 style="font-weight:500;font-size:clamp(2rem,5vw,4rem)">This page is off the track.</h1><p style="color:#aaa">The page you're looking for doesn't exist.</p><a class="button button-primary" href="./">Back to ArSonComp</a></main></body></html>
9 changes: 9 additions & 0 deletions site/_headers
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/*
X-Content-Type-Options: nosniff
Referrer-Policy: strict-origin-when-cross-origin
X-Frame-Options: DENY
Permissions-Policy: camera=(), microphone=(), geolocation=(), payment=()
Content-Security-Policy: default-src 'self'; script-src 'self'; style-src 'self'; img-src 'self' data:; font-src 'self'; object-src 'none'; base-uri 'self'; frame-ancestors 'none'; form-action 'none'; upgrade-insecure-requests

/assets/*
Cache-Control: public, max-age=86400
65 changes: 65 additions & 0 deletions site/app.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
"use strict";
(() => {
const latest = "https://github.com/masarray/arson-comp/releases/download/v0.2.0-rc.1/";
const downloads = {
windows: latest + "ArSonComp-0.2.0-Windows-x64-Setup.exe",
macos: latest + "ArSonComp-0.2.0-macOS-Universal-AdHoc.pkg"
};
const osName = (navigator.userAgentData && navigator.userAgentData.platform) ||
navigator.platform || navigator.userAgent || "";
const detect = /Win/i.test(osName) ? "windows" :
(/Mac|iPad|iPhone/i.test(osName) ? "macos" :
(/Linux|X11/i.test(osName) ? "linux" : ""));
const primary = document.getElementById("primary-download");
const primaryLabel = document.getElementById("primary-download-label");
if (detect === "windows" || detect === "macos") {
primary.href = downloads[detect];
primaryLabel.textContent = detect === "windows" ? "Download for Windows" : "Download for macOS";
} else if (detect === "linux") {
primaryLabel.textContent = "Choose your Linux download";
}
const chosenCard = detect && document.getElementById("download-" + detect);
if (chosenCard) chosenCard.classList.add("recommended");

const views = {
full: {src:"./assets/arsoncomp-full.png",alt:"Full ArSonComp dynamics interface",width:612,height:580,caption:"Full Dynamics — transfer graph, gain reduction and primary controls.",counter:"01 / 04"},
sidechain: {src:"./assets/arsoncomp-sidechain.png",alt:"ArSonComp sidechain filter and detector panel",width:580,height:540,caption:"Sidechain — shape the detector with focused controls.",counter:"02 / 04"},
mini: {src:"./assets/arsoncomp-mini.png",alt:"ArSonComp compact MINI editor",width:612,height:320,caption:"MINI — key controls in a compact live workspace.",counter:"03 / 04"},
presets: {src:"./assets/arsoncomp-presets.png",alt:"ArSonComp factory preset browser",width:612,height:580,caption:"Factory presets — a fast starting point for every session.",counter:"04 / 04"}
};
const tabs = Array.from(document.querySelectorAll('.gallery-tabs [role="tab"]'));
const panel = document.getElementById("gallery-panel");
const image = document.getElementById("gallery-image");
const caption = document.getElementById("gallery-caption");
const counter = document.getElementById("gallery-counter");
function select(tab, focus) {
const item = views[tab.dataset.view];
if (!item) return;
tabs.forEach(b => {
const active = b === tab;
b.setAttribute("aria-selected", String(active));
b.tabIndex = active ? 0 : -1;
});
panel.setAttribute("aria-labelledby", tab.id);
image.src = item.src;
image.alt = item.alt;
image.width = item.width;
image.height = item.height;
caption.textContent = item.caption;
counter.textContent = item.counter;
if (focus) tab.focus();
}
tabs.forEach((tab, index) => {
tab.addEventListener("click", () => select(tab, false));
tab.addEventListener("keydown", e => {
let next = index;
if (e.key === "ArrowRight" || e.key === "ArrowDown") next = (index + 1) % tabs.length;
else if (e.key === "ArrowLeft" || e.key === "ArrowUp") next = (index + tabs.length - 1) % tabs.length;
else if (e.key === "Home") next = 0;
else if (e.key === "End") next = tabs.length - 1;
else return;
e.preventDefault();
select(tabs[next], true);
});
});
})();
Binary file added site/assets/arsoncomp-full.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 site/assets/arsoncomp-mini.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 site/assets/arsoncomp-minimum.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 site/assets/arsoncomp-presets.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 site/assets/arsoncomp-sidechain.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions site/favicon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading