Skip to content

Commit df9883b

Browse files
committed
mise en place d'une première ui
1 parent 9678c93 commit df9883b

11 files changed

Lines changed: 500 additions & 127 deletions

File tree

.github/workflows/build-ui.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Build UI executables
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
build:
9+
runs-on: ${{ matrix.os }}
10+
strategy:
11+
matrix:
12+
os: [ubuntu-latest, macos-latest, windows-latest]
13+
14+
steps:
15+
- uses: actions/checkout@v4
16+
17+
- name: Set up Python
18+
uses: actions/setup-python@v4
19+
with:
20+
python-version: '3.11'
21+
22+
- name: Install dependencies
23+
run: |
24+
python -m pip install --upgrade pip
25+
python -m pip install -r ui/requirements.txt
26+
27+
- name: Build executable
28+
run: |
29+
# choose separator for add-data
30+
if [[ "${{ matrix.os }}" == "windows-latest" ]]; then SEP=';'; else SEP=':'; fi
31+
python -m PyInstaller --name ok_computer_ui-${{ matrix.os }} --onefile \
32+
--add-data "ui/templates${SEP}templates" \
33+
--add-data "ui/static${SEP}static" \
34+
ui/app.py
35+
shell: bash
36+
37+
- name: Upload artifact
38+
uses: actions/upload-artifact@v4
39+
with:
40+
name: ok_computer_ui-${{ matrix.os }}
41+
path: dist/*

README.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -390,29 +390,29 @@ Synchronisez vos paramètres, thème et extensions VS Code :
390390
✅ Non commité : le chemin personnel n'est pas dans le repo
391391
✅ Symlinks : les fichiers sont liés, pas copiés
392392

393-
## Wi-Fi depuis KeePassXC
393+
## Wi-Fi from KeePassXC
394394

395-
Importez vos mots de passe Wi-Fi depuis un vault KeePassXC pour macOS, Windows ou Linux.
395+
Import your Wi‑Fi passwords from a KeePassXC vault for macOS, Windows, or Linux.
396396

397-
Pré-requis : keepassxc-cli installé, vault kdbx avec un groupe (par défaut "Wi-Fi") où le Title = SSID et le Password = clé Wi-Fi. Attributs optionnels : "security" (WPA2/WPA3/OPEN) et "hidden" (true/false).
397+
Prerequisites: keepassxc-cli installed and available in PATH. The kdbx vault should contain a group (default "WiFi") where Title = SSID and Password = Wi‑Fi key. Optional attributes: "security" (WPA2/WPA3/OPEN) and "hidden" (true/false).
398398

399-
Exemple d'exécution :
399+
Example:
400400
```bash
401-
bash src/wifi_from_kdbx.sh --db /chemin/vers/vault.kdbx --group "Wi-Fi"
401+
bash src/wifi_from_kdbx.sh --db /path/to/vault.kdbx --group "WiFi"
402402
```
403403

404-
Variables dans `.env.local` (optionnel, utilisées par [src/init.sh](src/init.sh) pour lancer l'import automatiquement en fin de run) :
405-
- `WIFI_KDBX_DB="/chemin/vers/vault.kdbx"`
406-
- `WIFI_KDBX_GROUP="Wi-Fi"` (par défaut)
407-
- `WIFI_KDBX_KEY_FILE="/chemin/vers/clef.key"` (si besoin)
408-
- `WIFI_KDBX_ASK_PASS=1` pour forcer la saisie interactive (pas de mot de passe dans un fichier/env)
409-
- `WIFI_KDBX_DRY_RUN=1` pour simuler
404+
Optional `.env.local` variables (used by [src/init.sh](src/init.sh) to run import automatically at the end of initialization):
405+
- `WIFI_KDBX_DB="/path/to/vault.kdbx"`
406+
- `WIFI_KDBX_GROUP="WiFi"` (default)
407+
- `WIFI_KDBX_KEY_FILE="/path/to/keyfile.key"` (if needed)
408+
- `WIFI_KDBX_ASK_PASS=1` to force interactive password prompt (do not store passwords in files/env)
409+
- `WIFI_KDBX_DRY_RUN=1` to simulate actions
410410

411-
Options utiles :
412-
- `--key-file <fichier>` : si le vault utilise un keyfile
413-
- `--dry-run` : affiche les actions sans modifier le système
414-
- Authentification : laissez keepassxc-cli demander le mot de passe, ou exportez `KEEPASSXC_CLI_PASSWORD` avant d'exécuter le script
415-
- Voir le script : [src/wifi_from_kdbx.sh](src/wifi_from_kdbx.sh)
411+
Useful options:
412+
- `--key-file <file>` : if the vault uses a keyfile
413+
- `--dry-run` : show actions without modifying the system
414+
- Authentication: let keepassxc-cli prompt for the password, or export `KEEPASSXC_CLI_PASSWORD` before running the script
415+
- See the script: [src/wifi_from_kdbx.sh](src/wifi_from_kdbx.sh)
416416

417417
## Tests des scripts
418418

0 commit comments

Comments
 (0)