summaryrefslogtreecommitdiff
path: root/MAKE_GUI.ps1
blob: 17b5ce919b248f88734cd5031793485ff51ba8ac (plain)
1
2
3
4
5
6
7
8
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)