Skip to content

Commit 2f25c12

Browse files
authored
feat: show warning when installing handheld on desktop (#85)
* feat: show warning when installing handheld on desktop for handheld edition, use `chwd` to check if the device is a known handheld device or not. If it is not a known handheld device, show a warning that the user is trying to install the handheld edition on unsupported hardware Signed-off-by: SoulHarsh007 <[email protected]> * fix: use `/etc/edition-tag` instead of `/etc/version-tag` Signed-off-by: SoulHarsh007 <[email protected]> * chore: improve RU translation Signed-off-by: SoulHarsh007 <[email protected]> * chore: cleanup and use helper functions from `chwd` Signed-off-by: SoulHarsh007 <[email protected]> * chore: bump deps and make clippy happy Signed-off-by: SoulHarsh007 <[email protected]> --------- Signed-off-by: SoulHarsh007 <[email protected]>
1 parent 2731294 commit 2f25c12

14 files changed

+593
-146
lines changed

Cargo.lock

Lines changed: 548 additions & 141 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ serde_json = "1"
2424
reqwest = { version = "0.12", features = ["blocking"] }
2525
unic-langid = "0.9"
2626
phf = { version = "0.11", features = ["macros"], default-features = false }
27+
chwd = { git = "https://github.com/CachyOS/chwd", rev = "d7e7e65c5c2c0ffe0434adad9a0016617d1f8bb7", version = "1.10.0" }
2728

2829
[build-dependencies]
2930
anyhow = "1"

i18n/by/cachyos_hello.ftl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ calamares-install-type = тып усталёўкі Calamares
7676
7777
# Main Page (body)
7878
offline-error = Не ўдаецца запусціць анлайн-усталёўку! Няма падлучэння да Інтэрнэту
79+
unsupported-hw-warning = Вы спрабуеце ўсталяваць на абсталяванне, якое не падтрымліваецца бягучым ISO, ваша ўстаноўка не будзе мець права на падтрымку
7980
tweaksbrowser-label = Праграммы/Налады
8081
appbrowser-label = Устанавіць Праграммы
8182
launch-start-label = Запуск пры старту

i18n/cs/cachyos_hello.ftl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ calamares-install-type = Typ Instalace Calamares
7676
7777
# Hlavní stránka (tělo)
7878
offline-error = Nedá se spustit online instalace! Žádné internetové připojení
79+
unsupported-hw-warning = Pokoušíte se instalovat na hardware, který není podporován aktuální verzí ISO, vaše instalace nebude mít nárok na podporu
7980
tweaksbrowser-label = Aplikacie/Vylepšení
8081
appbrowser-label = Instalovat Aplikace
8182
launch-start-label = Spustit při startu

i18n/de/cachyos_hello.ftl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ section-project = PROJEKT
5656
5757
# Main Page (body)
5858
offline-error = Die Online-Installation kann nicht gestartet werden! Keine Internetverbindung
59+
unsupported-hw-warning = Sie versuchen, die Installation auf einer Hardware durchzuführen, die von der aktuellen ISO nicht unterstützt wird, und können daher keinen Support in Anspruch nehmen
5960
tweaksbrowser-label = Apps/Tweaks
6061
appbrowser-label = Apps installieren
6162
launch-start-label = Beim Systemstart ausführen

i18n/en/cachyos_hello.ftl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ calamares-install-type = Calamares install type
7878
7979
# Main Page (body)
8080
offline-error = Unable to start online installation! No internet connection
81+
unsupported-hw-warning = You are attempting to install on hardware not supported by the current ISO, your installation will not be eligible for support
8182
tweaksbrowser-label = Apps/Tweaks
8283
appbrowser-label = Install Apps
8384
launch-start-label = Launch at start

i18n/it/cachyos_hello.ftl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ section-project = PROGETTO
5656
5757
# Main Page (body)
5858
offline-error = Impossibile avviare l'installazione online! Connessione a internet assente
59+
unsupported-hw-warning = Si sta tentando di effettuare l'installazione su un hardware non supportato dall'ISO corrente; l'installazione non potrà beneficiare dell'assistenza
5960
tweaksbrowser-label = Applicazioni/Personalizzazioni
6061
appbrowser-label = Installa Applicazioni
6162
launch-start-label = Lancia all'avvio

i18n/nl/cachyos_hello.ftl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ calamares-install-type = Calamares-installatietype
7676
7777
# Main Page (body)
7878
offline-error = De installatie kan niet worden gestart: er is geen internetverbinding
79+
unsupported-hw-warning = U probeert te installeren op hardware die niet wordt ondersteund door de huidige ISO, uw installatie komt niet in aanmerking voor ondersteuning
7980
tweaksbrowser-label = Programma's/Aanpassingen
8081
appbrowser-label = Programma's installeren
8182
launch-start-label = Tonen na opstarten

i18n/pl/cachyos_hello.ftl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ section-project = PROJEKT
5656
5757
# Main Page (body)
5858
offline-error = Instalacja online niemożliwa! Brak połączenia internetowego
59+
unsupported-hw-warning = Próba instalacji na sprzęcie nieobsługiwanym przez aktualne ISO spowoduje, że instalacja nie będzie objęta pomocą techniczną
5960
tweaksbrowser-label = Programy/Usprawnienia
6061
appbrowser-label = Instalator Programów
6162
launch-start-label = Uruchamiaj przy starcie

i18n/ru/cachyos_hello.ftl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ calamares-install-type = Calamares тип установки
7575
7676
# Main Page (body)
7777
offline-error = Не удается запустить онлайн-установку! Нет подключения к Интернету
78+
unsupported-hw-warning = Вы пытаетесь установить систему на оборудовании, не поддерживаемом текущим ISO. Ваша установка не будет иметь поддержки
7879
tweaksbrowser-label = Приложения/Настройки
7980
appbrowser-label = Установить ПO
8081
launch-start-label = Автозапуск

0 commit comments

Comments
 (0)