From 3233807c17de63f62a2de7a4cae36a9eb23c275e Mon Sep 17 00:00:00 2001 From: Jay Lee Date: Tue, 11 Oct 2016 15:30:40 -0400 Subject: [PATCH] remove pathext from macos-gam.spec --- src/linux-build.sh | 10 ++++++++++ src/linux-gam.spec | 26 ++++++++++++++++++++++++++ src/macos-gam.spec | 1 - 3 files changed, 36 insertions(+), 1 deletion(-) create mode 100755 src/linux-build.sh create mode 100644 src/linux-gam.spec diff --git a/src/linux-build.sh b/src/linux-build.sh new file mode 100755 index 00000000..df250531 --- /dev/null +++ b/src/linux-build.sh @@ -0,0 +1,10 @@ +rm -rf gam +rm -rf build +rm -rf dist +rm -rf gam-$1-linux-$(arch).tar.xz + +pyinstaller --clean -F --distpath=gam linux-gam.spec +cp LICENSE gam +cp whatsnew.txt gam + +tar cfJ gam-$1-linux-$(arch).tar.xz gam/ diff --git a/src/linux-gam.spec b/src/linux-gam.spec new file mode 100644 index 00000000..710c5670 --- /dev/null +++ b/src/linux-gam.spec @@ -0,0 +1,26 @@ +# -*- mode: python -*- +a = Analysis(['gam.py'], + hiddenimports=[], + hookspath=None, + excludes=['_tkinter'], + runtime_hooks=None) +for d in a.datas: + if 'pyconfig' in d[0]: + a.datas.remove(d) + break +a.datas += [('httplib2/cacerts.txt', 'httplib2\cacerts.txt', 'DATA')] +a.datas += [('admin-settings-v2.json', 'admin-settings-v2.json', 'DATA')] +a.datas += [('cloudprint-v2.json', 'cloudprint-v2.json', 'DATA')] +a.datas += [('email-audit-v1.json', 'email-audit-v1.json', 'DATA')] +a.datas += [('email-settings-v2.json', 'email-settings-v2.json', 'DATA')] +pyz = PYZ(a.pure) +exe = EXE(pyz, + a.scripts, + a.binaries, + a.zipfiles, + a.datas, + name='gam', + debug=False, + strip=None, + upx=True, + console=True ) diff --git a/src/macos-gam.spec b/src/macos-gam.spec index 3cc0d518..710c5670 100644 --- a/src/macos-gam.spec +++ b/src/macos-gam.spec @@ -1,6 +1,5 @@ # -*- mode: python -*- a = Analysis(['gam.py'], - pathex=['C:\\Users\\jlee\\Documents\\GitHub\\GAM'], hiddenimports=[], hookspath=None, excludes=['_tkinter'],