feat: dist building

This commit is contained in:
2026-02-22 18:17:30 +01:00
parent 145b3ea0a6
commit 2d451dc1f0
5 changed files with 195 additions and 53 deletions

View File

@@ -12,6 +12,11 @@
"start": "concurrently --kill-others \"npm run dev:renderer\" \"npm run start:electron\"",
"start:electron": "wait-on http://localhost:5173 && cross-env NODE_ENV=development node ./node_modules/electron/cli.js .",
"build": "npm run lint && npm run db:generate && npm run build:main && npm run build:renderer",
"package": "npm run build && electron-builder --dir",
"dist": "npm run build && electron-builder",
"dist:mac": "npm run build && electron-builder --mac",
"dist:win": "npm run build && electron-builder --win",
"dist:linux": "npm run build && electron-builder --linux",
"build:main": "node ./node_modules/typescript/bin/tsc -p tsconfig.main.json",
"build:renderer": "node ./node_modules/vite/bin/vite.js build",
"start:prod": "node ./node_modules/electron/cli.js .",
@@ -29,6 +34,7 @@
"author": "",
"license": "MIT",
"devDependencies": {
"@electron/notarize": "^3.1.0",
"@testing-library/jest-dom": "^6.9.1",
"@testing-library/react": "^16.3.2",
"@testing-library/user-event": "^14.6.1",
@@ -54,7 +60,6 @@
"memfs": "^4.6.0",
"tsx": "^4.6.0",
"typescript": "^5.3.0",
"uuid": "^13.0.0",
"vite": "^7.3.1",
"vitest": "^4.0.18",
"wait-on": "^9.0.3"
@@ -96,6 +101,7 @@
"simple-git": "^3.31.1",
"snowball-stemmers": "^0.6.0",
"turndown": "^7.2.2",
"uuid": "^13.0.0",
"vanilla-calendar-pro": "^3.1.0",
"zod": "^4.3.6",
"zustand": "^5.0.11"
@@ -108,6 +114,8 @@
"build": {
"appId": "com.bds.blogging-desktop-server",
"productName": "Blogging Desktop Server",
"asar": true,
"afterSign": "scripts/notarize.mjs",
"directories": {
"output": "release"
},
@@ -122,14 +130,43 @@
"to": "drizzle"
}
],
"protocols": [
{
"name": "bDS Blogmark Links",
"schemes": [
"bds"
]
}
],
"win": {
"target": "nsis"
"target": [
{
"target": "nsis",
"arch": [
"x64",
"arm64"
]
}
]
},
"mac": {
"target": "dmg"
"target": [
"dmg",
"zip"
],
"category": "public.app-category.productivity",
"hardenedRuntime": true,
"gatekeeperAssess": false,
"entitlements": "build/entitlements.mac.plist",
"entitlementsInherit": "build/entitlements.mac.inherit.plist"
},
"linux": {
"target": "AppImage"
"target": [
"AppImage",
"deb",
"rpm"
],
"category": "Utility"
}
}
}