set "INSTALL_DIR=%USERPROFILE%\ComfyUI_Windows_portable"
set "CUSTOM_NODES_DIR=%INSTALL_DIR%\ComfyUI\custom_nodes"
set "MODELS_DIR=%INSTALL_DIR%\ComfyUI\models"
set "CHECKPOINTS_DIR=%MODELS_DIR%\checkpoints"
set "CUSTOM_RASTERIZER_DIR=%INSTALL_DIR%\ComfyUI\custom_nodes\comfyui-hunyan3dwrapper\hy3dgen\texgen\custom_rasterizer"
set "PYTHON_DIR=%INSTALL_DIR%\python_standalone"

cd "%CUSTOM_RASTERIZER_DIR%"
"%PYTHON_DIR%\python.exe" setup.py install
"%PYTHON_DIR%\python.exe" -m pip install .