Browse Source

add PyInstaller spec file, PrivateBin icon

Signed-off-by: R4SAS <r4sas@i2pmail.org>
gha
R4SAS 3 years ago
parent
commit
51170975c7
Signed by: r4sas
GPG Key ID: 66F6C87B98EBCFE2
  1. 1
      .gitignore
  2. BIN
      contrib/privatebin.ico
  3. 67
      pbincli.spec

1
.gitignore vendored

@ -54,6 +54,7 @@ MANIFEST
# before PyInstaller builds the exe, so as to inject date/other infos into it. # before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest *.manifest
*.spec *.spec
-pbincli.spec
# Installer logs # Installer logs
pip-log.txt pip-log.txt

BIN
contrib/privatebin.ico

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

67
pbincli.spec

@ -0,0 +1,67 @@
# -*- mode: python -*-
from pkg_resources import parse_version
from PyInstaller.utils.win32.versioninfo import VSVersionInfo, FixedFileInfo, StringFileInfo, StringTable, StringStruct, VarFileInfo, VarStruct
from pbincli.__init__ import __version__ as pbincli_version, __copyright__ as pbincli_copyright
pbincli_ver = parse_version(pbincli_version)
block_cipher = None
a = Analysis(['pbincli\\cli.py'],
pathex=[],
binaries=[],
datas=[],
hiddenimports=[],
hookspath=[],
runtime_hooks=[],
excludes=[],
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=block_cipher,
noarchive=False)
pyz = PYZ(a.pure, a.zipped_data,
cipher=block_cipher)
exe = EXE(pyz,
a.scripts,
a.binaries,
a.zipfiles,
a.datas,
[],
name='pbincli-' + pbincli_version,
version=VSVersionInfo(
ffi=FixedFileInfo(
filevers=(pbincli_ver.major, pbincli_ver.minor, pbincli_ver.micro, 0),
prodvers=(pbincli_ver.major, pbincli_ver.minor, pbincli_ver.micro, 0),
mask=0x3f,
flags=0x0,
OS=0x40004,
fileType=0x1,
subtype=0x0,
date=(0, 0)
),
kids=[
StringFileInfo([
StringTable(
u'040904B0',
[
StringStruct(u'FileDescription', u'PrivateBin CLI'),
StringStruct(u'FileVersion', pbincli_version),
StringStruct(u'InternalName', u'pbincli'),
StringStruct(u'LegalCopyright', pbincli_copyright),
StringStruct(u'OriginalFilename', u'pbincli-' + pbincli_version + u'.exe'),
StringStruct(u'ProductName', u'PBinCLI'),
StringStruct(u'ProductVersion', pbincli_version)
]
)
]),
VarFileInfo([VarStruct(u'Translation', [1033, 1200])])
]
),
icon=['contrib\\privatebin.ico'],
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
runtime_tmpdir=None,
console=True)
Loading…
Cancel
Save