Ai
1 Star 0 Fork 0

open_source/IOPaint

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
pack.bat 664 Bytes
一键复制 编辑 原始数据 按行查看 历史
Sanster 提交于 2022-10-25 14:41 +08:00 . add win installer
@echo off
set "PYTHONNOUSERSITE=1"
SET BUILD_DIST=lama-cleaner
SET BUILD_ENV=installer
SET USER_SCRIPTS=user_scripts
echo Creating a distributable package..
@call conda env create --prefix %BUILD_ENV% -f environment.yaml
echo Finish creating environment
@call conda activate .\%BUILD_ENV%
@call conda install -c conda-forge -y conda-pack
@call conda pack --n-threads -1 --prefix %BUILD_ENV% --format tar
mkdir %BUILD_DIST%\%BUILD_ENV%
echo "Copy user scripts file %USER_SCRIPTS%"
copy %USER_SCRIPTS%\* %BUILD_DIST%
cd %BUILD_DIST%
@call tar -xf ..\%BUILD_ENV%.tar -C %BUILD_ENV%
cd ..
@call conda deactivate
rmdir /s /q %BUILD_ENV%
del %BUILD_ENV%.tar
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/pplus_open_source/IOPaint.git
git@gitee.com:pplus_open_source/IOPaint.git
pplus_open_source
IOPaint
IOPaint
0114

搜索帮助