chore: Set up Electron configuration and update dependencies
- Add Electron Forge configuration in forge.config.js for packaging and building the app - Create main Electron entry point in main.cjs for application initialization - Update package.json scripts for Electron development and building - Add necessary Electron dependencies to package.json - Modify .gitignore to exclude build artifacts and temporary files - Refactor Footer and Navbar components to remove unused imports - Enhance NostrFeed component by removing unnecessary connection logic - Update i18n setup for better type safety and locale management - Refactor Home component to clean up unused code - Extend Nostr store to manage account state with TypeScript interfaces
This commit is contained in:
parent
3c05ddde51
commit
a74148a0da
11 changed files with 5831 additions and 13 deletions
52
package.json
52
package.json
|
|
@ -3,11 +3,18 @@
|
|||
"private": true,
|
||||
"version": "0.0.0",
|
||||
"type": "module",
|
||||
"main": "electron/main.cjs",
|
||||
"scripts": {
|
||||
"dev": "vite --host",
|
||||
"build": "vue-tsc -b && vite build",
|
||||
"preview": "vite preview",
|
||||
"analyze": "vite build --mode analyze"
|
||||
"analyze": "vite build --mode analyze",
|
||||
"electron:dev": "concurrently \"vite --host\" \"electron-forge start\"",
|
||||
"electron:build": "vue-tsc -b && vite build && electron-builder",
|
||||
"electron:package": "electron-builder",
|
||||
"start": "electron-forge start",
|
||||
"package": "electron-forge package",
|
||||
"make": "electron-forge make"
|
||||
},
|
||||
"dependencies": {
|
||||
"@tanstack/vue-table": "^8.21.2",
|
||||
|
|
@ -18,6 +25,7 @@
|
|||
"class-variance-authority": "^0.7.1",
|
||||
"clsx": "^2.1.1",
|
||||
"date-fns": "^4.1.0",
|
||||
"electron-squirrel-startup": "^1.0.1",
|
||||
"fuse.js": "^7.0.0",
|
||||
"lucide-vue-next": "^0.474.0",
|
||||
"nostr-tools": "^2.10.4",
|
||||
|
|
@ -34,6 +42,14 @@
|
|||
"web-vitals": "^3.5.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@electron-forge/cli": "^7.7.0",
|
||||
"@electron-forge/maker-deb": "^7.7.0",
|
||||
"@electron-forge/maker-rpm": "^7.7.0",
|
||||
"@electron-forge/maker-squirrel": "^7.7.0",
|
||||
"@electron-forge/maker-zip": "^7.7.0",
|
||||
"@electron-forge/plugin-auto-unpack-natives": "^7.7.0",
|
||||
"@electron-forge/plugin-fuses": "^7.7.0",
|
||||
"@electron/fuses": "^1.8.0",
|
||||
"@tailwindcss/forms": "^0.5.10",
|
||||
"@tailwindcss/typography": "^0.5.16",
|
||||
"@tailwindcss/vite": "^4.0.12",
|
||||
|
|
@ -41,8 +57,11 @@
|
|||
"@types/rollup-plugin-visualizer": "^4.2.3",
|
||||
"@vitejs/plugin-vue": "^5.2.1",
|
||||
"@vue/tsconfig": "^0.7.0",
|
||||
"concurrently": "^8.2.2",
|
||||
"electron": "^30.0.0",
|
||||
"rollup-plugin-visualizer": "^5.12.0",
|
||||
"sharp": "^0.33.2",
|
||||
"svgo": "^3.3.2",
|
||||
"tailwindcss": "^4.0.12",
|
||||
"typescript": "~5.6.2",
|
||||
"vite": "^6.0.5",
|
||||
|
|
@ -50,5 +69,36 @@
|
|||
"vite-plugin-inspect": "^0.8.3",
|
||||
"vite-plugin-pwa": "^0.21.1",
|
||||
"vue-tsc": "^2.2.0"
|
||||
},
|
||||
"build": {
|
||||
"appId": "com.yourdomain.aio-shadcn-vite",
|
||||
"productName": "AIO Shadcn Vite App",
|
||||
"copyright": "Copyright © 2025",
|
||||
"linux": {
|
||||
"target": [
|
||||
"AppImage",
|
||||
"deb"
|
||||
],
|
||||
"category": "Utility",
|
||||
"icon": "public/icon.png"
|
||||
},
|
||||
"mac": {
|
||||
"target": [
|
||||
"dmg"
|
||||
],
|
||||
"category": "public.app-category.developer-tools"
|
||||
},
|
||||
"win": {
|
||||
"target": [
|
||||
"nsis"
|
||||
]
|
||||
},
|
||||
"files": [
|
||||
"dist/**/*",
|
||||
"electron/**/*"
|
||||
],
|
||||
"directories": {
|
||||
"output": "dist_electron"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue