build: fix electron desktop build config for v1.0.1

- Rename vite.config.js to vite.config.mjs so ESM-only @tailwindcss/vite
  loads correctly (CJS require() can't import ESM modules)
- Remove tailwindcss from postcss.config.js — handled by @tailwindcss/vite
  in Tailwind v4; the v3 PostCSS plugin conflicts with v4 CSS syntax
- Add "main": "electron/main.js" to package.json so electron-builder
  finds the entry point instead of defaulting to index.js
- Bump version to 1.0.1

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Anil Matcha 2026-04-15 00:15:58 +05:30
commit 17adf7eca7
4 changed files with 30 additions and 9 deletions

4
package-lock.json generated
View file

@ -1,12 +1,12 @@
{
"name": "open-generative-ai",
"version": "1.0.0",
"version": "1.0.1",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "open-generative-ai",
"version": "1.0.0",
"version": "1.0.1",
"workspaces": [
"packages/studio"
],

View file

@ -2,7 +2,7 @@
"name": "open-generative-ai",
"description": "Open-source alternative to Higgsfield AI — AI image, video, cinema and lip sync studio",
"private": true,
"version": "1.0.0",
"version": "1.0.1",
"workspaces": [
"packages/studio"
],
@ -23,18 +23,39 @@
"appId": "ai.generative.open",
"productName": "Open Generative AI",
"copyright": "Copyright © 2025",
"directories": { "output": "release" },
"directories": {
"output": "release"
},
"afterPack": "./afterPack.js",
"files": ["dist/**/*", "electron/**/*"],
"files": [
"dist/**/*",
"electron/**/*"
],
"mac": {
"category": "public.app-category.graphics-design",
"icon": "public/banner.png",
"gatekeeperAssess": false,
"target": [{ "target": "dmg", "arch": ["x64", "arm64"] }]
"target": [
{
"target": "dmg",
"arch": [
"x64",
"arm64"
]
}
]
},
"win": {
"icon": "public/banner.png",
"target": [{ "target": "nsis", "arch": ["x64", "arm64"] }]
"target": [
{
"target": "nsis",
"arch": [
"x64",
"arm64"
]
}
]
}
},
"dependencies": {
@ -56,5 +77,6 @@
"tailwindcss": "^3.4.0",
"vite": "^5.4.0",
"@tailwindcss/vite": "^4.1.18"
}
},
"main": "electron/main.js"
}

View file

@ -1,6 +1,5 @@
module.exports = {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
}