summaryrefslogtreecommitdiff
path: root/MAKE.ps1
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2016-11-15 02:27:08 +0100
committeremkael <emkael@tlen.pl>2016-11-15 02:27:08 +0100
commitd6ce966e17fbe92e8024d11133b1475853034c10 (patch)
tree8333f6403691cf0c9c54ad63f320dadd79545b76 /MAKE.ps1
parent9397efd4c74a88fa01fcf859a023af978de72683 (diff)
* separate dist paths for both builds
Diffstat (limited to 'MAKE.ps1')
-rw-r--r--MAKE.ps110
1 files changed, 5 insertions, 5 deletions
diff --git a/MAKE.ps1 b/MAKE.ps1
index d0ddd47..b87ac7a 100644
--- a/MAKE.ps1
+++ b/MAKE.ps1
@@ -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)