summaryrefslogtreecommitdiff
path: root/MAKE.ps1
blob: d0ddd4712e4513b7b69498d7427764e85dff0b02 (plain)
1
2
3
4
5
6
7
8
9
& pyinstaller bidding_data.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() + '.zip')
Remove-Item $BundleName -ErrorAction SilentlyContinue
Add-Type -Assembly 'System.IO.Compression.FileSystem'
[System.IO.Compression.ZipFile]::CreateFromDirectory('dist', $BundleName)