diff --git a/README.md b/README.md index 6795da3..3314a35 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # Red scripts - ScoutLink ChanOp- og IRCop-script for ScoutLink Scandinavia, på dansk, norsk, svensk og engelsk.
-mIRC · ZoiteChat/HexChat · HexDroid · WeeChat · irssi · Halloy · halloy-scoutlink (test) +mIRC · ZoiteChat/HexChat · HexDroid · WeeChat · irssi · Halloy · Woggle (test) **[Last ned](https://github.com/R3disme/Red-Scripts---Scoutlink/releases/latest)** · [Bidra](docs/CONTRIBUTING.md) · [Plan](docs/PLAN.md) @@ -12,15 +12,15 @@ mIRC · ZoiteChat/HexChat · HexDroid · WeeChat · irssi · Halloy · halloy-sc | Svenska | [sv](docs/install/sv.md) | [sv](docs/guide/sv.md) | [sv](docs/guide/sv.md#features) | [sv](docs/guide/sv.md#support) | | English | [en](docs/install/en.md) | [en](docs/guide/en.md) | [en](docs/guide/en.md#features) | [en](docs/guide/en.md#support) | - + -## halloy-scoutlink (testversjon) +## Woggle (testversjon) -En egen versjon av [Halloy](https://halloy.chat) med ScoutLink bygget inn. +Woggle er basert på [Halloy](https://github.com/squidowl/halloy), men er endret så mye at den har fått sitt eget navn. ScoutLink er bygget inn. -**Støttenivå:** 🧪 Test · Linux · oppdateres med nye versjoner, ikke automatisk. +**Støttenivå:** 🧪 Test · Linux og Windows · oppdateres med nye versjoner, ikke automatisk. -| | halloy-scoutlink | Halloy | +| | Woggle | Halloy | |---|---|---| | ScoutLink-panel ved høyreklikk | ✅ | ❌ | | Ban før kick, fjernes etter 10 min | ✅ | ❌ | @@ -31,4 +31,4 @@ En egen versjon av [Halloy](https://halloy.chat) med ScoutLink bygget inn. | Faller tilbake til IPv4 når IPv6 ikke virker | ✅ | ❌ | | Korte kommandoer (advar, kick, feil kanal) | ✅ | ✅ | -> This is a private test version of Halloy. If you want access to try it, send R3d a message on either IRC (ScoutLink, nick `R3d`) or Discord (`akai_shi.`). +> This is a private test version of Woggle, based on Halloy. If you want access to try it, send R3d a message on either IRC (ScoutLink, nick `R3d`) or Discord (`akai_shi.`). diff --git a/docs/install/da.md b/docs/install/da.md index 3ade584..3e06f0d 100644 --- a/docs/install/da.md +++ b/docs/install/da.md @@ -91,6 +91,6 @@ Find din klient, følg trinnene, og højreklik på et nick (eller skriv /sl), n 2. Vil du have ScoutLink-farverne: læg [scoutlink-dark.toml](https://github.com/R3disme/Red-Scripts---Scoutlink/releases/latest/download/scoutlink-dark.toml) og [scoutlink-light.toml](https://github.com/R3disme/Red-Scripts---Scoutlink/releases/latest/download/scoutlink-light.toml) i `themes`, og skriv `theme = { light = "scoutlink-light", dark = "scoutlink-dark" }` øverst i `config.toml`. 3. Brug de korte kommandoer, for eksempel `/wcapsd Ola` eller `/kspame Ola`. Ban laver du i mIRC, ZoiteChat/HexChat, WeeChat eller irssi. 4. Installationsprogrammet tilføjer også serveren `chat.scoutlink.net` (port 6697, TLS) med #scandinavia og #help, uden adgangskode, og kan installere Halloy for dig, hvis du ikke har det. -5. **Testversion (Linux og Windows):** installationsprogrammet kan også installere `Halloy (ScoutLink)`, en privat testversion af Halloy. Den kræver GitHub CLI (`gh`) med adgang til det private arkiv. Uden adgang får du besked om, hvordan du beder om det. Programmet lægges i `~/.local/bin/halloy-scoutlink`, der oprettes et menupunkt, og samme server og kanaler sættes op i `~/.config/halloy/config.toml` med en `[scoutlink]`-sektion til dit sprog. Findes der ingen færdig release, bygges den med `cargo` (installer Rust fra https://rustup.rs), og det kan tage et stykke tid. På Windows henter installationsprogrammet kun den færdige release (`halloy-scoutlink-windows-x86_64.zip`) til `%LOCALAPPDATA%\Programs\halloy-scoutlink`, opretter en genvej i Start-menuen og bruger `%APPDATA%\halloy\config.toml`. Installer GitHub CLI fra https://cli.github.com og kør `gh auth login` først. +5. **Testversion (Linux og Windows):** installationsprogrammet kan også installere `Woggle`, en privat testversion baseret på Halloy. Den kræver GitHub CLI (`gh`) med adgang til det private arkiv. Uden adgang får du besked om, hvordan du beder om det. Programmet lægges i `~/.local/bin/woggle`, der oprettes et menupunkt, og samme server og kanaler sættes op i `~/.config/halloy/config.toml` med en `[scoutlink]`-sektion til dit sprog. Findes der ingen færdig release, bygges den med `cargo` (installer Rust fra https://rustup.rs), og det kan tage et stykke tid. På Windows henter installationsprogrammet kun den færdige release (`woggle-windows-x86_64.zip`) til `%LOCALAPPDATA%\Programs\woggle`, opretter en genvej i Start-menuen og bruger `%APPDATA%\halloy\config.toml`. Installer GitHub CLI fra https://cli.github.com og kør `gh auth login` først. ![Halloy](../guide/images/11-halloy.png) diff --git a/docs/install/en.md b/docs/install/en.md index 2131af6..5a340f7 100644 --- a/docs/install/en.md +++ b/docs/install/en.md @@ -91,6 +91,6 @@ Find your client, follow the steps, and right-click a nick (or type /sl) once yo 2. For the ScoutLink colours: put [scoutlink-dark.toml](https://github.com/R3disme/Red-Scripts---Scoutlink/releases/latest/download/scoutlink-dark.toml) and [scoutlink-light.toml](https://github.com/R3disme/Red-Scripts---Scoutlink/releases/latest/download/scoutlink-light.toml) in `themes`, and add `theme = { light = "scoutlink-light", dark = "scoutlink-dark" }` at the top of `config.toml`. 3. Use the short commands, for example `/wcapse Ola` or `/kspame Ola`. Bans are done in mIRC, ZoiteChat/HexChat, WeeChat or irssi. 4. The installer also adds the server `chat.scoutlink.net` (port 6697, TLS) with #english and #help, no password, and can install Halloy for you if you do not have it. -5. **Test version (Linux and Windows):** the installer can also install `Halloy (ScoutLink)`, a private test build of Halloy. It needs the GitHub CLI (`gh`) with access to the private repository; without it you get a message on how to ask for access. The binary goes to `~/.local/bin/halloy-scoutlink`, a menu entry is added, and the same server and channels are set up in `~/.config/halloy/config.toml` with a `[scoutlink]` section for your language. If there is no ready-made release it is built with `cargo` (install Rust from https://rustup.rs), which can take a while. On Windows the installer only downloads the ready-made release (`halloy-scoutlink-windows-x86_64.zip`) to `%LOCALAPPDATA%\Programs\halloy-scoutlink`, adds a Start Menu shortcut, and uses `%APPDATA%\halloy\config.toml`; install GitHub CLI from https://cli.github.com and run `gh auth login` first. +5. **Test version (Linux and Windows):** the installer can also install `Woggle`, a private test build based on Halloy. It needs the GitHub CLI (`gh`) with access to the private repository; without it you get a message on how to ask for access. The binary goes to `~/.local/bin/woggle`, a menu entry is added, and the same server and channels are set up in `~/.config/halloy/config.toml` with a `[scoutlink]` section for your language. If there is no ready-made release it is built with `cargo` (install Rust from https://rustup.rs), which can take a while. On Windows the installer only downloads the ready-made release (`woggle-windows-x86_64.zip`) to `%LOCALAPPDATA%\Programs\woggle`, adds a Start Menu shortcut, and uses `%APPDATA%\halloy\config.toml`; install GitHub CLI from https://cli.github.com and run `gh auth login` first. ![Halloy](../guide/images/11-halloy.png) diff --git a/docs/install/no.md b/docs/install/no.md index 2e83ebc..08937c0 100644 --- a/docs/install/no.md +++ b/docs/install/no.md @@ -91,6 +91,6 @@ Finn klienten din, følg stegene, og høyreklikk på et nick (eller skriv /sl) n 2. Vil du ha ScoutLink-fargene: legg [scoutlink-dark.toml](https://github.com/R3disme/Red-Scripts---Scoutlink/releases/latest/download/scoutlink-dark.toml) og [scoutlink-light.toml](https://github.com/R3disme/Red-Scripts---Scoutlink/releases/latest/download/scoutlink-light.toml) i `themes`, og skriv `theme = { light = "scoutlink-light", dark = "scoutlink-dark" }` øverst i `config.toml`. 3. Bruk de korte kommandoene, for eksempel `/wcapsn Ola` eller `/kspame Ola`. Ban gjør du i mIRC, ZoiteChat/HexChat, WeeChat eller irssi. 4. Installasjonsprogrammet legger også inn serveren `chat.scoutlink.net` (port 6697, TLS) med #scandinavia og #help, uten passord, og kan installere Halloy for deg hvis du ikke har det. -5. **Testversjon (Linux og Windows):** installasjonsprogrammet kan også installere `Halloy (ScoutLink)`, en privat testversjon av Halloy. Den krever GitHub CLI (`gh`) med tilgang til det private arkivet. Uten tilgang får du beskjed om hvordan du ber om det. Programmet legges i `~/.local/bin/halloy-scoutlink`, det lages en menyoppføring, og samme server og kanaler settes opp i `~/.config/halloy/config.toml` med en `[scoutlink]`-seksjon for språket ditt. Finnes det ingen ferdig release, bygges den med `cargo` (installer Rust fra https://rustup.rs), og det kan ta en stund. På Windows laster installasjonsprogrammet bare ned den ferdige releasen (`halloy-scoutlink-windows-x86_64.zip`) til `%LOCALAPPDATA%\Programs\halloy-scoutlink`, legger til en snarvei i Start-menyen og bruker `%APPDATA%\halloy\config.toml`. Installer GitHub CLI fra https://cli.github.com og kjør `gh auth login` først. +5. **Testversjon (Linux og Windows):** installasjonsprogrammet kan også installere `Woggle`, en privat testversjon basert på Halloy. Den krever GitHub CLI (`gh`) med tilgang til det private arkivet. Uten tilgang får du beskjed om hvordan du ber om det. Programmet legges i `~/.local/bin/woggle`, det lages en menyoppføring, og samme server og kanaler settes opp i `~/.config/halloy/config.toml` med en `[scoutlink]`-seksjon for språket ditt. Finnes det ingen ferdig release, bygges den med `cargo` (installer Rust fra https://rustup.rs), og det kan ta en stund. På Windows laster installasjonsprogrammet bare ned den ferdige releasen (`woggle-windows-x86_64.zip`) til `%LOCALAPPDATA%\Programs\woggle`, legger til en snarvei i Start-menyen og bruker `%APPDATA%\halloy\config.toml`. Installer GitHub CLI fra https://cli.github.com og kjør `gh auth login` først. ![Halloy](../guide/images/11-halloy.png) diff --git a/docs/install/sv.md b/docs/install/sv.md index 568d077..6be9d09 100644 --- a/docs/install/sv.md +++ b/docs/install/sv.md @@ -91,6 +91,6 @@ Hitta din klient, följ stegen och högerklicka på ett nick (eller skriv /sl) n 2. Vill du ha ScoutLink-färgerna: lägg [scoutlink-dark.toml](https://github.com/R3disme/Red-Scripts---Scoutlink/releases/latest/download/scoutlink-dark.toml) och [scoutlink-light.toml](https://github.com/R3disme/Red-Scripts---Scoutlink/releases/latest/download/scoutlink-light.toml) i `themes`, och skriv `theme = { light = "scoutlink-light", dark = "scoutlink-dark" }` överst i `config.toml`. 3. Använd de korta kommandona, till exempel `/wcapss Ola` eller `/kspame Ola`. Ban gör du i mIRC, ZoiteChat/HexChat, WeeChat eller irssi. 4. Installationsprogrammet lägger också till servern `chat.scoutlink.net` (port 6697, TLS) med #scandinavia och #help, utan lösenord, och kan installera Halloy åt dig om du inte har det. -5. **Testversion (Linux och Windows):** installationsprogrammet kan också installera `Halloy (ScoutLink)`, en privat testversion av Halloy. Den kräver GitHub CLI (`gh`) med åtkomst till det privata arkivet. Utan åtkomst får du ett meddelande om hur du ber om det. Programmet läggs i `~/.local/bin/halloy-scoutlink`, en menypost skapas, och samma server och kanaler ställs in i `~/.config/halloy/config.toml` med en `[scoutlink]`-sektion för ditt språk. Finns ingen färdig release byggs den med `cargo` (installera Rust från https://rustup.rs), och det kan ta en stund. På Windows hämtar installationsprogrammet bara den färdiga releasen (`halloy-scoutlink-windows-x86_64.zip`) till `%LOCALAPPDATA%\Programs\halloy-scoutlink`, lägger till en genväg i Startmenyn och använder `%APPDATA%\halloy\config.toml`. Installera GitHub CLI från https://cli.github.com och kör `gh auth login` först. +5. **Testversion (Linux och Windows):** installationsprogrammet kan också installera `Woggle`, en privat testversion baserad på Halloy. Den kräver GitHub CLI (`gh`) med åtkomst till det privata arkivet. Utan åtkomst får du ett meddelande om hur du ber om det. Programmet läggs i `~/.local/bin/woggle`, en menypost skapas, och samma server och kanaler ställs in i `~/.config/halloy/config.toml` med en `[scoutlink]`-sektion för ditt språk. Finns ingen färdig release byggs den med `cargo` (installera Rust från https://rustup.rs), och det kan ta en stund. På Windows hämtar installationsprogrammet bara den färdiga releasen (`woggle-windows-x86_64.zip`) till `%LOCALAPPDATA%\Programs\woggle`, lägger till en genväg i Startmenyn och använder `%APPDATA%\halloy\config.toml`. Installera GitHub CLI från https://cli.github.com och kör `gh auth login` först. ![Halloy](../guide/images/11-halloy.png) diff --git a/installer.yml b/installer.yml index 7f39803..5d3c522 100644 --- a/installer.yml +++ b/installer.yml @@ -250,25 +250,25 @@ support: - "Vil du ha ScoutLink-fargene: legg [scoutlink-dark.toml]({base}/scoutlink-dark.toml) og [scoutlink-light.toml]({base}/scoutlink-light.toml) i `themes`, og skriv `theme = { light = \"scoutlink-light\", dark = \"scoutlink-dark\" }` øverst i `config.toml`." - "Bruk de korte kommandoene, for eksempel `/wcapsn Ola` eller `/kspame Ola`. Ban gjør du i mIRC, ZoiteChat/HexChat, WeeChat eller irssi." - "Installasjonsprogrammet legger også inn serveren `chat.scoutlink.net` (port 6697, TLS) med #scandinavia og #help, uten passord, og kan installere Halloy for deg hvis du ikke har det." - - "**Testversjon (Linux og Windows):** installasjonsprogrammet kan også installere `Halloy (ScoutLink)`, en privat testversjon av Halloy. Den krever GitHub CLI (`gh`) med tilgang til det private arkivet. Uten tilgang får du beskjed om hvordan du ber om det. Programmet legges i `~/.local/bin/halloy-scoutlink`, det lages en menyoppføring, og samme server og kanaler settes opp i `~/.config/halloy/config.toml` med en `[scoutlink]`-seksjon for språket ditt. Finnes det ingen ferdig release, bygges den med `cargo` (installer Rust fra https://rustup.rs), og det kan ta en stund. På Windows laster installasjonsprogrammet bare ned den ferdige releasen (`halloy-scoutlink-windows-x86_64.zip`) til `%LOCALAPPDATA%\\Programs\\halloy-scoutlink`, legger til en snarvei i Start-menyen og bruker `%APPDATA%\\halloy\\config.toml`. Installer GitHub CLI fra https://cli.github.com og kjør `gh auth login` først." + - "**Testversjon (Linux og Windows):** installasjonsprogrammet kan også installere `Woggle`, en privat testversjon basert på Halloy. Den krever GitHub CLI (`gh`) med tilgang til det private arkivet. Uten tilgang får du beskjed om hvordan du ber om det. Programmet legges i `~/.local/bin/woggle`, det lages en menyoppføring, og samme server og kanaler settes opp i `~/.config/halloy/config.toml` med en `[scoutlink]`-seksjon for språket ditt. Finnes det ingen ferdig release, bygges den med `cargo` (installer Rust fra https://rustup.rs), og det kan ta en stund. På Windows laster installasjonsprogrammet bare ned den ferdige releasen (`woggle-windows-x86_64.zip`) til `%LOCALAPPDATA%\\Programs\\halloy-scoutlink`, legger til en snarvei i Start-menyen og bruker `%APPDATA%\\halloy\\config.toml`. Installer GitHub CLI fra https://cli.github.com og kjør `gh auth login` først." da: - "Kør installationsprogrammet, eller indsæt indholdet af [scoutlink-halloy.toml]({base}/scoutlink-halloy.toml) i Halloys `config.toml`." - "Vil du have ScoutLink-farverne: læg [scoutlink-dark.toml]({base}/scoutlink-dark.toml) og [scoutlink-light.toml]({base}/scoutlink-light.toml) i `themes`, og skriv `theme = { light = \"scoutlink-light\", dark = \"scoutlink-dark\" }` øverst i `config.toml`." - "Brug de korte kommandoer, for eksempel `/wcapsd Ola` eller `/kspame Ola`. Ban laver du i mIRC, ZoiteChat/HexChat, WeeChat eller irssi." - "Installationsprogrammet tilføjer også serveren `chat.scoutlink.net` (port 6697, TLS) med #scandinavia og #help, uden adgangskode, og kan installere Halloy for dig, hvis du ikke har det." - - "**Testversion (Linux og Windows):** installationsprogrammet kan også installere `Halloy (ScoutLink)`, en privat testversion af Halloy. Den kræver GitHub CLI (`gh`) med adgang til det private arkiv. Uden adgang får du besked om, hvordan du beder om det. Programmet lægges i `~/.local/bin/halloy-scoutlink`, der oprettes et menupunkt, og samme server og kanaler sættes op i `~/.config/halloy/config.toml` med en `[scoutlink]`-sektion til dit sprog. Findes der ingen færdig release, bygges den med `cargo` (installer Rust fra https://rustup.rs), og det kan tage et stykke tid. På Windows henter installationsprogrammet kun den færdige release (`halloy-scoutlink-windows-x86_64.zip`) til `%LOCALAPPDATA%\\Programs\\halloy-scoutlink`, opretter en genvej i Start-menuen og bruger `%APPDATA%\\halloy\\config.toml`. Installer GitHub CLI fra https://cli.github.com og kør `gh auth login` først." + - "**Testversion (Linux og Windows):** installationsprogrammet kan også installere `Woggle`, en privat testversion baseret på Halloy. Den kræver GitHub CLI (`gh`) med adgang til det private arkiv. Uden adgang får du besked om, hvordan du beder om det. Programmet lægges i `~/.local/bin/woggle`, der oprettes et menupunkt, og samme server og kanaler sættes op i `~/.config/halloy/config.toml` med en `[scoutlink]`-sektion til dit sprog. Findes der ingen færdig release, bygges den med `cargo` (installer Rust fra https://rustup.rs), og det kan tage et stykke tid. På Windows henter installationsprogrammet kun den færdige release (`woggle-windows-x86_64.zip`) til `%LOCALAPPDATA%\\Programs\\halloy-scoutlink`, opretter en genvej i Start-menuen og bruger `%APPDATA%\\halloy\\config.toml`. Installer GitHub CLI fra https://cli.github.com og kør `gh auth login` først." sv: - "Kör installationsprogrammet, eller klistra in innehållet i [scoutlink-halloy.toml]({base}/scoutlink-halloy.toml) i Halloys `config.toml`." - "Vill du ha ScoutLink-färgerna: lägg [scoutlink-dark.toml]({base}/scoutlink-dark.toml) och [scoutlink-light.toml]({base}/scoutlink-light.toml) i `themes`, och skriv `theme = { light = \"scoutlink-light\", dark = \"scoutlink-dark\" }` överst i `config.toml`." - "Använd de korta kommandona, till exempel `/wcapss Ola` eller `/kspame Ola`. Ban gör du i mIRC, ZoiteChat/HexChat, WeeChat eller irssi." - "Installationsprogrammet lägger också till servern `chat.scoutlink.net` (port 6697, TLS) med #scandinavia och #help, utan lösenord, och kan installera Halloy åt dig om du inte har det." - - "**Testversion (Linux och Windows):** installationsprogrammet kan också installera `Halloy (ScoutLink)`, en privat testversion av Halloy. Den kräver GitHub CLI (`gh`) med åtkomst till det privata arkivet. Utan åtkomst får du ett meddelande om hur du ber om det. Programmet läggs i `~/.local/bin/halloy-scoutlink`, en menypost skapas, och samma server och kanaler ställs in i `~/.config/halloy/config.toml` med en `[scoutlink]`-sektion för ditt språk. Finns ingen färdig release byggs den med `cargo` (installera Rust från https://rustup.rs), och det kan ta en stund. På Windows hämtar installationsprogrammet bara den färdiga releasen (`halloy-scoutlink-windows-x86_64.zip`) till `%LOCALAPPDATA%\\Programs\\halloy-scoutlink`, lägger till en genväg i Startmenyn och använder `%APPDATA%\\halloy\\config.toml`. Installera GitHub CLI från https://cli.github.com och kör `gh auth login` först." + - "**Testversion (Linux och Windows):** installationsprogrammet kan också installera `Woggle`, en privat testversion baserad på Halloy. Den kräver GitHub CLI (`gh`) med åtkomst till det privata arkivet. Utan åtkomst får du ett meddelande om hur du ber om det. Programmet läggs i `~/.local/bin/woggle`, en menypost skapas, och samma server och kanaler ställs in i `~/.config/halloy/config.toml` med en `[scoutlink]`-sektion för ditt språk. Finns ingen färdig release byggs den med `cargo` (installera Rust från https://rustup.rs), och det kan ta en stund. På Windows hämtar installationsprogrammet bara den färdiga releasen (`woggle-windows-x86_64.zip`) till `%LOCALAPPDATA%\\Programs\\halloy-scoutlink`, lägger till en genväg i Startmenyn och använder `%APPDATA%\\halloy\\config.toml`. Installera GitHub CLI från https://cli.github.com och kör `gh auth login` först." en: - "Run the installer, or paste the contents of [scoutlink-halloy.toml]({base}/scoutlink-halloy.toml) into Halloy's `config.toml`." - "For the ScoutLink colours: put [scoutlink-dark.toml]({base}/scoutlink-dark.toml) and [scoutlink-light.toml]({base}/scoutlink-light.toml) in `themes`, and add `theme = { light = \"scoutlink-light\", dark = \"scoutlink-dark\" }` at the top of `config.toml`." - "Use the short commands, for example `/wcapse Ola` or `/kspame Ola`. Bans are done in mIRC, ZoiteChat/HexChat, WeeChat or irssi." - "The installer also adds the server `chat.scoutlink.net` (port 6697, TLS) with #english and #help, no password, and can install Halloy for you if you do not have it." - - "**Test version (Linux and Windows):** the installer can also install `Halloy (ScoutLink)`, a private test build of Halloy. It needs the GitHub CLI (`gh`) with access to the private repository; without it you get a message on how to ask for access. The binary goes to `~/.local/bin/halloy-scoutlink`, a menu entry is added, and the same server and channels are set up in `~/.config/halloy/config.toml` with a `[scoutlink]` section for your language. If there is no ready-made release it is built with `cargo` (install Rust from https://rustup.rs), which can take a while. On Windows the installer only downloads the ready-made release (`halloy-scoutlink-windows-x86_64.zip`) to `%LOCALAPPDATA%\\Programs\\halloy-scoutlink`, adds a Start Menu shortcut, and uses `%APPDATA%\\halloy\\config.toml`; install GitHub CLI from https://cli.github.com and run `gh auth login` first." + - "**Test version (Linux and Windows):** the installer can also install `Woggle`, a private test build based on Halloy. It needs the GitHub CLI (`gh`) with access to the private repository; without it you get a message on how to ask for access. The binary goes to `~/.local/bin/woggle`, a menu entry is added, and the same server and channels are set up in `~/.config/halloy/config.toml` with a `[scoutlink]` section for your language. If there is no ready-made release it is built with `cargo` (install Rust from https://rustup.rs), which can take a while. On Windows the installer only downloads the ready-made release (`woggle-windows-x86_64.zip`) to `%LOCALAPPDATA%\\Programs\\halloy-scoutlink`, adds a Start Menu shortcut, and uses `%APPDATA%\\halloy\\config.toml`; install GitHub CLI from https://cli.github.com and run `gh auth login` first." # NO: Funksjonslisten øverst i guiden på hvert språk diff --git a/installer/setup.py b/installer/setup.py index 6016e42..f6bbb5b 100644 --- a/installer/setup.py +++ b/installer/setup.py @@ -779,9 +779,11 @@ def halloy_client_after_install(offer): # EN: Private test build of Halloy (Linux and Windows). First the latest release via gh. Linux builds from source # when there is no release; Windows has no source build. # The configuration is written by the regular Halloy code above, plus a [scoutlink] section. -HAL_TEST_REPO = "R3disme/halloy-scoutlink" -HAL_TEST_ASSET_LINUX = "halloy-scoutlink-linux-x86_64*" -HAL_TEST_ASSET_WINDOWS = "halloy-scoutlink-windows-x86_64.zip" +HAL_TEST_REPO = "R3disme/woggle" +# NO: Woggle het tidligere halloy-scoutlink; eldre utgivelser bruker de gamle navnene. +# EN: Woggle used to be called halloy-scoutlink; older releases use the old names. +HAL_TEST_ASSET_LINUX = ("woggle-linux-x86_64*", "halloy-scoutlink-linux-x86_64*") +HAL_TEST_ASSET_WINDOWS = ("woggle-windows-x86_64.zip", "halloy-scoutlink-windows-x86_64.zip") HAL_SHORTCUT_PS = ( "param($Target, $Link, $Icon)\n" "$s = (New-Object -ComObject WScript.Shell).CreateShortcut($Link)\n" @@ -789,13 +791,14 @@ def halloy_client_after_install(offer): "$s.WorkingDirectory = Split-Path -Parent $Target\n" "if ($Icon) { $s.IconLocation = $Icon }\n" "$s.Save()\n") -HAL_TEST_MEMBERS = {"linux": ("halloy-scoutlink", "halloy-scoutlink.png"), "windows": ("halloy-scoutlink.exe", "halloy-scoutlink.ico")} +HAL_TEST_MEMBERS = {"linux": (("woggle", "halloy-scoutlink"), ("woggle.png", "halloy-scoutlink.png")), + "windows": (("woggle.exe", "halloy-scoutlink.exe"), ("woggle.ico", "halloy-scoutlink.ico"))} HAL_TEST_SOURCE_ICON = "assets/linux/icons/hicolor/256x256/apps/org.squidowl.halloy.png" HAL_TEST_DESKTOP = """[Desktop Entry] Type=Application -Name=Halloy (ScoutLink) +Name=Woggle Exec={exe} %u -Icon=halloy-scoutlink +Icon=woggle Terminal=false Categories=Network;Chat;IRCClient; MimeType=x-scheme-handler/irc;x-scheme-handler/ircs; @@ -841,9 +844,13 @@ def halloy_test_has_access(): def halloy_test_members(names, kind): """Picks the program and the icon out of the archive member names.""" - prog, icon = HAL_TEST_MEMBERS[kind] + progs, icons = HAL_TEST_MEMBERS[kind] low = {n: Path(n).name.lower() for n in names} - return (next((n for n, b in low.items() if b == prog), None), next((n for n, b in low.items() if b == icon), None)) + + def pick(wanted): + return next((n for w in wanted for n, b in low.items() if b == w), None) + + return pick(progs), pick(icons) def halloy_test_latest_tag(): @@ -865,9 +872,9 @@ def halloy_test_from_release(log): if not tag: return None log("gh release download " + tag) - folder = Path(tempfile.mkdtemp(prefix="halloy-scoutlink-")) - r = halloy_test_run(["gh", "release", "download", tag, "--repo", HAL_TEST_REPO, "--pattern", halloy_test_asset(), - "--dir", str(folder)], 600) + folder = Path(tempfile.mkdtemp(prefix="woggle-")) + patterns = [a for pattern in halloy_test_asset() for a in ("--pattern", pattern)] + r = halloy_test_run(["gh", "release", "download", tag, "--repo", HAL_TEST_REPO, *patterns, "--dir", str(folder)], 600) files = [f for f in folder.iterdir() if f.is_file()] if r.returncode == 0 else [] if not files: return None @@ -878,11 +885,11 @@ def halloy_test_from_release(log): prog, icon = halloy_test_members(z.namelist(), "windows") if prog is None: return None - src = folder / "halloy-scoutlink.exe" + src = folder / "woggle.exe" src.write_bytes(z.read(prog)) ico = None if icon: - ico = folder / "halloy-scoutlink.ico" + ico = folder / "woggle.ico" ico.write_bytes(z.read(icon)) return src, ico if f.name.endswith((".tar.gz", ".tgz")): @@ -891,11 +898,11 @@ def halloy_test_from_release(log): prog, icon = halloy_test_members([m.name for m in files_in], "linux") if prog is None: return None - src = folder / "halloy-scoutlink.bin" + src = folder / "woggle.bin" src.write_bytes(tar.extractfile(prog).read()) png = None if icon: - png = folder / "halloy-scoutlink.png" + png = folder / "woggle.png" png.write_bytes(tar.extractfile(icon).read()) return src, png return f, None @@ -906,7 +913,7 @@ def halloy_test_from_source(log): raise HalloyTestError("halloy_test_norelease_win") if not shutil.which("cargo"): raise HalloyTestError("halloy_test_nocargo") - src = Path.home() / ".local" / "src" / "halloy-scoutlink" + src = Path.home() / ".local" / "src" / "woggle" if (src / ".git").is_dir(): log("git pull") halloy_test_run(["git", "-C", str(src), "pull", "--ff-only"], 600) @@ -928,16 +935,21 @@ def halloy_test_write_launcher_windows(binary, icon=None, local=None, appdata=No import tempfile local = Path(local or os.environ.get("LOCALAPPDATA") or Path.home() / "AppData" / "Local") appdata = Path(appdata or os.environ.get("APPDATA") or Path.home() / "AppData" / "Roaming") - exe = local / "Programs" / "halloy-scoutlink" / "halloy-scoutlink.exe" + old = local / "Programs" / "halloy-scoutlink" + if (old / "halloy-scoutlink.exe").is_file(): + shutil.rmtree(old, ignore_errors=True) + exe = local / "Programs" / "woggle" / "woggle.exe" exe.parent.mkdir(parents=True, exist_ok=True) shutil.copyfile(binary, exe) ico = "" if icon and Path(icon).is_file(): ico = str(exe.with_suffix(".ico")) shutil.copyfile(icon, ico) - link = appdata / "Microsoft" / "Windows" / "Start Menu" / "Programs" / "Halloy (ScoutLink).lnk" + menu = appdata / "Microsoft" / "Windows" / "Start Menu" / "Programs" + (menu / "Halloy (ScoutLink).lnk").unlink(missing_ok=True) + link = menu / "Woggle.lnk" link.parent.mkdir(parents=True, exist_ok=True) - folder = Path(tempfile.mkdtemp(prefix="halloy-scoutlink-ps-")) + folder = Path(tempfile.mkdtemp(prefix="woggle-ps-")) script = folder / "shortcut.ps1" script.write_text(HAL_SHORTCUT_PS, encoding="utf-8") r = halloy_test_run(["powershell", "-NoProfile", "-NonInteractive", "-ExecutionPolicy", "Bypass", "-File", str(script), @@ -947,19 +959,30 @@ def halloy_test_write_launcher_windows(binary, icon=None, local=None, appdata=No return exe +def halloy_test_remove_old_linux(home): + """Removes what earlier versions of this installer put there under the old name.""" + share = home / ".local" / "share" + old_desktop = share / "applications" / "halloy-scoutlink.desktop" + if old_desktop.is_file() and "Name=Halloy (ScoutLink)" in old_desktop.read_text(encoding="utf-8", errors="replace"): + old_desktop.unlink() + (home / ".local" / "bin" / "halloy-scoutlink").unlink(missing_ok=True) + (share / "icons" / "hicolor" / "256x256" / "apps" / "halloy-scoutlink.png").unlink(missing_ok=True) + + def halloy_test_write_launcher(binary, icon=None, home=None): if os.name == "nt" and home is None: return halloy_test_write_launcher_windows(binary, icon) home = Path(home) if home else Path.home() - exe = home / ".local" / "bin" / "halloy-scoutlink" + halloy_test_remove_old_linux(home) + exe = home / ".local" / "bin" / "woggle" exe.parent.mkdir(parents=True, exist_ok=True) shutil.copyfile(binary, exe) exe.chmod(0o755) if icon and Path(icon).is_file(): - png = home / ".local" / "share" / "icons" / "hicolor" / "256x256" / "apps" / "halloy-scoutlink.png" + png = home / ".local" / "share" / "icons" / "hicolor" / "256x256" / "apps" / "woggle.png" png.parent.mkdir(parents=True, exist_ok=True) shutil.copyfile(icon, png) - desktop = home / ".local" / "share" / "applications" / "halloy-scoutlink.desktop" + desktop = home / ".local" / "share" / "applications" / "woggle.desktop" desktop.parent.mkdir(parents=True, exist_ok=True) desktop.write_text(HAL_TEST_DESKTOP.format(exe=exe), encoding="utf-8") return exe @@ -972,7 +995,7 @@ def halloy_test_write_config(files, settings, cfg_dir=None): else: cfg_dir = Path(os.environ.get("XDG_CONFIG_HOME") or Path.home() / ".config") / "halloy" cfg_dir = Path(cfg_dir) - client = Client("halloy", "Halloy (ScoutLink)", cfg_dir, "halloy") + client = Client("halloy", "Woggle", cfg_dir, "halloy") install(client, files, settings) cfg = cfg_dir / "config.toml" cfg.write_text(halloy_add_scoutlink_section(cfg.read_text(encoding="utf-8"), settings.get("lang") or "en"), encoding="utf-8") diff --git a/installer/texts.yml b/installer/texts.yml index d2a7a06..26dc616 100644 --- a/installer/texts.yml +++ b/installer/texts.yml @@ -88,15 +88,15 @@ halloy_install_failed: "Fikk ikke installert Halloy: {e}" halloy_server_added: "ScoutLink-serveren er lagt til i Halloy ({chans}, kallenavn {nick})" halloy_server_kept: Halloy har allerede en ScoutLink-server, den er ikke endret - halloy_test: "Halloy (ScoutLink) – testversjon" - halloy_test_desc: "Privat testversjon av Halloy med ScoutLink-funksjoner. Bare Linux og Windows, og du trenger tilgang." - halloy_test_installing: "Installerer Halloy (ScoutLink) ... dette kan ta lang tid hvis den må bygges" - halloy_test_installed: "Halloy (ScoutLink) er installert" - halloy_test_noaccess: "Dette er en privat testversjon av Halloy. Hvis du vil ha tilgang for å prøve den, send R3d en melding enten på IRC (ScoutLink, nick R3d) eller Discord (akai_shi.)." + halloy_test: "Woggle – testversjon" + halloy_test_desc: "Privat testversjon av Woggle, basert på Halloy med ScoutLink-funksjoner. Bare Linux og Windows, og du trenger tilgang." + halloy_test_installing: "Installerer Woggle ... dette kan ta lang tid hvis den må bygges" + halloy_test_installed: "Woggle er installert" + halloy_test_noaccess: "Dette er en privat testversjon av Woggle, basert på Halloy. Hvis du vil ha tilgang for å prøve den, send R3d en melding enten på IRC (ScoutLink, nick R3d) eller Discord (akai_shi.)." halloy_test_nocargo: "Cargo mangler. Installer Rust fra https://rustup.rs og start installasjonsprogrammet på nytt." - halloy_test_failed: "Fikk ikke installert Halloy (ScoutLink): {e}" + halloy_test_failed: "Fikk ikke installert Woggle: {e}" halloy_test_norelease_win: "Det finnes ingen Windows-versjon å laste ned ennå. Prøv igjen senere." - halloy_test_nogh_win: "GitHub CLI mangler. Installer det fra https://cli.github.com, kjør `gh auth login`, og start installasjonsprogrammet på nytt. Dette er en privat testversjon av Halloy. Hvis du vil ha tilgang for å prøve den, send R3d en melding enten på IRC (ScoutLink, nick R3d) eller Discord (akai_shi.)." + halloy_test_nogh_win: "GitHub CLI mangler. Installer det fra https://cli.github.com, kjør `gh auth login`, og start installasjonsprogrammet på nytt. Dette er en privat testversjon av Woggle, basert på Halloy. Hvis du vil ha tilgang for å prøve den, send R3d en melding enten på IRC (ScoutLink, nick R3d) eller Discord (akai_shi.)." show_guide: Vis guiden guide_title: Slik bruker du ScoutLink guide_pick: Hva vil du gjøre? @@ -204,15 +204,15 @@ da: halloy_install_failed: "Kunne ikke installere Halloy: {e}" halloy_server_added: "ScoutLink-serveren er tilføjet i Halloy ({chans}, kaldenavn {nick})" halloy_server_kept: Halloy har allerede en ScoutLink-server, den er ikke ændret - halloy_test: "Halloy (ScoutLink) – testversion" - halloy_test_desc: "Privat testversion af Halloy med ScoutLink-funktioner. Kun Linux og Windows, og du skal have adgang." - halloy_test_installing: "Installerer Halloy (ScoutLink) ... det kan tage lang tid, hvis den skal bygges" - halloy_test_installed: "Halloy (ScoutLink) er installeret" - halloy_test_noaccess: "Dette er en privat testversion af Halloy. Hvis du vil have adgang til at prøve den, så send R3d en besked enten på IRC (ScoutLink, nick R3d) eller Discord (akai_shi.)." + halloy_test: "Woggle – testversion" + halloy_test_desc: "Privat testversion af Woggle, baseret på Halloy med ScoutLink-funktioner. Kun Linux og Windows, og du skal have adgang." + halloy_test_installing: "Installerer Woggle ... det kan tage lang tid, hvis den skal bygges" + halloy_test_installed: "Woggle er installeret" + halloy_test_noaccess: "Dette er en privat testversion af Woggle, baseret på Halloy. Hvis du vil have adgang til at prøve den, så send R3d en besked enten på IRC (ScoutLink, nick R3d) eller Discord (akai_shi.)." halloy_test_nocargo: "Cargo mangler. Installer Rust fra https://rustup.rs og start installationsprogrammet igen." - halloy_test_failed: "Kunne ikke installere Halloy (ScoutLink): {e}" + halloy_test_failed: "Kunne ikke installere Woggle: {e}" halloy_test_norelease_win: "Der er endnu ingen Windows-version at hente. Prøv igen senere." - halloy_test_nogh_win: "GitHub CLI mangler. Installer det fra https://cli.github.com, kør `gh auth login`, og start installationsprogrammet igen. Dette er en privat testversion af Halloy. Hvis du vil have adgang til at prøve den, så send R3d en besked enten på IRC (ScoutLink, nick R3d) eller Discord (akai_shi.)." + halloy_test_nogh_win: "GitHub CLI mangler. Installer det fra https://cli.github.com, kør `gh auth login`, og start installationsprogrammet igen. Dette er en privat testversion af Woggle, baseret på Halloy. Hvis du vil have adgang til at prøve den, så send R3d en besked enten på IRC (ScoutLink, nick R3d) eller Discord (akai_shi.)." show_guide: Vis guiden guide_title: Sådan bruger du ScoutLink guide_pick: Hvad vil du gøre? @@ -320,15 +320,15 @@ sv: halloy_install_failed: "Det gick inte att installera Halloy: {e}" halloy_server_added: "ScoutLink-servern har lagts till i Halloy ({chans}, smeknamn {nick})" halloy_server_kept: Halloy har redan en ScoutLink-server, den är inte ändrad - halloy_test: "Halloy (ScoutLink) – testversion" - halloy_test_desc: "Privat testversion av Halloy med ScoutLink-funktioner. Bara Linux och Windows, och du behöver ha åtkomst." - halloy_test_installing: "Installerar Halloy (ScoutLink) ... det kan ta lång tid om den måste byggas" - halloy_test_installed: "Halloy (ScoutLink) är installerat" - halloy_test_noaccess: "Det här är en privat testversion av Halloy. Om du vill ha åtkomst för att prova den, skicka ett meddelande till R3d antingen på IRC (ScoutLink, nick R3d) eller Discord (akai_shi.)." + halloy_test: "Woggle – testversion" + halloy_test_desc: "Privat testversion av Woggle, baserad på Halloy med ScoutLink-funktioner. Bara Linux och Windows, och du behöver ha åtkomst." + halloy_test_installing: "Installerar Woggle ... det kan ta lång tid om den måste byggas" + halloy_test_installed: "Woggle är installerat" + halloy_test_noaccess: "Det här är en privat testversion av Woggle, baserad på Halloy. Om du vill ha åtkomst för att prova den, skicka ett meddelande till R3d antingen på IRC (ScoutLink, nick R3d) eller Discord (akai_shi.)." halloy_test_nocargo: "Cargo saknas. Installera Rust från https://rustup.rs och starta installationsprogrammet igen." - halloy_test_failed: "Det gick inte att installera Halloy (ScoutLink): {e}" + halloy_test_failed: "Det gick inte att installera Woggle: {e}" halloy_test_norelease_win: "Det finns ännu ingen Windows-version att ladda ner. Försök igen senare." - halloy_test_nogh_win: "GitHub CLI saknas. Installera det från https://cli.github.com, kör `gh auth login` och starta installationsprogrammet igen. Det här är en privat testversion av Halloy. Om du vill ha åtkomst för att prova den, skicka ett meddelande till R3d antingen på IRC (ScoutLink, nick R3d) eller Discord (akai_shi.)." + halloy_test_nogh_win: "GitHub CLI saknas. Installera det från https://cli.github.com, kör `gh auth login` och starta installationsprogrammet igen. Det här är en privat testversion av Woggle, baserad på Halloy. Om du vill ha åtkomst för att prova den, skicka ett meddelande till R3d antingen på IRC (ScoutLink, nick R3d) eller Discord (akai_shi.)." show_guide: Visa guiden guide_title: Så använder du ScoutLink guide_pick: Vad vill du göra? @@ -436,15 +436,15 @@ en: halloy_install_failed: "Could not install Halloy: {e}" halloy_server_added: "The ScoutLink server was added to Halloy ({chans}, nickname {nick})" halloy_server_kept: Halloy already has a ScoutLink server, it was not changed - halloy_test: "Halloy (ScoutLink) test version" - halloy_test_desc: "Private test build of Halloy with ScoutLink features. Linux and Windows only, and you need access." - halloy_test_installing: "Installing Halloy (ScoutLink) ... this can take a long time if it has to be built" - halloy_test_installed: "Halloy (ScoutLink) is installed" - halloy_test_noaccess: "This is a private test version of Halloy. If you want access to try it, send R3d a message on either IRC (ScoutLink, nick R3d) or Discord (akai_shi.)." + halloy_test: "Woggle test version" + halloy_test_desc: "Private test build of Woggle, based on Halloy with ScoutLink features. Linux and Windows only, and you need access." + halloy_test_installing: "Installing Woggle ... this can take a long time if it has to be built" + halloy_test_installed: "Woggle is installed" + halloy_test_noaccess: "This is a private test version of Woggle, based on Halloy. If you want access to try it, send R3d a message on either IRC (ScoutLink, nick R3d) or Discord (akai_shi.)." halloy_test_nocargo: "Cargo is missing. Install Rust from https://rustup.rs and start the installer again." - halloy_test_failed: "Could not install Halloy (ScoutLink): {e}" + halloy_test_failed: "Could not install Woggle: {e}" halloy_test_norelease_win: "There is no Windows build to download yet. Try again later." - halloy_test_nogh_win: "GitHub CLI is missing. Install it from https://cli.github.com, run `gh auth login`, and start the installer again. This is a private test version of Halloy. If you want access to try it, send R3d a message on either IRC (ScoutLink, nick R3d) or Discord (akai_shi.)." + halloy_test_nogh_win: "GitHub CLI is missing. Install it from https://cli.github.com, run `gh auth login`, and start the installer again. This is a private test version of Woggle, based on Halloy. If you want access to try it, send R3d a message on either IRC (ScoutLink, nick R3d) or Discord (akai_shi.)." show_guide: Show the guide guide_title: How to use ScoutLink guide_pick: What do you want to do? diff --git a/tools/test_clients.py b/tools/test_clients.py index 65d368b..35866ee 100644 --- a/tools/test_clients.py +++ b/tools/test_clients.py @@ -279,13 +279,31 @@ def test_installer(): own = withsrv + '\n[scoutlink]\nlanguage = "sv"\n' check("halloy test section kept if present", setup.halloy_add_scoutlink_section(own, "da"), own) check("halloy test option platforms", setup.halloy_test_available(), sys.platform.startswith("linux") or os.name == "nt") - check("halloy test windows asset", setup.HAL_TEST_ASSET_WINDOWS, "halloy-scoutlink-windows-x86_64.zip") + check("halloy test windows asset", setup.HAL_TEST_ASSET_WINDOWS[0], "woggle-windows-x86_64.zip") check("halloy test linux members", setup.halloy_test_members(["x/halloy-scoutlink", "halloy-scoutlink.png"], "linux"), ("x/halloy-scoutlink", "halloy-scoutlink.png")) check("halloy test windows members", setup.halloy_test_members(["halloy-scoutlink.exe", "halloy-scoutlink.ico"], "windows"), ("halloy-scoutlink.exe", "halloy-scoutlink.ico")) - check("halloy test desktop icon", "Icon=halloy-scoutlink\n" in setup.HAL_TEST_DESKTOP, True) - check("halloy test linux asset", setup.HAL_TEST_ASSET_LINUX, "halloy-scoutlink-linux-x86_64*") + check("woggle linux members", setup.halloy_test_members(["woggle", "woggle.png"], "linux"), ("woggle", "woggle.png")) + check("woggle windows members prefer new", setup.halloy_test_members(["halloy-scoutlink.exe", "woggle.exe", "woggle.ico"], "windows"), + ("woggle.exe", "woggle.ico")) + check("woggle desktop name", "Name=Woggle\n" in setup.HAL_TEST_DESKTOP, True) + with tempfile.TemporaryDirectory() as h: + h = Path(h) + old_desktop = h / ".local" / "share" / "applications" / "halloy-scoutlink.desktop" + old_desktop.parent.mkdir(parents=True) + old_desktop.write_text("[Desktop Entry]\nName=Halloy (ScoutLink)\n") + (h / ".local" / "bin").mkdir(parents=True) + (h / ".local" / "bin" / "halloy-scoutlink").write_text("x") + binary = h / "b" + binary.write_text("x") + setup.halloy_test_write_launcher(binary, None, home=h) + check("woggle replaces old launcher", (old_desktop.exists(), (h / ".local/bin/halloy-scoutlink").exists(), + (h / ".local/bin/woggle").exists(), + (h / ".local/share/applications/woggle.desktop").exists()), + (False, False, True, True)) + check("halloy test desktop icon", "Icon=woggle\n" in setup.HAL_TEST_DESKTOP, True) + check("halloy test linux asset", setup.HAL_TEST_ASSET_LINUX, ("woggle-linux-x86_64*", "halloy-scoutlink-linux-x86_64*")) # Test builds are prereleases: the download must name the tag, plain "latest" never finds them. calls = [] real_run = setup.halloy_test_run