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