diff options
author | emkael <emkael@tlen.pl> | 2016-11-15 02:27:08 +0100 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2016-11-15 02:27:08 +0100 |
commit | d6ce966e17fbe92e8024d11133b1475853034c10 (patch) | |
tree | 8333f6403691cf0c9c54ad63f320dadd79545b76 /MAKE.ps1 | |
parent | 9397efd4c74a88fa01fcf859a023af978de72683 (diff) |
* separate dist paths for both builds
Diffstat (limited to 'MAKE.ps1')
-rw-r--r-- | MAKE.ps1 | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -1,9 +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 +& pyinstaller bidding_data.spec --distpath dist\console +Copy-Item '*.md' -Destination 'dist\console' -Force +Copy-Item 'res\*' -Destination 'dist\console' -Force -Recurse +Set-Variable -Name VersionInfo -Value (Get-Item 'dist\console\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) +[System.IO.Compression.ZipFile]::CreateFromDirectory('dist\console', $BundleName) |