Przejdź do treści
Biblioteka skilli
Programowanie · Analiza

hexiso-platform

/hexiso-platform

Opisuje integrację HEXISO z Windows i sposób przeniesienia funkcji dysków na Linuksa: montowanie, wypalanie, formatowanie i konsolę.

Repozytorium
hexiso ↗
Licencja
AGPL-3.0
Ostatnia zmiana repozytorium
12.11.2026

Ocena i bezpieczeństwo

80/ 100Klasa: dobry
Format20 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść20 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
1
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 12.11.2026, bez odwołań do wycofanych modeli i API.

Licencja

AGPL-3.0, copyleft: przeróbki udostępniane innym muszą mieć tę samą licencję.

Co robi i kiedy

Opisuje integrację HEXISO z Windows i sposób przeniesienia funkcji dysków na Linuksa: montowanie, wypalanie, formatowanie i konsolę.

Oryginalny opis (EN)

How HEXISO integrates with Windows (drives.rs: Win32 calls, PowerShell, isoburn, console handling) and how to port the drive features to Linux. Use when touching drives, mounting, burning, formatting, ripping or start-up/console behaviour.

Jak działa

  1. Windows today
  2. Porting to Linux (not done yet)
Sekcje z nagłówków SKILL.md, w oryginale · 52 linii, 434 słów
Podgląd SKILL.md
---
name: hexiso-platform
description: How HEXISO integrates with Windows (drives.rs: Win32 calls, PowerShell, isoburn, console handling) and how to port the drive features to Linux. Use when touching drives, mounting, burning, formatting, ripping or start-up/console behaviour.
---

# Platform integration

Everything that reads, writes or converts images is portable Rust. OS integration is isolated in
`src/drives.rs` (plus console handling in `main.rs` and the icon resource in `build.rs`).

## Windows today

| Feature | Mechanism | Function |
|---|---|---|
| List drives | `GetLogicalDrives`, `GetDriveTypeW`, `GetVolumeInformationW`, `GetDiskFreeSpaceExW` (`windows-sys`) | `drives::list` (always called off the UI thread) |
| Device size | `DeviceIoControl(IOCTL_DISK_GET_LENGTH_INFO)` on `\\.\X:` | `device_length` |
| Read discs / USB | `\\.\X:` opened with Rust's `File` + positional reads | `source::DriveSource` |
| Audio CD | `IOCTL_CDROM_READ_TOC`, `IOCTL_CDROM_RAW_READ` (2352-byte sectors, 3 retries, zero-fill) | `read_toc`, `rip_tracks` |
| Mount / unmount / list | PowerShell `Mount-DiskImage`, `Dismount-DiskImage` (looped until detached), `Get-Volume \| Get-DiskImage` | `mount`, `unmount`, `mounted` |
| Burn | starts `%SystemRoot%\System32\isoburn.exe /Q X: image` | `burn` |
| Format | PowerShell `Format-Volume` | `format_drive` |
| Eject | PowerShell, Shell COM `Eject` verb | `eject` |
| Open files / folders | `cmd /c start`, `explorer /select,` | `open_in_shell`, `doc_header` |

PowerShell is run hidden (`CREATE_NO_WINDOW`) with `-NoProfile -NonInteractive` through `ps()`;
arguments are single-quoted with `q()` (doubles embedded quotes). **Always quote user paths with
`q()`.** The first stderr line becomes the error message.

Mount notes: Windows mounts `.iso`, `.vhd`, `.vhdx` only (other formats are converted to
`%TEMP%\hexiso\iso\*.iso` first); the same file can be attached several times, so `unmount` loops;
"mount another copy" uses a hard link in `%TEMP%\hexiso\mount`.

Console: the exe is a console-subsystem program so the CLI gets stdout / exit codes. For the window,
`detach_console` frees a console it owns, or relaunches itself detached (`HEXISO_FOREGROUND=1` set
on the child) when it shares a terminal, so terminals are never blocked. `--screenshot` never
relaunches.

## Porting to Linux (not done yet)

The crate should compile on Linux already (Windows code is `#[cfg(windows)]`, `read_at` has a Unix
branch, the CLI and engine are portable, `soft.rs` uses winit + softbuffer which support X11/Wayland).
What has to be written, all in `drives.rs` (+ `DriveSource` in `source.rs`):

| Feature | Linux approach |
|---|---|
| List drives | `lsblk --json -o NAME,TYPE,RM,SIZE,LABEL,FSTYPE,MOUNTPOINT` or `/sys/block` |
| Device size / read | open `/dev/sr0`, `/dev/sdX`; `ioctl(BLKGETSIZE64)` |
| Audio CD | `CDROMREADTOCHDR`, `CDROMREADTOCENTRY`, `CDROMREADAUDIO` ioctls |
| Mount | `udisksctl loop-setup -f img` + `udisksctl mount -b /dev/loopN` (no root) |
| Burn | `xorriso -as cdrecord` / `growisofs`, or libburn |
| Format | `mkfs.vfat` / `mkfs.exfat` / `mkfs.ntfs` via udisks |
| Open in file manager | `xdg-open` (already used) |

Keep the same function signatures so `app.rs`, `dialogs.rs` and `cli.rs` don't change, and keep a
clear error for anything unsupported.

Wersje

W bazie nie ma innych skilli o nazwie hexiso-platform.

Migawka bazy z 13.11.2026 · wersja paczki 4b0f97458b87 (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 0 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 93hexiso-testing
    Uruchamia testy HEXISO: samotest silnika, test dymny PowerShell, zrzuty ekranu i sprawdzenia wydajności renderowania przed zakończeniem zmiany.
  • 85hexiso-contributing
    Opisuje konwencje stylu, przepływu pracy, commitów i pull requestów w projekcie HEXISO, które należy spełnić przed zgłoszeniem zmian.
  • 98powershell-windows
    Pokazuje pułapki PowerShell w Windows: operatory logiczne, cytowanie, kodowanie, ścieżki i obsługę błędów.
  • 98powershell-windows
    Zbiera pułapki PowerShell w Windows: operatory, wyjście ASCII, głębokość ConvertTo-Json, ścieżki i obsługę błędów.
  • 90powershell
    Pisze niezawodne polecenia i skrypty .ps1 w PowerShell 7 na Windows, unikając pułapek z przeniesionych nawyków bash: cudzysłowy, kody wyjścia, JSON i ścieżki.
  • 98powershell-core
    Pomaga pisać skrypty i automatyzować zadania w PowerShell 7+: cmdlety, potoki, obiekty, moduły, obsługa błędów, remoting i różnice względem Windows PowerShell 5.1.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.