diff --git a/.changeset/desktop-pg-migrations-packaging.md b/.changeset/desktop-pg-migrations-packaging.md new file mode 100644 index 0000000000..9b906749ea --- /dev/null +++ b/.changeset/desktop-pg-migrations-packaging.md @@ -0,0 +1,7 @@ +--- +"@runfusion/fusion": patch +--- + +summary: Fix packaged desktop app crashing on first boot because PostgreSQL migrations were missing from the build. +category: fix +dev: "@fusion/core's bare tsc build never copies src/postgres/migrations/*.sql into dist; the CLI compensates in packages/cli/tsup.config.ts but the desktop staging did not, so packaged Local mode crashed schema init (ENOENT dist/postgres/migrations/0000_initial.sql) after embedded Postgres started. packages/desktop/scripts/workspace-tools.ts now stages the migrations in buildCore(), re-stages them into the pnpm-deploy closure in stageDesktopDeploy(), and fails the build via verifyCoreMigrationsStaged() if the baseline migration is absent. Fixed in 6e5bb5d3d."