-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
22 changed files
with
209 additions
and
157 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import { copy } from 'fs-extra'; | ||
import { join } from 'path'; | ||
|
||
async function copyWebBuild() { | ||
const webDir = join(process.cwd(), 'apps/web'); | ||
const distDir = join(process.cwd(), 'apps/server-web/release/app/dist'); | ||
|
||
try { | ||
// Copy standalone build | ||
await copy( | ||
join(webDir, '.next/standalone'), | ||
join(distDir) | ||
); | ||
|
||
// Copy static files | ||
await copy( | ||
join(webDir, '.next/static'), | ||
join(distDir, 'standalone/apps/web/.next/static') | ||
); | ||
|
||
// Copy public files | ||
await copy( | ||
join(webDir, 'public'), | ||
join(distDir, 'standalone/apps/web/public') | ||
); | ||
|
||
console.log('Build files copied successfully'); | ||
} catch (error) { | ||
console.error('Failed to copy build files:', error); | ||
process.exit(1); | ||
} | ||
} | ||
|
||
copyWebBuild(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
import { MenuItemConstructorOptions } from 'electron'; | ||
export interface AppMenu { | ||
id?: string; | ||
label?: string; | ||
click?: () => void; | ||
submenu?: AppSubMenu[] | ||
} | ||
label: string; // Menu label | ||
submenu?: (AppMenu | ElectronMenuItem)[]; // Nested menus or Electron menu items | ||
role?: 'appMenu' | 'fileMenu' | 'editMenu' | 'viewMenu' | 'windowMenu' | 'help'; // Predefined menu roles | ||
type?: 'normal' | 'separator' | 'submenu' | 'checkbox' | 'radio'; // Menu item type | ||
click?: () => void; // Click handler for the menu item | ||
accelerator?: string; // Keyboard shortcut | ||
enabled?: boolean; // Whether the item is enabled | ||
visible?: boolean; // Whether the item is visible | ||
checked?: boolean; // For 'checkbox' or 'radio' type | ||
} | ||
|
||
export interface AppSubMenu { | ||
id?: string; | ||
label?: string; | ||
click?: () => void; | ||
selector?: string; | ||
type?: string; | ||
accelerator?: string; | ||
} | ||
export type ElectronMenuItem = MenuItemConstructorOptions; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.