fix icon
This commit is contained in:
@@ -16,6 +16,10 @@
|
||||
```bash
|
||||
# install python3
|
||||
python3 scomm.py
|
||||
|
||||
# windows下安装py2exe可导出成exe文件
|
||||
# pip install pyyaml pyserial py2exe
|
||||
# python3 setup.py py2exe
|
||||
```
|
||||
|
||||
|
||||
|
||||
2
scomm.py
2
scomm.py
@@ -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():
|
||||
|
||||
7
setup.py
7
setup.py
@@ -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'])]
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user