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:
parent
1c33c1be7b
commit
17adf7eca7
4 changed files with 30 additions and 9 deletions
4
package-lock.json
generated
4
package-lock.json
generated
|
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
"name": "open-generative-ai",
|
"name": "open-generative-ai",
|
||||||
"version": "1.0.0",
|
"version": "1.0.1",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "open-generative-ai",
|
"name": "open-generative-ai",
|
||||||
"version": "1.0.0",
|
"version": "1.0.1",
|
||||||
"workspaces": [
|
"workspaces": [
|
||||||
"packages/studio"
|
"packages/studio"
|
||||||
],
|
],
|
||||||
|
|
|
||||||
34
package.json
34
package.json
|
|
@ -2,7 +2,7 @@
|
||||||
"name": "open-generative-ai",
|
"name": "open-generative-ai",
|
||||||
"description": "Open-source alternative to Higgsfield AI — AI image, video, cinema and lip sync studio",
|
"description": "Open-source alternative to Higgsfield AI — AI image, video, cinema and lip sync studio",
|
||||||
"private": true,
|
"private": true,
|
||||||
"version": "1.0.0",
|
"version": "1.0.1",
|
||||||
"workspaces": [
|
"workspaces": [
|
||||||
"packages/studio"
|
"packages/studio"
|
||||||
],
|
],
|
||||||
|
|
@ -23,18 +23,39 @@
|
||||||
"appId": "ai.generative.open",
|
"appId": "ai.generative.open",
|
||||||
"productName": "Open Generative AI",
|
"productName": "Open Generative AI",
|
||||||
"copyright": "Copyright © 2025",
|
"copyright": "Copyright © 2025",
|
||||||
"directories": { "output": "release" },
|
"directories": {
|
||||||
|
"output": "release"
|
||||||
|
},
|
||||||
"afterPack": "./afterPack.js",
|
"afterPack": "./afterPack.js",
|
||||||
"files": ["dist/**/*", "electron/**/*"],
|
"files": [
|
||||||
|
"dist/**/*",
|
||||||
|
"electron/**/*"
|
||||||
|
],
|
||||||
"mac": {
|
"mac": {
|
||||||
"category": "public.app-category.graphics-design",
|
"category": "public.app-category.graphics-design",
|
||||||
"icon": "public/banner.png",
|
"icon": "public/banner.png",
|
||||||
"gatekeeperAssess": false,
|
"gatekeeperAssess": false,
|
||||||
"target": [{ "target": "dmg", "arch": ["x64", "arm64"] }]
|
"target": [
|
||||||
|
{
|
||||||
|
"target": "dmg",
|
||||||
|
"arch": [
|
||||||
|
"x64",
|
||||||
|
"arm64"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"win": {
|
"win": {
|
||||||
"icon": "public/banner.png",
|
"icon": "public/banner.png",
|
||||||
"target": [{ "target": "nsis", "arch": ["x64", "arm64"] }]
|
"target": [
|
||||||
|
{
|
||||||
|
"target": "nsis",
|
||||||
|
"arch": [
|
||||||
|
"x64",
|
||||||
|
"arm64"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|
@ -56,5 +77,6 @@
|
||||||
"tailwindcss": "^3.4.0",
|
"tailwindcss": "^3.4.0",
|
||||||
"vite": "^5.4.0",
|
"vite": "^5.4.0",
|
||||||
"@tailwindcss/vite": "^4.1.18"
|
"@tailwindcss/vite": "^4.1.18"
|
||||||
}
|
},
|
||||||
|
"main": "electron/main.js"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,5 @@
|
||||||
module.exports = {
|
module.exports = {
|
||||||
plugins: {
|
plugins: {
|
||||||
tailwindcss: {},
|
|
||||||
autoprefixer: {},
|
autoprefixer: {},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue