Csomagolt asztali alkalmazás ellenőrzése
A kiadott program útvonalait, natív binárisait és indulását vizsgálja a fejlesztői mód sikerén túl.
desktop-packaging-verification
Nézd meg, miben segítMikor hasznos?
Akkor használd, ha alkalmazásod helyben működik, csomagolva viszont nem.
Miben segít neked?
- Külön oldja fel az alkalmazáserőforrásokat és írható felhasználói adatútvonalakat.
- Ellenőrzi a kísérőprogramot, archívumbontást és szóközös, ékezetes útvonalat.
- Elkülönített profillal indít, rögzíti a ténylegesen tesztelt platformokat.
Például ezt kérheted
Teszteld a csomagot ékezetes útvonalról, minimális grafikus környezettel és tiszta folyamatleállással. Szóközös, magyar ékezetes mappából indíts, hozz létre fájlt, majd lépj ki. Az erőforrások legyenek elérhetők, a saját gyermekfolyamatok álljanak le.
Részletes dokumentáció
Itt a skill eredeti útmutatóját, példáit és ellenőrzési szempontjait olvashatod az eredeti nyelven.
Összecsukás
Desktop Packaging & Verification
An application that runs in npm run dev frequently fails the moment it is packaged into a read-only .app bundle or Windows installer. Always design asset, binary, and database paths for the packaged layout and smoke-test the actual packaged binary.
Dev vs. Packaged Path Invariants
Never use process.cwd(), __dirname assumptions, or relative ./data writes for mutable files or external binaries:
| Resource Type | Dev Mode | Packaged Mode (app.isPackaged / Tauri bundle) |
Mutability |
|---|---|---|---|
| Bundled UI Assets | Local dev server (http://localhost:...) |
Inside app.asar or embedded Tauri asset protocol (tauri://localhost / https://tauri.localhost) |
Read-Only |
Native Addons (.node), Sidecar Binaries, SQLite Migrations |
Repo workspace paths | process.resourcesPath / app.asar.unpacked (Electron extraResources / asarUnpack) or Tauri BaseDirectory::Resource |
Read-Only (Never write here!) |
User Database (sqlite), Config, State |
Scoped dev profile dir (~/.app-dev) |
app.getPath('userData') / Tauri app.path().app_data_dir() |
Read/Write (Persists across app updates) |
| Ephemeral Scratch & Socket Files | OS temp dir | app.getPath('temp') |
Read/Write (Cleared on reboot) |
| Application & Subprocess Logs | Console + dev log dir | app.getPath('logs') (~/Library/Logs/<App> on macOS, %USERPROFILE%\AppData\Roaming\<App>\logs on Windows) |
Read/Write (Rotated) |
Native Addons, Sidecars & Archive Unpacking
- OS Kernel Execution Constraint:
- Operating system APIs (
execve,CreateProcess,dlopen,LoadLibrary) cannot execute binaries or load native.node/.dll/.dyliblibraries directly from inside a virtualapp.asararchive. - Configure
asarUnpack: ["**/*.node", "**/bin/**"]orextraResourcesinelectron-builder/ Electron Forge (orbundle.externalBin/bundle.resourcesintauri.conf.json), and resolve paths dynamically using a helper that switches onapp.isPackaged.
- Operating system APIs (
- Test Paths with Spaces and Non-ASCII Characters:
- Packaged apps live in
/Applications/My App.app/Contents/Resources/...orC:\Users\Gábor Laczkovszki\AppData\Local\Programs\.... Quote or array-pass every path and test explicitly in a directory containing spaces and accented characters.
- Packaged apps live in
Packaged Build Smoke-Test Protocol
Never mark a desktop packaging task complete based only on tsc or cross-compilation exit code 0:
- Build the unpacked directory target (
electron-builder --dir/tauri build --debug --no-bundleor full installer) for the host OS/architecture. - Launch the packaged executable with a clean test
--user-data-dir(and minimal Finder-likePATH). - Verify that the window renders without CSP/asset errors, the local server/database initializes in
userData, external CLI detection works, and quitting the app terminates all child processes cleanly with exit code0. - State explicitly which platforms/architectures were verified on a real OS and which were only build-checked.
Csomagban lévő fájlok 1
SKILL.md
A skillcsomag bemutatása
desktop-packaging-verification
desktop-packaging-verification: Megbízható natív kapcsolatokkal, helyi adatkezeléssel, folyamat-életciklussal, csomagolással és frissítéssel készít asztali alkalmazásokat.
Összecsukás
desktop-packaging-verification
desktop-packaging-verification: Megbízható natív kapcsolatokkal, helyi adatkezeléssel, folyamat-életciklussal, csomagolással és frissítéssel készít asztali alkalmazásokat.
A teljes skillt és a hozzá tartozó fájlokat tartalmazza (1 fájl). Az alábbi eredeti leírás rögzíti a pontos alkalmazási területét.
A skill eredeti leírása (a forrás nyelvén)
Use when configuring desktop app bundling, ASAR/resource unpacking, path resolution in packaged vs. dev mode, or verifying packaged builds on macOS and Windows.
Telepítsd a skillt, nézd át a forrását és a megbízhatósági beállításait, majd engedélyezd a megfelelő projektben vagy ügynöknél.
Előfeltételek
- A számítógépedre telepített Orqestria.
