[170][30][261] Linux-App: AppImage im Container gebaut und mit Playwright-Electron geprüft, vier Fehler behoben

Linux ist ab 1.0 offiziell (Entscheid 16.11.). Das AppImage wird wie im Release gebaut
(npm run build && npm run electron:pack) und mit `npm run test:linux-app` bedient
(e2e/linuxApp170.spec.ts, Playwright _electron, Xvfb; im normalen e2e-Lauf übersprungen):
Start, Kern, Wand per Befehlszeile, Speichern atomar mit .obp~, Strg+S, Öffnen per Dialog
und per Argument, PDF/DXF auf die Platte, Autosave-Wiederherstellen nach kill -9.
Grün über FUSE, mit APPIMAGE_EXTRACT_AND_RUN=1 und entpackt (linux-unpacked).

Behoben:
- scripts/electron-files.cjs fehlte in `files` von electron-builder.yml: das gepackte
  Programm startete nicht („Cannot find module“). Test src/native/electronPackage.test.ts
  prüft alle require() von Hauptprozess und Preload gegen die Paketliste.
- `dossier datei.obp`: Datei wurde hinter dem Startbildschirm geladen bzw. wartete auf eine
  Rückfrage, die dort nicht erscheint; jetzt direkt in den Editor (onLaunchFile).
- Strg+S / Strg+Umschalt+S / Strg+O gab es nur im nativen Tauri-Menü; jetzt auch im
  Browser/Electron (useFileShortcuts, fileShortcutFor + Test).
- Datei → „Exportieren: PDF“ fehlte im Browser/Electron (nur natives Menü); ergänzt, e2e io.spec.ts.

Buildnummer [261]: Vite schreibt dist/build-info.json; scripts/electron-pack.cjs gibt sie über
die electron-builder-API als buildVersion und extraMetadata.dossierBuild weiter (über `-c.` auf der
Kommandozeile würde „261116.10“ zur Zahl). release.yml: `--version=` statt `-c.extraMetadata.version`,
neuer Schritt „AppImage prüfen“ (xvfb, libfuse2t64; nicht auf GitHub gelaufen).

Doku: doc/RELEASE-1.0.md Abschnitt 15 (Linux-App, Status je Schritt), Release-Notes Linux,
README „Linux installieren“, TODO [170]/[261].

Geprüft: npm run check --fast (tsc, vitest) grün; e2e io/datensicherheit116/start im Browser grün;
test:linux-app dreimal grün. Nicht geprüft: Rust-Tests (nichts geändert), echte GPU, Wayland,
GTK-Dialoge von Hand, Sandbox als normaler Benutzer, Mac/Tauri.
This commit is contained in:
Claude committed 2026-11-16 10:47:51 +00:00
1 parent a03f4432bc
commit 64563dba44
22 files changed
+643 -30

No files matched your search

+4 -1
View File
@@ -33,6 +33,7 @@ export interface AppMenuBarProps {
onImportPointCloud?: () => void;
onImportMesh?: () => void;
/** Datei: Export-Dialoge (im Browser/Electron die einzige Quelle — das native Menü gibt es nur unter Tauri). */
onExportPdf?: () => void;
onExportDxf?: () => void;
onExportIfc?: () => void;
onExportObj?: () => void;
@@ -79,6 +80,7 @@ export const AppMenuBar = memo(function AppMenuBar({
onImport,
onImportPointCloud,
onImportMesh,
onExportPdf,
onExportDxf,
onExportIfc,
onExportObj,
@@ -116,7 +118,8 @@ export const AppMenuBar = memo(function AppMenuBar({
{ label: t("file.import"), onSelect: onImport },
...(onImportPointCloud ? [{ label: t("menu.native.importPointCloud"), onSelect: onImportPointCloud }] : []),
...(onImportMesh ? [{ label: t("menu.native.importMesh"), onSelect: onImportMesh }] : []),
...(onExportDxf || onExportIfc || onExportObj || onExportStl ? [{ divider: true }] : []),
...(onExportPdf || onExportDxf || onExportIfc || onExportObj || onExportStl ? [{ divider: true }] : []),
...(onExportPdf ? [{ label: `${t("menu.native.export")}: PDF`, onSelect: onExportPdf }] : []),
...(onExportDxf ? [{ label: `${t("menu.native.export")}: DXF`, onSelect: onExportDxf }] : []),
...(onExportIfc ? [{ label: `${t("menu.native.export")}: IFC`, onSelect: onExportIfc }] : []),
...(onExportObj ? [{ label: `${t("menu.native.export")}: OBJ`, onSelect: onExportObj }] : []),
+2
View File
@@ -47,6 +47,7 @@ export type TopBarEvents = Required<
| "onOpenHistory"
>
> & {
onOpenExportPdf: () => void;
onOpenExportDxf: () => void;
applyScale: ViewRibbonTabProps["onApplyScale"];
fitPlan: ViewRibbonTabProps["onFit"];
@@ -139,6 +140,7 @@ export function useTopBarElements(opts: {
onImport={ev.onImport}
onImportPointCloud={ev.onImportPointCloud}
onImportMesh={ev.onImportMesh}
onExportPdf={ev.onOpenExportPdf}
onExportDxf={ev.onOpenExportDxf}
onExportIfc={ev.onExportIfc}
onExportObj={ev.onExportObj}