Skip to content

Commit

Permalink
dev mode
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelneale committed Nov 28, 2024
1 parent c393e00 commit 587ff84
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ui/desktop/src/goosed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,11 @@ export const startGoosed = async (app, dir=null): Promise<number> => {

let goosedPath: string;

if (isDev) {
if (isDev && !app.isPackaged) {
if (process.env.VITE_START_EMBEDDED_SERVER === 'no') {
log.info('Skipping starting goosed in development mode');
return 3000;
}
// In development, use the absolute path from the project root
goosedPath = path.join(process.cwd(), 'src', 'bin', process.platform === 'win32' ? 'goosed.exe' : 'goosed');
} else {
Expand Down

0 comments on commit 587ff84

Please sign in to comment.