diff --git a/config/model_paths_linux.yaml b/config/model_paths_linux.yaml deleted file mode 100644 index 8b6d7e26..00000000 --- a/config/model_paths_linux.yaml +++ /dev/null @@ -1,23 +0,0 @@ -# ComfyUI extra_model_paths.yaml for Linux -comfyui: - base_path: ~/.config/ComfyUI - is_default: true - checkpoints: models/checkpoints/ - classifiers: models/classifiers/ - clip: models/clip/ - clip_vision: models/clip_vision/ - configs: models/configs/ - controlnet: models/controlnet/ - diffusers: models/diffusers/ - diffusion_models: models/diffusion_models/ - embeddings: models/embeddings/ - gligen: models/gligen/ - hypernetworks: models/hypernetworks/ - loras: models/loras/ - photomaker: models/photomaker/ - style_models: models/style_models/ - unet: models/unet/ - upscale_models: models/upscale_models/ - vae: models/vae/ - vae_approx: models/vae_approx/ - custom_nodes: custom_nodes/ diff --git a/config/model_paths_mac.yaml b/config/model_paths_mac.yaml deleted file mode 100644 index 1c17a8e8..00000000 --- a/config/model_paths_mac.yaml +++ /dev/null @@ -1,23 +0,0 @@ -# ComfyUI extra_model_paths.yaml for macOS -comfyui: - base_path: ~/Library/Application Support/ComfyUI - is_default: true - checkpoints: models/checkpoints/ - classifiers: models/classifiers/ - clip: models/clip/ - clip_vision: models/clip_vision/ - configs: models/configs/ - controlnet: models/controlnet/ - diffusers: models/diffusers/ - diffusion_models: models/diffusion_models/ - embeddings: models/embeddings/ - gligen: models/gligen/ - hypernetworks: models/hypernetworks/ - loras: models/loras/ - photomaker: models/photomaker/ - style_models: models/style_models/ - unet: models/unet/ - upscale_models: models/upscale_models/ - vae: models/vae/ - vae_approx: models/vae_approx/ - custom_nodes: custom_nodes/ diff --git a/config/model_paths_windows.yaml b/config/model_paths_windows.yaml deleted file mode 100644 index cf951773..00000000 --- a/config/model_paths_windows.yaml +++ /dev/null @@ -1,23 +0,0 @@ -# ComfyUI extra_model_paths.yaml for Windows -comfyui: - base_path: '%USERPROFILE%/comfyui-electron' - is_default: true - checkpoints: models/checkpoints/ - classifiers: models/classifiers/ - clip: models/clip/ - clip_vision: models/clip_vision/ - configs: models/configs/ - controlnet: models/controlnet/ - diffusers: models/diffusers/ - diffusion_models: models/diffusion_models/ - embeddings: models/embeddings/ - gligen: models/gligen/ - hypernetworks: models/hypernetworks/ - loras: models/loras/ - photomaker: models/photomaker/ - style_models: models/style_models/ - unet: models/unet/ - upscale_models: models/upscale_models/ - vae: models/vae/ - vae_approx: models/vae_approx/ - custom_nodes: custom_nodes/ diff --git a/forge.config.ts b/forge.config.ts index 1d480012..e0c35bf0 100644 --- a/forge.config.ts +++ b/forge.config.ts @@ -45,32 +45,12 @@ const config: ForgeConfig = { rebuildConfig: {}, hooks: { prePackage: async () => { - const configDir = path.join(__dirname, 'config'); const assetDir = path.join(__dirname, 'assets', 'ComfyUI'); // Ensure the asset directory exists if (!fs.existsSync(assetDir)) { fs.mkdirSync(assetDir, { recursive: true }); } - - let sourceFile; - if (process.platform === 'darwin') { - sourceFile = path.join(configDir, 'model_paths_mac.yaml'); - } else if (process.platform === 'win32') { - sourceFile = path.join(configDir, 'model_paths_windows.yaml'); - } else { - sourceFile = path.join(configDir, 'model_paths_linux.yaml'); - } - - const destFile = path.join(assetDir, 'extra_model_paths.yaml'); - - try { - fs.copyFileSync(sourceFile, destFile); - console.log(`Copied ${sourceFile} to ${destFile}`); - } catch (err) { - console.error(`Failed to copy config file: ${err}`); - throw err; // This will stop the packaging process if the copy fails - } }, postPackage: async (forgeConfig, packageResult) => { console.log('Post-package hook started'); diff --git a/index.html b/index.html index 577ed180..7e8cd1f3 100644 --- a/index.html +++ b/index.html @@ -6,6 +6,6 @@
- +