Skip to content

Commit 61121fe

Browse files
committed
ADD: The spec file to build pyResMan;
1 parent 88bf685 commit 61121fe

File tree

2 files changed

+37
-1
lines changed

2 files changed

+37
-1
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ var/
2727
# Usually these files are written by a python script from a template
2828
# before PyInstaller builds the exe, so as to inject date/other infos into it.
2929
*.manifest
30-
*.spec
30+
#*.spec
3131

3232
# Installer logs
3333
pip-log.txt

pyResMan.spec

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# -*- mode: python -*-
2+
3+
import os
4+
import sys
5+
6+
block_cipher = None
7+
8+
basepath = os.path.abspath(os.path.curdir)
9+
10+
addlibpath = 'GpPcscConnectionPlugin.dll'
11+
if sys.platform.startswith('linux'):
12+
addlibpath = "/usr/lib/libgppcscconnectionplugin.so.1"
13+
14+
a = Analysis(['Main.py'],
15+
pathex=[basepath],
16+
binaries=[(addlibpath, '.')],
17+
datas=None,
18+
hiddenimports=[],
19+
hookspath=None,
20+
runtime_hooks=None,
21+
excludes=None,
22+
win_no_prefer_redirects=None,
23+
win_private_assemblies=None,
24+
cipher=block_cipher)
25+
pyz = PYZ(a.pure, a.zipped_data,
26+
cipher=block_cipher)
27+
exe = EXE(pyz,
28+
a.scripts,
29+
a.binaries,
30+
a.zipfiles,
31+
a.datas,
32+
name='pyResMan',
33+
debug=False,
34+
strip=None,
35+
upx=True,
36+
console=True , version='version.txt')

0 commit comments

Comments
 (0)