Skip to content

Commit 991dc26

Browse files
committed
增加exe的版本信息
1 parent 7546656 commit 991dc26

File tree

2 files changed

+34
-1
lines changed

2 files changed

+34
-1
lines changed

dev.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ pipenv shell
1919
@REM 安装依赖,在虚拟环境中
2020
pip install pyinstaller requests urllib3 tqdm -i https://pypi.tuna.tsinghua.edu.cn/simple/
2121
@REM 打包
22-
pyinstaller -F -n DockerPull.exe -i favicon.ico docker_image_puller.py
22+
pyinstaller -F -n DockerPull.exe -i favicon.ico --version-file=version.txt docker_image_puller.py
2323
@REM 卸载依赖
2424
pipenv uninstall --all
2525
@REM 删除虚拟环境

version.txt

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# UTF-8
2+
VSVersionInfo(
3+
ffi=FixedFileInfo(
4+
filevers=(1, 0, 5, 0),
5+
prodvers=(1, 0, 5, 0),
6+
mask=0x3f,
7+
flags=0x0,
8+
OS=0x4,
9+
fileType=0x1,
10+
subtype=0x0,
11+
date=(0, 0)
12+
),
13+
kids=[
14+
StringFileInfo(
15+
[
16+
StringTable(
17+
'040904B0',
18+
[
19+
StringStruct('CompanyName', 'topcss'),
20+
StringStruct('FileDescription', 'Docker Image Puller 无需安装 Docker 或 Python 环境,直接从 Docker 仓库拉取镜像,支持国内镜像源加速和多架构支持。项目地址:https://github.com/topcss/docker-pull-tar'),
21+
StringStruct('FileVersion', '1.0.5.0'),
22+
StringStruct('InternalName', 'DockerPull'),
23+
StringStruct('LegalCopyright', 'MIT License | GitHub: https://github.com/topcss/docker-pull-tar'),
24+
StringStruct('OriginalFilename', 'DockerPull.exe'),
25+
StringStruct('ProductName', 'DockerPull'),
26+
StringStruct('ProductVersion', '1.0.5.0')
27+
]
28+
)
29+
]
30+
),
31+
VarFileInfo([VarStruct('Translation', [1033, 1200])])
32+
]
33+
)

0 commit comments

Comments
 (0)