Skip to content

Commit 0817b23

Browse files
fix(build): Vite base='./' for prod; notarize+staple DMGs; end‑to‑end Gatekeeper
check
1 parent 050a17d commit 0817b23

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

vite.config.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ import { defineConfig } from 'vite'
22
import react from '@vitejs/plugin-react'
33
import { resolve } from 'path'
44

5-
export default defineConfig({
5+
export default defineConfig(({ command }) => ({
6+
// Use relative asset paths in production so file:// loads work from DMG/app bundle
7+
base: command === 'build' ? './' : '/',
68
plugins: [react()],
79
root: './src/renderer',
810
build: {
@@ -17,4 +19,4 @@ export default defineConfig({
1719
server: {
1820
port: 3000,
1921
},
20-
})
22+
}))

0 commit comments

Comments
 (0)