# kill_close **Repository Path**: ideayp/kill_close ## Basic Information - **Project Name**: kill_close - **Description**: python端口关闭器 - **Primary Language**: Python - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-05-22 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 端口关闭器 运行kill_run.py # 打包 pyinstaller -F -w -y kill_run.spec # pyinstaller常用命令: -i 给应用程序添加图标 -F 指定打包后只生成一个exe格式的文件 -D –onedir 创建一个目录,包含exe文件,但会依赖很多文件(默认选项) -c –console, –nowindowed 使用控制台,无界面(默认) -w –windowed, –noconsole 使用窗口,无控制台 -p 添加搜索路径 -y 不显示确认按钮(直接覆盖已经生成的文件) * pyinstaller添加的参数打包资源 datas=[('logo.ico','.')], spec配置 ``` exe = EXE(pyz, a.scripts, [], exclude_binaries=True, name='端口关闭器', debug=False, bootloader_ignore_signals=False, strip=False, upx=True, console=False , icon='logo.ico') ```