File tree Expand file tree Collapse file tree 2 files changed +18
-3
lines changed Expand file tree Collapse file tree 2 files changed +18
-3
lines changed Original file line number Diff line number Diff line change @@ -168,7 +168,8 @@ const EXTERNAL_LINKS = {
168168 DOCS: ' https://docs.comfy.org/' ,
169169 DISCORD: ' https://www.comfy.org/discord' ,
170170 GITHUB: ' https://github.com/comfyanonymous/ComfyUI' ,
171- DESKTOP_GUIDE: ' https://comfyorg.notion.site/' ,
171+ DESKTOP_GUIDE_WINDOWS: ' https://docs.comfy.org/installation/desktop/windows' ,
172+ DESKTOP_GUIDE_MACOS: ' https://docs.comfy.org/installation/desktop/macos' ,
172173 UPDATE_GUIDE: ' https://docs.comfy.org/installation/update_comfyui'
173174} as const
174175
@@ -222,7 +223,11 @@ const moreItems = computed<MenuItem[]>(() => {
222223 label: t (' helpCenter.desktopUserGuide' ),
223224 visible: isElectron (),
224225 action : () => {
225- openExternalLink (EXTERNAL_LINKS .DESKTOP_GUIDE )
226+ const docsUrl =
227+ electronAPI ().getPlatform () === ' darwin'
228+ ? EXTERNAL_LINKS .DESKTOP_GUIDE_MACOS
229+ : EXTERNAL_LINKS .DESKTOP_GUIDE_WINDOWS
230+ openExternalLink (docsUrl )
226231 emit (' close' )
227232 }
228233 },
Original file line number Diff line number Diff line change @@ -9,6 +9,12 @@ import { useDialogService } from '@/services/dialogService'
99import { electronAPI as getElectronAPI , isElectron } from '@/utils/envUtil'
1010import { checkMirrorReachable } from '@/utils/networkUtil'
1111
12+ // Desktop documentation URLs
13+ const DESKTOP_DOCS = {
14+ WINDOWS : 'https://docs.comfy.org/installation/desktop/windows' ,
15+ MACOS : 'https://docs.comfy.org/installation/desktop/macos'
16+ } as const
17+
1218; ( async ( ) => {
1319 if ( ! isElectron ( ) ) return
1420
@@ -159,7 +165,11 @@ import { checkMirrorReachable } from '@/utils/networkUtil'
159165 label : 'Desktop User Guide' ,
160166 icon : 'pi pi-book' ,
161167 function ( ) {
162- window . open ( 'https://comfyorg.notion.site/' , '_blank' )
168+ const docsUrl =
169+ electronAPI . getPlatform ( ) === 'darwin'
170+ ? DESKTOP_DOCS . MACOS
171+ : DESKTOP_DOCS . WINDOWS
172+ window . open ( docsUrl , '_blank' )
163173 }
164174 } ,
165175 {
You can’t perform that action at this time.
0 commit comments