This commit is contained in:
vc4
2021-08-25 09:44:20 +08:00
parent 57a6a44839
commit f975048488
5 changed files with 10 additions and 3 deletions

View File

@@ -16,6 +16,10 @@
```bash
# install python3
python3 scomm.py
# windows下安装py2exe可导出成exe文件
# pip install pyyaml pyserial py2exe
# python3 setup.py py2exe
```

BIN
app.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

BIN
logo.ico

Binary file not shown.

Before

Width:  |  Height:  |  Size: 23 KiB

View File

@@ -10,7 +10,7 @@ import tkinter.scrolledtext
import tkinter.filedialog
import _locale
_locale._getdefaultlocate = (lambda *args: ['zh_CN', 'utf8'])
_locale._getdefaultlocale = (lambda *args: ['zh_CN', 'utf8'])
import time, datetime
def tsnow():

View File

@@ -7,9 +7,12 @@ setup(
options = {"py2exe":
{
"excludes": excludes,
"bundle_files": 1,
"compressed": True,
"optimize": 2,
}
},
windows = [{ 'script':'scomm.py', 'icon_resources':[(1, 'logo.ico')]}],
windows = [{ 'script':'scomm.py', 'icon_resources':[(1, 'app.ico')]}],
zipfile = None,
data_files = [('', ['usercfg.ini','app.ui','unpack.ui','data.ui','logo.ico'])]
data_files = [('', ['usercfg.json','app.ui','unpack.ui','data.ui'])]
)