From bf1a65b8e8fcf04d017603dfbcd95a306104b132 Mon Sep 17 00:00:00 2001 From: bao-qian Date: Mon, 9 May 2016 03:06:11 +0100 Subject: [PATCH] msbuild based installer generation is not working in appveyor, not sure why --- Deploy/squirrel_installer.ps1 | 17 +++++++++++++++++ appveyor.yml | 9 +++++++-- 2 files changed, 24 insertions(+), 2 deletions(-) create mode 100644 Deploy/squirrel_installer.ps1 diff --git a/Deploy/squirrel_installer.ps1 b/Deploy/squirrel_installer.ps1 new file mode 100644 index 0000000000..9d355fb10b --- /dev/null +++ b/Deploy/squirrel_installer.ps1 @@ -0,0 +1,17 @@ +# msbuild based installer generation is not working in appveyor, not sure why + +$currentPath = Convert-Path . +Write-Host "Current path: " + $currentPath + +$path = $env:APPVEYOR_BUILD_FOLDER + "\Deploy\wox.nuspec" +Write-Host "nuspec path: " + $path +& nuget.exe pack $path -Version $env:APPVEYOR_BUILD_VERSION -Properties Configuration=Release + +$nupkgPath = $env:APPVEYOR_BUILD_FOLDER + "\Wox." + $env:APPVEYOR_BUILD_VERSION + ".nupkg" +Write-Host "nupkg path: " + $nupkgPath + +# must use Squirrel.com, Squirrel.exe will produce nothing +$squirrelPath = $env:APPVEYOR_BUILD_FOLDER + "\packages\squirrel*\tools\Squirrel.com" +Write-Host "squirrel path: " + $squirrelPath +$iconPath = $env:APPVEYOR_BUILD_FOLDER + "\Wox\Resources\app.ico" +& $squirrelPath --releasify $nupkgPath --setupIcon $iconPath --no-msi \ No newline at end of file diff --git a/appveyor.yml b/appveyor.yml index 71432ab3b4..8ac7270e9c 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -17,10 +17,15 @@ after_test: .\Deploy\nuget.ps1 .\Deploy\binary_zip.ps1 + + .\Deploy\squirrel_installer.ps1 artifacts: - path: 'Wox-*.zip' name: zipped_binary - path: '*.nupkg' name: nuget_package -- path: '\Output\Releases\Installer\*.*' - name: installer \ No newline at end of file +- path: '\Releases\*.exe' + name: installer +- path: '\Releases\*.nupkg' + name: installer +- path: 'Releases\RELEASES' \ No newline at end of file