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
2 changes: 2 additions & 0 deletions CHANGELOG.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
English (US) release notes, mirroring CHANGELOG.md (Brazilian Portuguese). Before publishing a version, add a `## [VERSION]` section to **both** files: the workflow publishes the section matching the tag from each one and fails if either is missing.

## [Unreleased]
### Changes
- **Receive test versions** now brings betas only. Alpha versions, like those of the upcoming 2.0, are closed tests and no longer arrive through the app's updates, even with the option on. (#223)

## [1.7.1-beta.3]
### Fixes
Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
Notas em português do Brasil; a versão em inglês (Estados Unidos) fica em `CHANGELOG.en-US.md`. Antes de publicar uma versão, adicione uma seção `## [VERSÃO]` com o changelog daquela versão **nos dois arquivos**. O workflow publica as duas seções correspondentes à tag na mesma release e falha se faltar alguma.

## [Unreleased]
### Mudanças
- **Receber versões de teste** agora traz só as betas. As versões alpha, como as da futura 2.0, são testes fechados e não chegam mais pela atualização do app, nem com a opção ligada. (#223)

## [1.7.1-beta.3]
### Correções
Expand Down
2 changes: 1 addition & 1 deletion README.de-DE.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Hol dir die neueste stabile Version unter **[Releases](https://github.com/lippde
- **`ConsoleMode-Portable-x64.exe`**: eine einzelne EXE, die ihre Daten direkt daneben speichert.
- Oder mit winget: `winget install lippdev.ConsoleMode`

Du willst Neues vor allen anderen ausprobieren? Schalte unter System → App „Testversionen erhalten (Alpha und Beta)“ ein.
Du willst Neues vor allen anderen ausprobieren? Schalte unter System → App „Testversionen erhalten (Beta)“ ein.

Windows 10 oder 11, dazu [Steam](https://store.steampowered.com/) (Big Picture), [Playnite](https://playnite.link/) oder die Xbox-App. [RTSS](https://www.guru3d.com/files-details/rtss-rivatuner-statistics-server-download.html) ist optional, für die FPS-Begrenzung und die FPS-Anzeige.

Expand Down
2 changes: 1 addition & 1 deletion README.es-ES.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Descarga la última versión estable desde **[la página de releases](https://gi
- **`ConsoleMode-Portable-x64.exe`**: un solo exe que guarda sus datos a su lado.
- O con winget: `winget install lippdev.ConsoleMode`

¿Quieres probar lo que viene antes que nadie? Activa Sistema → Aplicación → "Recibir versiones de prueba (alfa y beta)".
¿Quieres probar lo que viene antes que nadie? Activa Sistema → Aplicación → "Recibir versiones de prueba (beta)".

Windows 10 u 11, más [Steam](https://store.steampowered.com/) (Big Picture), [Playnite](https://playnite.link/) o la aplicación Xbox. [RTSS](https://www.guru3d.com/files-details/rtss-rivatuner-statistics-server-download.html) es opcional, para el límite de FPS y el contador de FPS.

Expand Down
2 changes: 1 addition & 1 deletion README.fr-FR.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Récupérez la dernière version stable sur **[la page des versions](https://git
- **`ConsoleMode-Portable-x64.exe`** : un seul exe qui garde ses données à côté de lui.
- Ou avec winget : `winget install lippdev.ConsoleMode`

Envie d'essayer la suite avant tout le monde ? Activez Système → Application → « Recevoir les versions de test (alpha et bêta) ».
Envie d'essayer la suite avant tout le monde ? Activez Système → Application → « Recevoir les versions de test (bêta) ».

Windows 10 ou 11, plus [Steam](https://store.steampowered.com/) (Big Picture), [Playnite](https://playnite.link/) ou l'application Xbox. [RTSS](https://www.guru3d.com/files-details/rtss-rivatuner-statistics-server-download.html) est facultatif, pour la limite de FPS et le compteur de FPS.

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Get **[1.7.0](https://github.com/lippdev/consolemode/releases/tag/v1.7.0)**, the

On 1.6? The app offers the update and keeps your settings. Prefer the old interface, with its Desktop mode? The same release has **Console Mode Legacy** (`ConsoleModeLegacy-Setup-x64.exe` or `ConsoleModeLegacy-Portable-x64.exe`): 1.6.2 as it was, sharing your settings with the current version. It is frozen: no fixes and no updates.

Want to try what comes next before everyone else? Turn on System → App → "Receive test versions (alpha and beta)".
Want to try what comes next before everyone else? Turn on System → App → "Receive test versions (beta)".

Windows 10 or 11, plus [Steam](https://store.steampowered.com/) (Big Picture), [Playnite](https://playnite.link/) or the Xbox app. [RTSS](https://www.guru3d.com/files-details/rtss-rivatuner-statistics-server-download.html) is optional, for the FPS limit and the FPS counter.

Expand Down
2 changes: 1 addition & 1 deletion README.pt-BR.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Baixe a **[1.7.0](https://github.com/lippdev/consolemode/releases/tag/v1.7.0)**,

Está na 1.6? O app oferece a atualização e mantém suas configurações. Prefere a interface antiga, com o modo Desktop? A mesma release tem o **Console Mode Legacy** (`ConsoleModeLegacy-Setup-x64.exe` ou `ConsoleModeLegacy-Portable-x64.exe`): a 1.6.2 como era, dividindo seus ajustes com a versão atual. Está congelado: sem correções e sem atualizações.

Quer testar o que vem aí antes de todo mundo? Ligue Sistema → App → "Receber versões de teste (alpha e beta)".
Quer testar o que vem aí antes de todo mundo? Ligue Sistema → App → "Receber versões de teste (beta)".

Windows 10 ou 11, com [Steam](https://store.steampowered.com/) (Big Picture), [Playnite](https://playnite.link/) ou o app Xbox. O [RTSS](https://www.guru3d.com/files-details/rtss-rivatuner-statistics-server-download.html) é opcional, para o limite de FPS e o contador de FPS.

Expand Down
2 changes: 1 addition & 1 deletion README.ru-RU.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ https://github.com/user-attachments/assets/9f244c06-76e5-4ccb-ab66-e637eae900ec
- **`ConsoleMode-Portable-x64.exe`**: один exe-файл, который хранит данные рядом с собой.
- Или через winget: `winget install lippdev.ConsoleMode`

Хотите опробовать новинки раньше всех? Включите «Система» → «Приложение» → «Получать тестовые версии (альфа и бета)».
Хотите опробовать новинки раньше всех? Включите «Система» → «Приложение» → «Получать тестовые версии (бета)».

Windows 10 или 11, а также [Steam](https://store.steampowered.com/) (Big Picture), [Playnite](https://playnite.link/) или приложение Xbox. [RTSS](https://www.guru3d.com/files-details/rtss-rivatuner-statistics-server-download.html) необязателен: он нужен для ограничения FPS и счётчика FPS.

Expand Down
2 changes: 1 addition & 1 deletion src/ConsoleMode/Resources/Strings.de-DE.json
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@
"CheckNow": "Jetzt suchen",
"NotifyUpdatesCard": "Bei einer neuen Version benachrichtigen",
"NotifyUpdatesDescription": "Prüft beim Start der App die GitHub-Releases.",
"BetaUpdatesCard": "Testversionen erhalten (Alpha und Beta)",
"BetaUpdatesCard": "Testversionen erhalten (Beta)",
"BetaUpdatesDescription": "Erhalte Vorabversionen, um beim Testen zu helfen. Sie können Fehler enthalten. Wenn du diese Option deaktivierst, wechselst du nicht zur stabilen Version zurück: Du erhältst die nächste stabile Version, sobald sie erscheint.",
"BetaUpdatesWarning": "Testversionen können auf manchen Systemen Probleme verursachen. Wenn etwas nicht mehr funktioniert, lade die stabile Version von der Releases-Seite herunter und sende uns über die Feedback-Schaltfläche eine Rückmeldung.",
"HelpDataSection": "Tastenkombination, Hilfe und Daten",
Expand Down
2 changes: 1 addition & 1 deletion src/ConsoleMode/Resources/Strings.en-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@
"CheckNow": "Check now",
"NotifyUpdatesCard": "Notify me when a new version is available",
"NotifyUpdatesDescription": "Checks GitHub releases when the app starts.",
"BetaUpdatesCard": "Receive test versions (alpha and beta)",
"BetaUpdatesCard": "Receive test versions (beta)",
"BetaUpdatesDescription": "Get early versions before everyone else to help test them. They can have bugs. Turning this off doesn't go back to the stable version: you'll get the next stable one when it comes out.",
"BetaUpdatesWarning": "Test versions can fail on some setups. If something breaks, download the stable version from the releases page and tell us with the feedback button.",
"HelpDataSection": "Shortcut, help, and data",
Expand Down
2 changes: 1 addition & 1 deletion src/ConsoleMode/Resources/Strings.es-ES.json
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@
"CheckNow": "Buscar ahora",
"NotifyUpdatesCard": "Avisarme cuando haya una versión nueva",
"NotifyUpdatesDescription": "Consulta las versiones de GitHub al abrir la aplicación.",
"BetaUpdatesCard": "Recibir versiones de prueba (alfa y beta)",
"BetaUpdatesCard": "Recibir versiones de prueba (beta)",
"BetaUpdatesDescription": "Recibe las versiones nuevas antes que nadie para ayudar a probarlas. Pueden tener errores. Desactivarlo no vuelve a la versión estable: recibirás la próxima estable cuando salga.",
"BetaUpdatesWarning": "Las versiones de prueba pueden fallar en algunas configuraciones. Si algo sale mal, descarga la versión estable en la página de versiones y cuéntanoslo con el botón de comentarios.",
"HelpDataSection": "Acceso directo, ayuda y datos",
Expand Down
2 changes: 1 addition & 1 deletion src/ConsoleMode/Resources/Strings.fr-FR.json
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@
"CheckNow": "Vérifier maintenant",
"NotifyUpdatesCard": "M'avertir quand une nouvelle version est disponible",
"NotifyUpdatesDescription": "Vérifie les versions publiées sur GitHub au démarrage de l'application.",
"BetaUpdatesCard": "Recevoir les versions de test (alpha et bêta)",
"BetaUpdatesCard": "Recevoir les versions de test (bêta)",
"BetaUpdatesDescription": "Recevez les versions en avant-première pour aider à les tester. Elles peuvent contenir des bugs. Désactiver cette option ne revient pas à la version stable : vous recevrez la prochaine version stable à sa sortie.",
"BetaUpdatesWarning": "Les versions de test peuvent échouer sur certaines configurations. En cas de problème, téléchargez la version stable sur la page des versions et signalez-le-nous avec le bouton de commentaires.",
"HelpDataSection": "Raccourci, aide et données",
Expand Down
2 changes: 1 addition & 1 deletion src/ConsoleMode/Resources/Strings.pt-BR.json
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@
"CheckNow": "Procurar agora",
"NotifyUpdatesCard": "Avisar quando sair versão nova",
"NotifyUpdatesDescription": "Consulta as releases no GitHub ao abrir o app.",
"BetaUpdatesCard": "Receber versões de teste (alpha e beta)",
"BetaUpdatesCard": "Receber versões de teste (beta)",
"BetaUpdatesDescription": "Recebe as versões novas antes de todo mundo para ajudar a testar. Elas podem ter bugs. Desligar não volta para a versão estável: você recebe a próxima estável quando ela sair.",
"BetaUpdatesWarning": "Versões de teste podem falhar em alguns setups. Se algo der errado, baixe a versão estável na página de releases e conte pelo botão de feedback.",
"HelpDataSection": "Atalho, ajuda e dados",
Expand Down
2 changes: 1 addition & 1 deletion src/ConsoleMode/Resources/Strings.ru-RU.json
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@
"CheckNow": "Проверить",
"NotifyUpdatesCard": "Сообщать о выходе новой версии",
"NotifyUpdatesDescription": "Проверяет релизы на GitHub при запуске приложения.",
"BetaUpdatesCard": "Получать тестовые версии (альфа и бета)",
"BetaUpdatesCard": "Получать тестовые версии (бета)",
"BetaUpdatesDescription": "Получайте ранние версии раньше всех и помогайте их тестировать. В них могут быть ошибки. Если выключить этот параметр, возврата к стабильной версии не будет: вы получите следующую стабильную, когда она выйдет.",
"BetaUpdatesWarning": "Тестовые версии могут не работать на некоторых конфигурациях. Если что-то сломалось, скачайте стабильную версию со страницы релизов и сообщите нам через кнопку отзыва.",
"HelpDataSection": "Ярлык, справка и данные",
Expand Down
12 changes: 11 additions & 1 deletion src/ConsoleMode/Services/UpdateChannel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,19 @@ namespace ConsoleMode.Services;
public static class UpdateChannel
{
/// <summary>
/// Test versions (alpha/beta) are offered when the user opted in, or when a test version is
/// Test versions (beta) are offered when the user opted in, or when a test version is
/// already installed. Turning the option off never downgrades: a test build keeps getting test
/// builds until a newer stable one comes out.
/// </summary>
public static bool IncludePrereleases(bool currentIsPrerelease, bool optedIn) => currentIsPrerelease || optedIn;

/// <summary>
/// Whether a version's pre-release label (the "beta" of 1.7.1-beta.2, empty for a stable one) can be offered at all.
/// Betas and release candidates go to testers; alphas never do, whatever the setting: the 2.0 alphas are a closed
/// test of another app and must not reach the 1.x test channel.
/// </summary>
public static bool IsOfferedLabel(string? preLabel) =>
string.IsNullOrEmpty(preLabel)
|| preLabel.StartsWith("beta", StringComparison.OrdinalIgnoreCase)
|| preLabel.StartsWith("rc", StringComparison.OrdinalIgnoreCase);
}
5 changes: 5 additions & 0 deletions src/ConsoleMode/Services/UpdateService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ private static HttpClient CreateClient()
// Old releases were tagged "release"/"app"; fall back to the version in the title.
var version = SemVer.TryFind(tag) ?? SemVer.TryFind(name);
if (version is null || version.CompareTo(current) <= 0) continue;
// Alphas (the 2.0 ones included) are never offered, test channel or not.
if (!UpdateChannel.IsOfferedLabel(version.PreLabel)) continue;
if (bestVersion is not null && version.CompareTo(bestVersion) <= 0) continue;

var (assetUrl, assetName, assetDigest) = PickAsset(release);
Expand Down Expand Up @@ -227,6 +229,9 @@ private SemVer(int[] core, string[] pre)

public bool IsPrerelease => _pre.Length > 0;

/// <summary>The first pre-release identifier ("beta" in 1.7.1-beta.2), empty for a stable version.</summary>
public string PreLabel => _pre.Length > 0 ? _pre[0] : "";

[GeneratedRegex(@"(\d+)\.(\d+)(?:\.(\d+))?(?:-([0-9A-Za-z.\-]+))?")]
private static partial Regex Pattern();

Expand Down
12 changes: 12 additions & 0 deletions tests/ConsoleMode.Tests/UpdateChannelTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,16 @@ public sealed class UpdateChannelTests
[InlineData(true, true, true)]
public void Test_versions_are_offered_when_opted_in_or_already_installed(bool currentIsPrerelease, bool optedIn, bool expected) =>
Assert.Equal(expected, UpdateChannel.IncludePrereleases(currentIsPrerelease, optedIn));

[Theory]
[InlineData("", true)] // stable
[InlineData(null, true)]
[InlineData("beta", true)] // 1.7.1-beta.2
[InlineData("Beta", true)]
[InlineData("rc", true)] // 1.8.0-rc.1
[InlineData("alpha", false)] // 2.0.0-alpha.1: a closed test, never offered
[InlineData("Alpha", false)]
[InlineData("dev", false)]
public void Only_betas_and_release_candidates_reach_the_test_channel(string? label, bool offered) =>
Assert.Equal(offered, UpdateChannel.IsOfferedLabel(label));
}
Loading