Fix windows build script

This commit is contained in:
adityapk00
2018-10-28 17:01:00 -07:00
parent 2d82c27b63
commit 32fec42390
2 changed files with 9 additions and 8 deletions

1
.gitignore vendored
View File

@@ -8,6 +8,7 @@ src/precompiled.h.cpp
.qmake.stash .qmake.stash
zec-qt-wallet zec-qt-wallet
zec-qt-wallet.vcxproj* zec-qt-wallet.vcxproj*
zec-qt-wallet.sln
zec-qt-wallet.pro.user zec-qt-wallet.pro.user
Makefile Makefile
Makefile.* Makefile.*

View File

@@ -4,7 +4,7 @@ if (-not (Test-Path env:APP_VERSION)) { echo "APP_VERSION is not set. Please set
$target="zec-qt-wallet-v$Env:APP_VERSION" $target="zec-qt-wallet-v$Env:APP_VERSION"
echo "Git Status" echo "Git Status"
$branch= &git branch $branch= &git branch | select -first 1
if ($branch -ne "* master") { if ($branch -ne "* master") {
echo "Not on master branch!" echo "Not on master branch!"
exit; exit;
@@ -35,12 +35,12 @@ Copy-Item README.md release/$target | Out-Null
echo "Zipping" echo "Zipping"
Compress-Archive -LiteralPath release/$target -DestinationPath "release/Windows-$target.zip" Compress-Archive -LiteralPath release/$target -DestinationPath "release/Windows-$target.zip"
echo "Package Contents" #echo "Package Contents"
[Reflection.Assembly]::LoadWithPartialName('System.IO.Compression.FileSystem') #[Reflection.Assembly]::LoadWithPartialName('System.IO.Compression.FileSystem')
foreach($sourceFile in (Get-ChildItem "release/Windows-$target.zip")) #foreach($sourceFile in (Get-ChildItem "release/Windows-$target.zip"))
{ #{
[IO.Compression.ZipFile]::OpenRead($sourceFile.FullName).Entries.FullName | # [IO.Compression.ZipFile]::OpenRead($sourceFile.FullName).Entries.FullName |
%{ "$sourcefile`:$_" } # %{ "$sourcefile`:$_" }
} #}
echo "Done" echo "Done"