summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2015-10-26 16:05:01 +0100
committeremkael <emkael@tlen.pl>2015-10-26 16:05:01 +0100
commit2884d5270fa258ac2f9bd988cba2a75dd2eeed04 (patch)
tree95026742b5635a18806d0de8d257b615ebea26fc
parent770aaa789cdffb37962078cf9c698991b6aa26fb (diff)
* metadata for GUI builds
-rw-r--r--MAKE_GUI.bat1
-rw-r--r--MAKE_GUI.ps19
-rw-r--r--bidding_data_gui.spec17
3 files changed, 27 insertions, 0 deletions
diff --git a/MAKE_GUI.bat b/MAKE_GUI.bat
new file mode 100644
index 0000000..3df45e3
--- /dev/null
+++ b/MAKE_GUI.bat
@@ -0,0 +1 @@
+powershell -NoProfile -ExecutionPolicy bypass -File MAKE_GUI.ps1
diff --git a/MAKE_GUI.ps1 b/MAKE_GUI.ps1
new file mode 100644
index 0000000..17b5ce9
--- /dev/null
+++ b/MAKE_GUI.ps1
@@ -0,0 +1,9 @@
+& pyinstaller bidding_data_gui.spec
+Copy-Item '*.md' -Destination 'dist' -Force
+Copy-Item 'res\*' -Destination 'dist' -Force -Recurse
+Set-Variable -Name VersionInfo -Value (Get-Item 'dist\bidding_data.exe').VersionInfo
+Set-Variable -Name FileVersion -Value $VersionInfo.FileVersion.Split(',')
+Set-Variable -Name BundleName -Value ('bundle\\' + $VersionInfo.InternalName + '-' + $FileVersion[0].Trim() + '.' + $FileVersion[1].Trim() + '-gui.zip')
+Remove-Item $BundleName -ErrorAction SilentlyContinue
+Add-Type -Assembly 'System.IO.Compression.FileSystem'
+[System.IO.Compression.ZipFile]::CreateFromDirectory('dist', $BundleName)
diff --git a/bidding_data_gui.spec b/bidding_data_gui.spec
new file mode 100644
index 0000000..cbacb94
--- /dev/null
+++ b/bidding_data_gui.spec
@@ -0,0 +1,17 @@
+import os
+a = Analysis(['src\\bidding_data_gui.py'],
+ pathex=[os.path.abspath('.')],
+ hiddenimports=[],
+ hookspath=None,
+ runtime_hooks=None)
+pyz = PYZ(a.pure)
+exe = EXE(pyz,
+ a.scripts,
+ a.binaries,
+ a.zipfiles,
+ a.datas,
+ name='bidding_data.exe',
+ debug=False,
+ strip=None,
+ upx=True,
+ console=False , version='src\\version', icon='src\\icon.ico')