Attempt setting package version with PowerShell, remove obsolete install script
This commit is contained in:
parent
7b388ce03b
commit
4723059274
2 changed files with 2 additions and 31 deletions
|
@ -72,9 +72,8 @@ build_script:
|
|||
# Collect binary, set package version and build chocolatey package
|
||||
- copy .\ffsend-%TARGET%-static.exe .\pkg\choco\ffsend\tools\ffsend.exe
|
||||
- cd .\pkg\choco\ffsend\
|
||||
- sh: >-
|
||||
echo $(echo $APPVEYOR_REPO_TAG_NAME | cut -c 2-)
|
||||
sed "s/0\\.0\\.0/$(echo $APPVEYOR_REPO_TAG_NAME | cut -c 2-)/" -i ffsend.nuspec
|
||||
- ps: echo $env:APPVEYOR_REPO_TAG_NAME
|
||||
- ps: ((Get-Content -path .\ffsend.nuspec -Raw) -replace "0.0.0","$env:APPVEYOR_REPO_TAG_NAME.Substring(1)") | Set-Content -Path .\ffsend.nuspec
|
||||
- choco pack
|
||||
# - choco push --api-key %CHOCOLATEY_TOKEN%
|
||||
- dir
|
||||
|
|
|
@ -1,28 +0,0 @@
|
|||
# IMPORTANT: Before releasing this package, copy/paste the next 2 lines into PowerShell to remove all comments from this file:
|
||||
# $f='c:\path\to\thisFile.ps1'
|
||||
# gc $f | ? {$_ -notmatch "^\s*#"} | % {$_ -replace '(^.*?)\s*?[^``]#.*','$1'} | Out-File $f+".~" -en utf8; mv -fo $f+".~" $f
|
||||
|
||||
$ErrorActionPreference = 'Stop';
|
||||
$toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"
|
||||
$fileLocation = Join-Path $toolsDir 'ffsend.exe'
|
||||
|
||||
$packageArgs = @{
|
||||
packageName = $env:ChocolateyPackageName
|
||||
unzipLocation = $toolsDir
|
||||
fileType = 'EXE'
|
||||
file = $fileLocation
|
||||
|
||||
softwareName = 'ffsend'
|
||||
|
||||
# Checksums are now required as of 0.10.0.
|
||||
# To determine checksums, you can get that from the original site if provided.
|
||||
# You can also use checksum.exe (choco install checksum) and use it
|
||||
# e.g. checksum -t sha256 -f path\to\file
|
||||
# checksum = ''
|
||||
# checksumType = 'sha256' #default is md5, can also be sha1, sha256 or sha512
|
||||
|
||||
# silentArgs = ""
|
||||
validExitCodes= @(0)
|
||||
}
|
||||
|
||||
Install-ChocolateyPackage @packageArgs
|
Loading…
Reference in a new issue