Skip to content

Commit 51305a9

Browse files
committed
fix workflow build steps
1 parent 39c5bd4 commit 51305a9

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,7 @@
3535
"build-sitemap": "tsx ./scripts/buildSitemapIndex/index.ts",
3636
"build:analyze": "ANALYZE=true next build",
3737
"build:docker": "DOCKER=true next build && npm run build-sitemap",
38-
"build:electron": "NODE_OPTIONS=--max-old-space-size=6144 NEXT_PUBLIC_IS_DESKTOP_APP=1 NEXT_PUBLIC_SERVICE_MODE=server next build",
39-
"build:move-to-electron-dist": "tsx scripts/electronWorkflow/moveNextStandalone.ts",
38+
"build:electron": "cross-env NODE_OPTIONS=--max-old-space-size=6144 NEXT_PUBLIC_IS_DESKTOP_APP=1 NEXT_PUBLIC_SERVICE_MODE=server next build",
4039
"db:generate": "drizzle-kit generate && npm run db:generate-client && npm run workflow:dbml",
4140
"db:generate-client": "tsx ./scripts/migrateClientDB/compile-migrations.ts",
4241
"db:migrate": "MIGRATION_DB=1 tsx ./scripts/migrateServerDB/index.ts",
@@ -45,7 +44,10 @@
4544
"db:studio": "drizzle-kit studio",
4645
"db:visualize": "dbdocs build docs/developer/database-schema.dbml --project lobe-chat",
4746
"db:z-pull": "drizzle-kit introspect",
47+
"desktop:build": "npm run desktop:build-next && npm run desktop:prepare-dist && npm run desktop:build-electron",
48+
"desktop:build-electron": "npm run build --prefix=./apps/desktop",
4849
"desktop:build-next": "npm run build:electron",
50+
"desktop:prepare-dist": "tsx scripts/electronWorkflow/moveNextStandalone.ts",
4951
"dev": "next dev --turbopack -p 3010",
5052
"docs:i18n": "lobe-i18n md && npm run lint:md && npm run lint:mdx",
5153
"docs:seo": "lobe-seo && npm run lint:mdx",
@@ -296,6 +298,7 @@
296298
"ajv-keywords": "^5.1.0",
297299
"commitlint": "^19.6.1",
298300
"consola": "^3.3.3",
301+
"cross-env": "^7.0.3",
299302
"crypto-js": "^4.2.0",
300303
"dbdocs": "^0.14.3",
301304
"dotenv": "^16.4.7",

0 commit comments

Comments
 (0)