From 41ad4bd246cce21f32f72b6cf27926d1255b67d6 Mon Sep 17 00:00:00 2001 From: yshtcn Date: Wed, 6 Sep 2023 22:38:46 +0800 Subject: [PATCH] Update README.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修改打包部分的说明 --- README.md | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index edf6c28..e05e68a 100644 --- a/README.md +++ b/README.md @@ -87,21 +87,12 @@ start pythonw heartbeat.py ``` ### 打包成exe -在确保已经安装python 的情况下,使用命令行执行以下命令以安装PyInstaller: +1. 在确保已经安装python 的情况下,使用命令行执行以下命令以安装PyInstaller: ``` pip install pyinstaller -i https://pypi.tuna.tsinghua.edu.cn/simple ``` +2. 根据你的需要修改heartbeat_pyinstaller.bat并执行它。 -打包为Windows可执行程序: -``` -@echo off -cd /d %~dp0 -rd /S /Q dist -pyinstaller --onefile --noconsole --add-data "config.Exsample.ini;." heartbeat.py -del /F /Q heartbeat.spec -rd /S /Q build -``` -其中“--onefile”表示单文件模式,--noconsole表示无命令行模式 ## 授权信息 项目地址: https://github.com/yshtcn/heartbeat