diff options
author | emkael <emkael@tlen.pl> | 2015-10-26 16:05:01 +0100 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2015-10-26 16:05:01 +0100 |
commit | 2884d5270fa258ac2f9bd988cba2a75dd2eeed04 (patch) | |
tree | 95026742b5635a18806d0de8d257b615ebea26fc /MAKE_GUI.ps1 | |
parent | 770aaa789cdffb37962078cf9c698991b6aa26fb (diff) |
* metadata for GUI builds
Diffstat (limited to 'MAKE_GUI.ps1')
-rw-r--r-- | MAKE_GUI.ps1 | 9 |
1 files changed, 9 insertions, 0 deletions
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) |