{ "name": "luatos-flasher", "version": "0.1.0", "description": "LuatOS firmware flasher for macOS (also Windows/Linux)", "main": "electron/main.js", "author": "LuatOS Flasher", "license": "MIT", "engines": { "node": ">=20" }, "scripts": { "start": "electron .", "dev": "electron . --dev", "test:smoke": "electron . --selftest-soc=tests/fixtures/air8101-dummy.soc", "test:flash-error": "electron . --selftest-flash-port=COM99 --selftest-flash-soc=tests/fixtures/air8101-dummy.soc", "fetch:cli": "node scripts/fetch-cli.mjs", "dist:mac": "cross-env CSC_IDENTITY_AUTO_DISCOVERY=false electron-builder --mac --universal", "dist:mac:signed": "electron-builder --mac --universal", "dist:mac:arm64": "cross-env CSC_IDENTITY_AUTO_DISCOVERY=false electron-builder --mac --arm64", "dist:mac:x64": "cross-env CSC_IDENTITY_AUTO_DISCOVERY=false electron-builder --mac --x64", "dist:win": "electron-builder --win --x64", "dist:linux": "electron-builder --linux --x64" }, "devDependencies": { "cross-env": "^10.1.0", "electron": "^45.3.0", "electron-builder": "^26.18.0" }, "build": { "appId": "com.luatos.flasher", "productName": "LuatOS Flasher", "asar": true, "files": [ "electron/**/*", "renderer/**/*", "package.json", "LICENSE", "THIRD_PARTY_NOTICES.md" ], "directories": { "output": "dist", "buildResources": "build" }, "mac": { "category": "public.app-category.developer-tools", "target": [ { "target": "dmg", "arch": [ "universal" ] }, { "target": "zip", "arch": [ "universal" ] } ], "icon": "build/icon.icns", "hardenedRuntime": true, "gatekeeperAssess": false, "entitlements": "build/entitlements.mac.plist", "entitlementsInherit": "build/entitlements.mac.plist", "extraResources": [ { "from": "resources/bin", "to": "bin", "filter": [ "**/*" ] } ] }, "dmg": { "title": "LuatOS Flasher ${version}" }, "win": { "target": [ { "target": "nsis", "arch": [ "x64" ] } ], "icon": "build/icon.ico", "extraResources": [ { "from": "resources/win", "to": "bin", "filter": [ "**/*" ] } ] }, "nsis": { "oneClick": false, "allowToChangeInstallationDirectory": true }, "linux": { "target": [ "AppImage", "deb" ], "category": "Development", "icon": "build/icon.png", "extraResources": [ { "from": "resources/bin", "to": "bin", "filter": [ "**/*" ] } ] }, "afterPack": "scripts/after-pack.cjs" } }