File tree 3 files changed +13
-4
lines changed
3 files changed +13
-4
lines changed Original file line number Diff line number Diff line change 11
11
"type" : " module" ,
12
12
"config" : {
13
13
"frontendVersion" : " 1.9.15" ,
14
- "comfyVersion" : " 0.3.14" ,
14
+ "comfyUI" : {
15
+ "version" : " 0.3.14" ,
16
+ "optionalBranch" : " desktop-release-feb172025"
17
+ },
15
18
"managerCommit" : " 1434b12c343b58a401f1c9f913965ceb0cfd089e" ,
16
19
"uvVersion" : " 0.5.26"
17
20
},
112
115
"wait-on" : " ^8.0.1" ,
113
116
"yaml" : " ^2.6.0"
114
117
}
115
- }
118
+ }
Original file line number Diff line number Diff line change @@ -5,7 +5,13 @@ import pkg from './getPackage.js';
5
5
const comfyRepo = 'https://github.com/comfyanonymous/ComfyUI' ;
6
6
const managerRepo = 'https://github.com/Comfy-Org/ComfyUI-Manager' ;
7
7
8
- execSync ( `git clone ${ comfyRepo } --depth 1 --branch v${ pkg . config . comfyVersion } assets/ComfyUI` ) ;
8
+ if ( pkg . config . comfyUI . optionalBranch ) {
9
+ // Checkout branch.
10
+ execSync ( `git clone ${ comfyRepo } --depth 1 --branch ${ pkg . config . comfyUI . optionalBranch } assets/ComfyUI` ) ;
11
+ } else {
12
+ // Checkout tag as branch.
13
+ execSync ( `git clone ${ comfyRepo } --depth 1 --branch v${ pkg . config . comfyUI . version } assets/ComfyUI` ) ;
14
+ }
9
15
execSync ( `git clone ${ managerRepo } assets/ComfyUI/custom_nodes/ComfyUI-Manager` ) ;
10
16
execSync ( `cd assets/ComfyUI/custom_nodes/ComfyUI-Manager && git checkout ${ pkg . config . managerCommit } && cd ../../..` ) ;
11
17
execSync ( `yarn run make:frontend` ) ;
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ export function getBuildConfig(env: ConfigEnv): UserConfig {
26
26
clearScreen : false ,
27
27
28
28
define : {
29
- __COMFYUI_VERSION__ : JSON . stringify ( pkg . config . comfyVersion ) ,
29
+ __COMFYUI_VERSION__ : JSON . stringify ( pkg . config . comfyUI . version ) ,
30
30
__COMFYUI_DESKTOP_VERSION__ : JSON . stringify ( process . env . npm_package_version ) ,
31
31
} ,
32
32
You can’t perform that action at this time.
0 commit comments