当前仓库属于关闭状态,部分功能使用受限,详情请查阅 仓库状态说明
1 Star 1 Fork 0

cxykevin/dashedgeless
关闭

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
build.cmd 1.18 KB
一键复制 编辑 原始数据 按行查看 历史
cxykevin 提交于 2023-07-02 21:54 . 环境变量修复
@echo off
:getvtag
set /P ver= <"version.txt"
if "%ver%"=="" (
goto getvtag
)
if "%1"=="build" (
echo [BUILD]building... 1/2
pyinstaller -F -p "." -i dashedgeless.ico -n on_start on_start.py
copy /Y dist\on_start.exe .\
echo [BUILD]building... 2/2
pyinstaller -F -p "." -i dashedgeless.ico -n dash dash.py
copy /Y dist\dash.exe .\
rmdir /S /Q build
rmdir /S /Q dist
del /Q *.spec
)
if "%1"=="7z" (
echo [BUILD]packing... 1/3
mkdir "tmp/dashedgeless"
xcopy /I "*" "tmp/dashedgeless/"
copy "dashedgeless.wcs" "tmp"
copy "setpath.wcs" "tmp"
echo "dashedgeless_%ver%_dashedgeless (bot).7z">"tmp/dashedgeless/whitelist.txt"
del /Q "tmp/dashedgeless/log.log"
del /Q "tmp/dashedgeless/.tip*.log"
echo [BUILD]packing... 2/3
rmdir /S /Q "dist"
mkdir dist
del /Q "dist/dashedgeless_%ver%_dashedgeless (bot).7z"
7z a "dist/dashedgeless_%ver%_dashedgeless (bot).7z" "./tmp/*"
echo [BUILD]packing... 3/3
rmdir /S /Q "tmp"
)
if "%1"=="v" (
echo --- Build tools [dashedgeless] ---
echo version: %ver%
)
if "%1"=="" (
echo --- Build tools [dashedgeless] ---
echo version: %ver%
build build
build 7z
)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/cxy_kevin/dashedgeless.git
git@gitee.com:cxy_kevin/dashedgeless.git
cxy_kevin
dashedgeless
dashedgeless
master

搜索帮助