diff options
author | emkael <emkael@tlen.pl> | 2015-09-01 20:53:02 +0200 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2015-09-01 20:53:02 +0200 |
commit | 1c3fb72ac83e96e765a65186bb5e371dd1e5ebcb (patch) | |
tree | 7305de5b016878129f6f70424205fe5c54002f44 /MAKE.ps1 | |
parent | 663b0ce431635ad98908fd53689205d61f21b56f (diff) |
* build tools and environment
Diffstat (limited to 'MAKE.ps1')
-rw-r--r-- | MAKE.ps1 | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/MAKE.ps1 b/MAKE.ps1 new file mode 100644 index 0000000..d0ddd47 --- /dev/null +++ b/MAKE.ps1 @@ -0,0 +1,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) |