mirror of
https://github.com/isod89/clipper-fm1.git
synced 2026-12-05 12:24:32 +01:00
Clipper 1.0 on GitHub in English
- QUICKSTART.md: the quick start in English (install from the browser or the source, the FM-1's pages, HYBRID, the editor, the hardware test, going back); the README points to it first, the French guide stays. - Installer page: English by default (the button switches, the choice remembered), not the browser's language. - Release notes (docs/release-1.0.md): English only. - PUBLISH-GITHUB.bat (was PUBLIER-GITHUB.bat) and its messages in English. - DEMARRAGE-RAPIDE-FR: the editor's tabs are Wavetables and Backup now. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RDUenQzjQ4Kk2jQVG85bwq
This commit is contained in:
9 files changed
+121
-61
No files matched your search
+2
-2
@@ -122,9 +122,9 @@ starts, recovery needs [FM-1-transporter](https://github.com/kurogedelic/FM-1-tr
|
||||
|
||||
## Publishing a release on GitHub
|
||||
|
||||
`PUBLIER-GITHUB.bat` (Windows, after `INSTALL-CLIPPER.bat` has built the firmware) publishes from the CLIPPER folder with
|
||||
`PUBLISH-GITHUB.bat` (Windows, after `INSTALL-CLIPPER.bat` has built the firmware) publishes from the CLIPPER folder with
|
||||
your own Git and GitHub CLI login: the source from `clipper-1.0.bundle` to `YOUR-NAME/clipper-fm1` (created if needed;
|
||||
an existing repository with another history stops it, nothing is forced on `main`), the tag and the pre-release
|
||||
`v1.0-experimental` (notes: `docs/release-1.0.md`, the `.fwsc` package and the demo WAV attached), and the installer and
|
||||
the editor (`build/clipper-site`) on GitHub Pages (branch `gh-pages`, replaced each time):
|
||||
`https://YOUR-NAME.github.io/clipper-fm1/webapp/installer/`. `PUBLIER-GITHUB.bat -Repo another-name` for another name.
|
||||
`https://YOUR-NAME.github.io/clipper-fm1/webapp/installer/`. `PUBLISH-GITHUB.bat -Repo another-name` for another name.
|
||||
@@ -196,7 +196,7 @@ Les autres boutons du panneau :
|
||||
|
||||
Un projet garde le PTCH, mais pas le patch modifié : exporte-le pour le garder.
|
||||
|
||||
Les autres panneaux de l'onglet **Sound** : **FMX patch** (les six opérateurs, le routage en grille, STORE dans la banque, fichiers `.clipper-fmx.json`), **FM6** (les banques DX7 `.syx`), **MOD SEQ** (les quatre pistes à dessiner), **Tuning** (le système, la tonique, charger une gamme `.scl`), **Sound tools** (undo / redo, comparer, A / B, randomiser, ce qui a changé, l'enveloppe dessinée). Les onglets **Library**, **Samples** (samples et tables d'ondes) et **Projects** (sauvegarde complète) complètent.
|
||||
Les autres panneaux de l'onglet **Sound** : **FMX patch** (les six opérateurs, le routage en grille, STORE dans la banque, fichiers `.clipper-fmx.json`), **FM6** (les banques DX7 `.syx`), **MOD SEQ** (les quatre pistes à dessiner), **Tuning** (le système, la tonique, charger une gamme `.scl`), **Sound tools** (undo / redo, comparer, A / B, randomiser, ce qui a changé, l'enveloppe dessinée). Les onglets **Library**, **Wavetables** (tes tables d'ondes pour WAVE) et **Backup** (sauvegarde complète) complètent.
|
||||
|
||||
Pour essayer l'éditeur sans la FM-1, ouvre `web/editor.html?mock=1` dans Chrome.
|
||||
|
||||
|
||||
@@ -1,8 +0,0 @@
|
||||
@echo off
|
||||
title Clipper - publier sur GitHub
|
||||
rem Publie Clipper 1.0 (experimental) sur ton GitHub : le code, la pre-release, l'installateur (GitHub Pages).
|
||||
rem Lance d'abord INSTALL-CLIPPER.bat (il compile le firmware que la release et l'installateur publient).
|
||||
rem Usage: PUBLIER-GITHUB.bat (le depot TON-NOM/clipper-fm1)
|
||||
rem PUBLIER-GITHUB.bat -Repo autre-nom
|
||||
powershell -NoProfile -ExecutionPolicy Bypass -File "%~dp0tools\publish_github.ps1" %*
|
||||
pause
|
||||
@@ -0,0 +1,8 @@
|
||||
@echo off
|
||||
title Clipper - publish on GitHub
|
||||
rem Publishes Clipper 1.0 (experimental) on your GitHub: the source, the pre-release, the installer (GitHub Pages).
|
||||
rem Run INSTALL-CLIPPER.bat first (it builds the firmware the release and the installer publish).
|
||||
rem Usage: PUBLISH-GITHUB.bat (the repository YOUR-NAME/clipper-fm1)
|
||||
rem PUBLISH-GITHUB.bat -Repo another-name
|
||||
powershell -NoProfile -ExecutionPolicy Bypass -File "%~dp0tools\publish_github.ps1" %*
|
||||
pause
|
||||
@@ -0,0 +1,68 @@
|
||||
# Clipper — quick start (1.0, experimental)
|
||||
|
||||
**Clipper** is a **synthesizer** firmware for the M-VAVE FM-1: one instrument, like the original firmware, Felucca or Baudgirl's FM-1+VA. It is not a groovebox: no tracks, no drum machine, no song mode, no built-in samples. It keeps SLOOP's engines, effects, arpeggiator, step sequencer, USB audio and MIDI, and adds **HYBRID** (three oscillators, two filters, a 16-slot matrix) and many more engines. Pitch bend, mod wheel, aftertouch and the sustain pedal work on every engine. *(En français : [DEMARRAGE-RAPIDE-FR.md](DEMARRAGE-RAPIDE-FR.md).)*
|
||||
|
||||
> **Version 1.0, EXPERIMENTAL.** This is an early, experimental release, and there is still a huge amount of work to do (see [What is left to do](README.md#what-is-left-to-do)). It passes its whole test suite on a computer, but it has run very little on a real FM-1: expect rough edges. **Before installing, make a backup** with the editor (Clipper's or SLOOP's, whichever is installed): the Backup tab (Projects → Backup in SLOOP or an older version) → *Save a backup*.
|
||||
|
||||
On the FM-1, Clipper shows its boot screen (**1.0 EXPERIMENTAL** under the logo), and HOME (held) → SYS → ABOUT reads **CLIPPER 1.0 EXP**.
|
||||
|
||||
## 1. Install
|
||||
|
||||
**Without building anything**: open the [installer page](https://isod89.github.io/clipper-fm1/webapp/installer/) in Chrome or Edge with the FM-1 on USB. Make a backup with the [online editor](https://isod89.github.io/clipper-fm1/webapp/editor/) first, then click **Install**. The firmware package is also attached to each [release](https://github.com/isod89/clipper-fm1/releases).
|
||||
|
||||
**From the source, on Windows**:
|
||||
|
||||
1. Close SLOOP's window if it is still running (not required, just clearer). Clipper lives in its own folder, `CLIPPER`, next to SLOOP's; nothing is shared between the two (Clipper's local pages are on port **8767**, SLOOP's on 8766).
|
||||
2. Double-click **`INSTALL-CLIPPER.bat`**. It uses the same tools as SLOOP (WSL MinUI-Build, the JieLi toolchain). The first time it copies the three SDK files from `..\SLOOP\build\deps\ac79`; if it cannot find them, copy SLOOP's `build\deps\ac79` folder into `CLIPPER\build\deps\`.
|
||||
3. The installer opens at http://localhost:8767/webapp/installer/ (Chrome or Edge, FM-1 on USB). Click **Install**.
|
||||
4. The FM-1 restarts on the **clipper** screen. Your SLOOP user presets and settings are still there.
|
||||
|
||||
Elsewhere than Windows: see [BUILDING.md](BUILDING.md).
|
||||
|
||||
## 2. On the FM-1
|
||||
|
||||
| | |
|
||||
| --- | --- |
|
||||
| **HOME** | The synth screen: the sound's name, its family, its number in the list, the engine and a scope. The four knobs play the sound's main controls. |
|
||||
| **PRESETS** | Every sound, one by one, factory and user presets. |
|
||||
| **ALGORITHM** | Jumps to the next family (PAD, BASS, LEAD, PLCK, KEYS, STAB, FX…). |
|
||||
| **FX, EDIT, ARP, GLO, SAVE** | A tap opens the pages; while one is held, the keys still play. FX pages: FX (sends), FILTER (and MODL, the filter model), INSERT, INSERT 2, DLY, DLY 2 (the delay's MODE), REVERB (TYPE: ROOM, PLATE, HALL, SHIMMER), CHORUS, EQ+COMP. EDIT: the engine's pages, MACROS, VOICE 1–3 (SPREAD on VOICE 3), the envelopes, LFOs and the 12-slot MATRIX. GLO: GLOBAL (tempo, swing, metronome, fine tune), MASTER, **TUNING**, SYSTEM (MIDI, sync, CPU / LATE / PEAK). SAVE: PRESETS, USER (your presets), TOOLS. |
|
||||
| **SEQ, SEL** | Held: SEQ shows the 16 steps on the keys, SEL the key and the chords. A tap opens their pages. |
|
||||
| **REC** | Records what you play into the pattern. Hold REC to clear the pattern. |
|
||||
| **MIDI** | Omni: every channel plays the synth. |
|
||||
|
||||
What you are playing is kept by the autosave across power cycles; save a sound you like as a **user preset** (SAVE → USER).
|
||||
|
||||
## 3. Playing HYBRID
|
||||
|
||||
- Turn **PRESETS** (or **ALGORITHM** to change family). HYBRID's sounds are spread over the families: **CLIPPER**, POLY PAD, STRINGS, VOX, GLASS PAD and DRONE (PAD); ACID, WOBBLE, REESE, FOLD BASS and 808 SUB (BASS); SYNC LEAD, HOOVER, CHIP LEAD and TRANCE (LEAD); PLUCK, SAW PLUCK, FM BELL, SPACE BEL and METAL (PLCK); FM KEYS (KEYS); BRASS (STAB); RISER and INIT (FX); and MOOG BASS, MOOG LEAD, LADDER PAD, CLIP WIDE, DARK PAD, ACID HARD, BRIGHT BEL and SOFT SYNC.
|
||||
- On **HOME** the four knobs play **CUT**, **RES**, **M1** and **M2**.
|
||||
- **EDIT**: CUT, RES, FENV (offsets on both filters), **PTCH** (the factory patch), and **M1 to M4**, four macros whose effect each patch decides. On CLIPPER, for example, M1 opens the filter and M2 widens the supersaws.
|
||||
- From a MIDI keyboard: pitch bend, mod wheel (vibrato on several patches), aftertouch, sustain, and M1 to M4 on CC 16 to 19. On every other engine, CC 16 to 19 play the four MACROS (BRITE, TIMBR, MOTN, SPACE).
|
||||
|
||||
## 4. The web editor
|
||||
|
||||
Open the [online editor](https://isod89.github.io/clipper-fm1/webapp/editor/) (or double-click `OPEN-EDITOR.bat`: http://localhost:8767/webapp/editor/), click **Connect**, then pick a sound. In the **Sound** tab, the **HYBRID patch** panel shows everything: oscillators, filters and routing, ENV2 and ENV3, LFO2 and LFO3 (tempo-synced if you want), the 16-slot matrix and the bend. With **live** ticked, every change is heard at once. **Export patch** and **Import patch** keep your sounds in `.clipper.json` files.
|
||||
|
||||
The other panels of the **Sound** tab: **FMX patch** (the six operators, the routing grid, STORE into the bank, `.clipper-fmx.json` files), **FM6** (DX7 `.syx` banks), **MOD SEQ** (the four lanes to draw), **Tuning** (the system, the root, load a `.scl` scale), **Sound tools** (undo / redo, compare, A / B, randomize, what changed, the envelope drawn). The **Library**, **Wavetables** (your own tables for WAVE) and **Backup** tabs complete it.
|
||||
|
||||
To try the editor without an FM-1, open `web/editor.html?mock=1` in Chrome.
|
||||
|
||||
## 5. The test that helps most: both cores and the CPU load
|
||||
|
||||
This decides how many voices Clipper can play. The FM-1 must be connected to the computer by USB, otherwise the CPU box shows the USB state instead.
|
||||
|
||||
1. After installing, hold HOME (the menu) → **SYS** → **ABOUT**: it should read **2 CORES**. If it reads **1 CORE**, please report it.
|
||||
2. Pick the **CLIPPER** sound with PRESETS, go to **GLO → SYSTEM**: the fourth box cycles through **CPU**, **LATE** and **PEAK**.
|
||||
3. Hold **8 notes** and note CPU and PEAK. Then MENU → SYS → **2ND CORE OFF** and measure again: the difference is what the second core brings. Set it back **ON**.
|
||||
4. Do the same with **POLY PAD**, **TRANCE**, an **FMX** sound (FMX EP) and **ENSEMBLE** (STRINGS).
|
||||
5. Then with 1.0's features: **SPREAD** at 127 (VOICE 3), the reverb on **SHIMMER** (REVERB → TYPE) and the delay on **TAPE** (DLY 2 → MODE), 8 notes. Turn **BRITE** and **SPACE** (EDIT → MACROS) while a chord is held, and change TYPE and MODE: no click should be heard.
|
||||
6. Save a user preset with some 1.0 settings, switch the FM-1 off and on, and load it again: the settings should be there.
|
||||
7. If PEAK stays under ~70 % and LATE does not climb, try a 12-voice build (**`INSTALL-CLIPPER.bat 12`**) with 12 notes, then 16.
|
||||
|
||||
Please report the numbers (with and without 2ND CORE) in the [Issues](https://github.com/isod89/clipper-fm1/issues), and anything odd: a crackling sound, a stuck note, a **FELUCCA CRASH** screen (photograph it: it stays 10 s), a strange screen.
|
||||
|
||||
## Going back
|
||||
|
||||
- **To SLOOP**: run `INSTALL-SLOOP.bat` from SLOOP's folder. A sound set to HYBRID plays another engine there.
|
||||
- **To the official firmware**: use the installer page ("Return to the official firmware (V15)"), after making a backup.
|
||||
@@ -3,7 +3,7 @@
|
||||
<p align="center"><b>A deep synthesizer firmware for the M-VAVE FM-1.</b><br>
|
||||
Free and open source (GPL-3.0). It grew out of <a href="https://github.com/isod89/sloop-fm1">SLOOP</a>, and like SLOOP it is based on <a href="https://github.com/hugelton/Felucca">Felucca</a> by Leo Kuroshita / Hügelton Instruments.</p>
|
||||
|
||||
<p align="center"><b><a href="https://isod89.github.io/clipper-fm1/webapp/installer/">Install it from the browser</a></b> · <a href="https://isod89.github.io/clipper-fm1/webapp/editor/">Editor</a> · <a href="https://github.com/isod89/clipper-fm1/releases">Releases</a> · <a href="DEMARRAGE-RAPIDE-FR.md">Démarrage rapide (français)</a> · <a href="BUILDING.md">Building</a> · <a href="web/EDITOR_PROTOCOL.md">Editor protocol</a> · <a href="docs/sloop/">SLOOP's manuals</a></p>
|
||||
<p align="center"><b><a href="https://isod89.github.io/clipper-fm1/webapp/installer/">Install it from the browser</a></b> · <a href="https://isod89.github.io/clipper-fm1/webapp/editor/">Editor</a> · <a href="https://github.com/isod89/clipper-fm1/releases">Releases</a> · <a href="QUICKSTART.md">Quick start</a> · <a href="DEMARRAGE-RAPIDE-FR.md">Démarrage rapide (français)</a> · <a href="BUILDING.md">Building</a> · <a href="web/EDITOR_PROTOCOL.md">Editor protocol</a> · <a href="docs/sloop/">SLOOP's manuals</a></p>
|
||||
|
||||
---
|
||||
|
||||
@@ -214,7 +214,7 @@ Pitch bend (±2 semitones, or the HYBRID patch's own range up to ±24), mod whee
|
||||
|
||||
**Without building anything**: open the [installer page](https://isod89.github.io/clipper-fm1/webapp/installer/) in Chrome or Edge with the FM-1 on USB, make a backup with the [editor](https://isod89.github.io/clipper-fm1/webapp/editor/) first, then click Install. The firmware package is also attached to each [release](https://github.com/isod89/clipper-fm1/releases).
|
||||
|
||||
**From the source**: on Windows, see **[DEMARRAGE-RAPIDE-FR.md](DEMARRAGE-RAPIDE-FR.md)**: `INSTALL-CLIPPER.bat` builds the firmware and opens the installer at `http://localhost:8767` (SLOOP uses 8766, so the two never get mixed up). Elsewhere, see [BUILDING.md](BUILDING.md).
|
||||
**From the source**: on Windows, see **[QUICKSTART.md](QUICKSTART.md)** (in French: [DEMARRAGE-RAPIDE-FR.md](DEMARRAGE-RAPIDE-FR.md)): `INSTALL-CLIPPER.bat` builds the firmware and opens the installer at `http://localhost:8767` (SLOOP uses 8766, so the two never get mixed up). Elsewhere, see [BUILDING.md](BUILDING.md).
|
||||
|
||||
Projects, user presets, samples and settings stay in the same flash places as SLOOP's. Going from SLOOP to Clipper keeps them; a sound on HYBRID plays another engine if you go back to SLOOP.
|
||||
|
||||
|
||||
+1
-13
@@ -19,7 +19,7 @@ SPREAD; the matrix grows to 12 slots with LFO 3 and the macros as sources; ENV 2
|
||||
## Install
|
||||
|
||||
- **From the browser**: open the [installer page](https://isod89.github.io/clipper-fm1/webapp/installer/) (Chrome or Edge, the FM-1 on USB; the [editor](https://isod89.github.io/clipper-fm1/webapp/editor/) is next to it), make a backup with the editor first, then click Install.
|
||||
- **From the source, on Windows**: see [DEMARRAGE-RAPIDE-FR.md](https://github.com/isod89/clipper-fm1/blob/main/DEMARRAGE-RAPIDE-FR.md) — `INSTALL-CLIPPER.bat` builds the firmware (WSL and the JieLi toolchain, as SLOOP) and opens the installer.
|
||||
- **From the source, on Windows**: see [QUICKSTART.md](https://github.com/isod89/clipper-fm1/blob/main/QUICKSTART.md) (French: [DEMARRAGE-RAPIDE-FR.md](https://github.com/isod89/clipper-fm1/blob/main/DEMARRAGE-RAPIDE-FR.md)) — `INSTALL-CLIPPER.bat` builds the firmware (WSL and the JieLi toolchain, as SLOOP) and opens the installer.
|
||||
|
||||
## What is left to do
|
||||
|
||||
@@ -27,16 +27,4 @@ Testing on real units (CPU, flash, RAM, clicks, storage across power cuts); room
|
||||
|
||||
**Please report what you find** in the [Issues](https://github.com/isod89/clipper-fm1/issues): bugs, crashes (photograph the FELUCCA CRASH screen), stuck notes, crackles, CPU readings (GLO → SYSTEM).
|
||||
|
||||
---
|
||||
|
||||
## Clipper 1.0 (expérimental) — en français
|
||||
|
||||
**Un firmware de synthétiseur gratuit et open source pour la M-VAVE FM-1**, issu de SLOOP et basé sur Felucca.
|
||||
|
||||
> ⚠️ **C'est une version expérimentale.** Elle passe toute sa suite de tests sur ordinateur, mais elle a encore très peu tourné sur une vraie FM-1 : il peut rester des défauts (charge processeur, clics, sauvegarde), et il reste énormément de travail à faire. **Fais une sauvegarde avec l'éditeur avant d'installer.** Tu peux toujours revenir au firmware officiel V15 depuis la page d'installation.
|
||||
|
||||
23 moteurs, 407 sons ; une matrice de modulation à 12 slots, 3 LFO, 4 macros et des voix stéréo (SPREAD) sur tous les moteurs ; des réverbs Hall et Shimmer, un delay ping-pong et bande ; le micro-accordage Scala ; un éditeur web pour tous les paramètres. Installation : [la page d'installation](https://isod89.github.io/clipper-fm1/webapp/installer/). Guide en français : [DEMARRAGE-RAPIDE-FR.md](https://github.com/isod89/clipper-fm1/blob/main/DEMARRAGE-RAPIDE-FR.md), dont la section « Ce qui reste à faire ».
|
||||
|
||||
**Signale ce que tu trouves** dans les [Issues](https://github.com/isod89/clipper-fm1/issues) : bugs, plantages, notes coincées, craquements, mesures de charge processeur.
|
||||
|
||||
Clipper is not affiliated with M-VAVE. GPL-3.0.
|
||||
+32
-32
@@ -1,4 +1,4 @@
|
||||
# Clipper: publish the release on GitHub, from this folder (PUBLIER-GITHUB.bat).
|
||||
# Clipper: publish the release on GitHub, from this folder (PUBLISH-GITHUB.bat).
|
||||
# 1. the source: clipper-1.0.bundle -> the repository OWNER/REPO (created if it does not exist), branch main, the tag
|
||||
# 2. the pre-release v1.0-experimental: docs/release-1.0.md, the firmware package (if INSTALL-CLIPPER.bat built it),
|
||||
# the demo WAV
|
||||
@@ -8,7 +8,7 @@
|
||||
param([string]$Owner = "", [string]$Repo = "clipper-fm1", [string]$Tag = "v1.0-experimental")
|
||||
$ErrorActionPreference = 'Continue'
|
||||
Set-Location (Split-Path $PSScriptRoot)
|
||||
function Fail([string]$m) { Write-Host ""; Write-Host "ERREUR : $m" -ForegroundColor Red; exit 1 }
|
||||
function Fail([string]$m) { Write-Host ""; Write-Host "ERROR: $m" -ForegroundColor Red; exit 1 }
|
||||
function Step([string]$m) { Write-Host "== $m" -ForegroundColor Cyan }
|
||||
|
||||
Write-Host ""
|
||||
@@ -31,29 +31,29 @@ $names = @{ git = "Git (https://git-scm.com)"; gh = "GitHub CLI (https://cli.git
|
||||
foreach ($t in @("git", "gh")) {
|
||||
if (Find-Tool $t) { continue }
|
||||
if (Get-Command winget -ErrorAction SilentlyContinue) {
|
||||
$a = Read-Host "$($names[$t]) n'est pas installe. L'installer maintenant avec winget ? (O/N)"
|
||||
if ($a -match '^[oOyY]') {
|
||||
Step "Installation de $($names[$t])"
|
||||
$a = Read-Host "$($names[$t]) is not installed. Install it now with winget? (Y/N)"
|
||||
if ($a -match '^[yYoO]') {
|
||||
Step "Installing $($names[$t])"
|
||||
winget install --id $ids[$t] -e --source winget --accept-package-agreements --accept-source-agreements
|
||||
if (Find-Tool $t) { continue }
|
||||
Fail "$t est installe mais pas encore visible : ferme cette fenetre et relance PUBLIER-GITHUB.bat"
|
||||
Fail "$t is installed but not visible yet: close this window and run PUBLISH-GITHUB.bat again"
|
||||
}
|
||||
}
|
||||
Fail "$t est introuvable. Installe $($names[$t]), puis relance PUBLIER-GITHUB.bat."
|
||||
Fail "$t not found. Install $($names[$t]), then run PUBLISH-GITHUB.bat again."
|
||||
}
|
||||
gh auth status *> $null
|
||||
if ($LASTEXITCODE -ne 0) {
|
||||
Step "Connexion a GitHub (le navigateur va s'ouvrir)"
|
||||
Step "Signing in to GitHub (the browser will open)"
|
||||
gh auth login --web --git-protocol https
|
||||
if ($LASTEXITCODE -ne 0) { Fail "la connexion a GitHub n'a pas abouti" }
|
||||
if ($LASTEXITCODE -ne 0) { Fail "signing in to GitHub failed" }
|
||||
}
|
||||
gh auth setup-git *> $null
|
||||
if (-not $Owner) { $Owner = "$(gh api user --jq .login)".Trim() }
|
||||
if (-not $Owner) { Fail "impossible de lire ton nom d'utilisateur GitHub" }
|
||||
if (-not $Owner) { Fail "could not read your GitHub user name" }
|
||||
$full = "$Owner/$Repo"
|
||||
$pages = "https://$Owner.github.io/$Repo"
|
||||
$bundle = "clipper-1.0.bundle"
|
||||
if (-not (Test-Path $bundle)) { Fail "$bundle introuvable dans ce dossier" }
|
||||
if (-not (Test-Path $bundle)) { Fail "$bundle not found in this folder" }
|
||||
$work = Join-Path "build" "publish"
|
||||
$repoDir = Join-Path $work "repo"
|
||||
if (Test-Path $work) { Remove-Item -Recurse -Force $work }
|
||||
@@ -61,34 +61,34 @@ New-Item -ItemType Directory -Force $work | Out-Null
|
||||
$email = "$Owner@users.noreply.github.com"
|
||||
|
||||
# 1. the source
|
||||
Step "Le code (depuis $bundle)"
|
||||
Step "The source (from $bundle)"
|
||||
git clone --quiet --branch main $bundle $repoDir
|
||||
if ($LASTEXITCODE -ne 0 -or -not (Test-Path $repoDir)) { Fail "git clone du bundle" }
|
||||
if ($LASTEXITCODE -ne 0 -or -not (Test-Path $repoDir)) { Fail "git clone of the bundle" }
|
||||
Push-Location $repoDir
|
||||
gh repo view $full *> $null
|
||||
if ($LASTEXITCODE -ne 0) {
|
||||
Step "Creation du depot public $full"
|
||||
Step "Creating the public repository $full"
|
||||
gh repo create $full --public --description "Clipper: an experimental synthesizer firmware for the M-VAVE FM-1 (from SLOOP, based on Felucca)" --homepage "$pages/webapp/installer/"
|
||||
if ($LASTEXITCODE -ne 0) { Pop-Location; Fail "la creation du depot $full" }
|
||||
if ($LASTEXITCODE -ne 0) { Pop-Location; Fail "creating the repository $full" }
|
||||
}
|
||||
git remote remove origin *> $null
|
||||
git remote add origin "https://github.com/$full.git"
|
||||
Step "Envoi de la branche main vers $full"
|
||||
Step "Pushing the main branch to $full"
|
||||
git push -u origin main
|
||||
if ($LASTEXITCODE -ne 0) {
|
||||
Pop-Location
|
||||
Fail "git push a ete refuse (le depot $full a peut-etre deja un autre historique). Rien n'a ete force. Choisis un autre nom : PUBLIER-GITHUB.bat -Repo autre-nom"
|
||||
Fail "git push was refused (the repository $full may already have another history). Nothing was forced. Pick another name: PUBLISH-GITHUB.bat -Repo another-name"
|
||||
}
|
||||
if ("$(git ls-remote --tags origin "refs/tags/$Tag")".Trim()) {
|
||||
Write-Host " (le tag $Tag est deja sur GitHub : garde tel quel)" -ForegroundColor DarkGray
|
||||
Write-Host " (the tag $Tag is already on GitHub: kept as it is)" -ForegroundColor DarkGray
|
||||
} else {
|
||||
git -c user.name="$Owner" -c user.email="$email" tag -a $Tag -m "Clipper 1.0 (experimental)"
|
||||
git push origin $Tag
|
||||
if ($LASTEXITCODE -ne 0) { Pop-Location; Fail "l'envoi du tag $Tag" }
|
||||
if ($LASTEXITCODE -ne 0) { Pop-Location; Fail "pushing the tag $Tag" }
|
||||
}
|
||||
$notes = Join-Path (Resolve-Path "..").Path "release-notes.md"
|
||||
$src = Join-Path "docs" "release-1.0.md"
|
||||
if (-not (Test-Path $src)) { Pop-Location; Fail "docs/release-1.0.md manque dans le bundle (un bundle trop ancien ?)" }
|
||||
if (-not (Test-Path $src)) { Pop-Location; Fail "docs/release-1.0.md is missing from the bundle (an older bundle?)" }
|
||||
$text = (Get-Content -Raw -Encoding UTF8 $src).Replace("https://isod89.github.io/clipper-fm1", $pages).Replace("isod89/clipper-fm1", $full)
|
||||
[IO.File]::WriteAllText($notes, $text, (New-Object Text.UTF8Encoding $false)) # (no BOM: GitHub shows the text as it is)
|
||||
Pop-Location
|
||||
@@ -98,22 +98,22 @@ $site = Join-Path "build" "clipper-site"
|
||||
$assets = @()
|
||||
$fw = Get-ChildItem (Join-Path (Join-Path $site "firmware") "clipper-*.fwsc") -ErrorAction SilentlyContinue | Select-Object -First 1
|
||||
if ($fw) { $assets += $fw.FullName }
|
||||
else { Write-Host "(Pas de firmware compile : lance d'abord INSTALL-CLIPPER.bat. La release est publiee sans le .fwsc ; relance ce script ensuite pour l'ajouter.)" -ForegroundColor Yellow }
|
||||
else { Write-Host "(No firmware built: run INSTALL-CLIPPER.bat first. The release is published without the .fwsc; run this script again afterwards to add it.)" -ForegroundColor Yellow }
|
||||
if (Test-Path "clipper-1.0-demo.wav") { $assets += (Resolve-Path "clipper-1.0-demo.wav").Path }
|
||||
gh release view $Tag --repo $full *> $null
|
||||
if ($LASTEXITCODE -eq 0) {
|
||||
Step "La release $Tag existe : mise a jour de ses notes et fichiers"
|
||||
Step "The release $Tag exists: updating its notes and files"
|
||||
gh release edit $Tag --repo $full --prerelease --title "Clipper 1.0 (experimental)" --notes-file $notes
|
||||
if ($assets.Count -gt 0) { gh release upload $Tag @assets --repo $full --clobber }
|
||||
} else {
|
||||
Step "Creation de la pre-release $Tag"
|
||||
Step "Creating the pre-release $Tag"
|
||||
gh release create $Tag @assets --repo $full --prerelease --title "Clipper 1.0 (experimental)" --notes-file $notes
|
||||
}
|
||||
if ($LASTEXITCODE -ne 0) { Fail "la release $Tag" }
|
||||
if ($LASTEXITCODE -ne 0) { Fail "the release $Tag" }
|
||||
|
||||
# 3. GitHub Pages: the installer and the editor
|
||||
if (Test-Path (Join-Path (Join-Path (Join-Path $site "webapp") "installer") "index.html")) {
|
||||
Step "L'installateur et l'editeur sur GitHub Pages"
|
||||
Step "The installer and the editor on GitHub Pages"
|
||||
$pg = Join-Path $work "pages"
|
||||
New-Item -ItemType Directory -Force $pg | Out-Null
|
||||
Copy-Item -Recurse (Join-Path $site "*") $pg
|
||||
@@ -126,15 +126,15 @@ if (Test-Path (Join-Path (Join-Path (Join-Path $site "webapp") "installer") "ind
|
||||
git push --force "https://github.com/$full.git" gh-pages
|
||||
$ok = $LASTEXITCODE -eq 0
|
||||
Pop-Location
|
||||
if (-not $ok) { Fail "l'envoi de la branche gh-pages" }
|
||||
if (-not $ok) { Fail "pushing the gh-pages branch" }
|
||||
gh api -X POST "repos/$full/pages" -f "source[branch]=gh-pages" -f "source[path]=/" *> $null # (already on: refused, fine)
|
||||
Write-Host " (GitHub met une a deux minutes a publier la page la premiere fois)" -ForegroundColor DarkGray
|
||||
Write-Host " (the first time, GitHub takes a minute or two to publish the page)" -ForegroundColor DarkGray
|
||||
} else {
|
||||
Write-Host "(Pas de build\clipper-site : lance d'abord INSTALL-CLIPPER.bat pour publier l'installateur sur GitHub Pages.)" -ForegroundColor Yellow
|
||||
Write-Host "(No build\clipper-site: run INSTALL-CLIPPER.bat first to publish the installer on GitHub Pages.)" -ForegroundColor Yellow
|
||||
}
|
||||
|
||||
Write-Host ""
|
||||
Write-Host "Depot : https://github.com/$full" -ForegroundColor Green
|
||||
Write-Host "Release : https://github.com/$full/releases/tag/$Tag" -ForegroundColor Green
|
||||
Write-Host "Installateur : $pages/webapp/installer/" -ForegroundColor Green
|
||||
Write-Host "Editeur : $pages/webapp/editor/" -ForegroundColor Green
|
||||
Write-Host "Repository: https://github.com/$full" -ForegroundColor Green
|
||||
Write-Host "Release: https://github.com/$full/releases/tag/$Tag" -ForegroundColor Green
|
||||
Write-Host "Installer: $pages/webapp/installer/" -ForegroundColor Green
|
||||
Write-Host "Editor: $pages/webapp/editor/" -ForegroundColor Green
|
||||
+7
-3
@@ -371,8 +371,8 @@ const TEXT = {
|
||||
back: "L'outil de M-VAVE, M-UPGRADE (Downloads → PC Software), fonctionne aussi. S'il ne trouve pas la FM-1, ferme toutes les autres applis et onglets qui utilisent le MIDI.",
|
||||
},
|
||||
};
|
||||
let lang = (navigator.language || "en").toLowerCase().slice(0, 2);
|
||||
if (!["ja", "fr"].includes(lang)) lang = "en";
|
||||
let lang = "en"; /* English first; the button switches, and the choice is remembered */
|
||||
try { const v = localStorage.getItem("clipper-installer-lang"); if (["en", "fr", "ja"].includes(v)) lang = v; } catch (e) { /* no storage */ }
|
||||
const NEXT = { en: "fr", fr: "ja", ja: "en" };
|
||||
const t = (k) => TEXT[lang][k];
|
||||
let lastKey = null, lastArg = "";
|
||||
@@ -383,7 +383,11 @@ function applyLang() {
|
||||
$("lang").textContent = t("other");
|
||||
if (lastKey) $("status").textContent = t(lastKey) + lastArg;
|
||||
}
|
||||
$("lang").addEventListener("click", () => { lang = NEXT[lang]; applyLang(); });
|
||||
$("lang").addEventListener("click", () => {
|
||||
lang = NEXT[lang];
|
||||
try { localStorage.setItem("clipper-installer-lang", lang); } catch (e) { /* no storage */ }
|
||||
applyLang();
|
||||
});
|
||||
applyLang();
|
||||
const sayK = (k, arg = "") => { lastKey = k; lastArg = arg; $("status").textContent = t(k) + arg; };
|
||||
const say = (txt) => { lastKey = null; $("status").textContent = txt; };
|
||||
|
||||
Reference in new issue
Block a user