11 Commits

Author SHA1 Message Date
Eric Fontana
b07d15c9aa Must use secure version of url 2015-06-04 08:33:18 -04:00
Eric Fontana
063471ff28 Publish to Chocolatey use correct server. 2015-06-04 08:21:54 -04:00
Eric Fontana
606d72b55f .nuspec template needed version number fixing 2015-06-04 08:04:06 -04:00
Eric Fontana
d89e949185 Fixed version number for nuget package scripts. 2015-06-04 08:02:13 -04:00
Eric Fontana
d93ea4a5a2 Yaml wants spaces not tabs. 2015-06-04 07:52:05 -04:00
Eric Fontana
062b076c61 Commands must have newlines. 2015-06-04 07:50:55 -04:00
Eric Fontana
1312e2ddd5 Fixed tab -> spaces 2015-06-04 07:42:43 -04:00
Eric Fontana
9fe7e1e15a Package for choco after build. 2015-06-04 07:39:59 -04:00
Eric Fontana
9e11c4c926 Use correct env var for version. 2015-06-04 07:37:19 -04:00
Eric Fontana
1f211f2713 Fixed powershell before_build 2015-06-04 07:34:02 -04:00
Eric Fontana
2aebd5689a First attempt at new yaml. 2015-06-04 07:21:08 -04:00
6 changed files with 55 additions and 19 deletions

View File

@@ -1,14 +1,50 @@
version: 1.2.{build} version: build_number_{build}
configuration: Release
build: skip_tags: true
verbosity: minimal init:
- ps: "$v = [regex]::match($env:APPVEYOR_REPO_BRANCH,'release/(.*)').Groups[1].Value\nWrite-Host \"On branch $($env:APPVEYOR_REPO_BRANCH)\"\nIF($v) { \n $env:VERSION_FROM_BRANCH = \"$($v).$($env:APPVEYOR_BUILD_NUMBER)\"\n} else {\n $env:VERSION_FROM_BRANCH = \"0.0.0.$($env:APPVEYOR_BUILD_NUMBER)\"\n}\nWrite-Host \"Set version to $($env:VERSION_FROM_BRANCH)\""
assembly_info: assembly_info:
patch: true patch: true
file: AssemblyInfo.* file: '**\AssemblyInfo.*'
assembly_version: "1.2.{build}" assembly_version: $(VERSION_FROM_BRANCH)
assembly_file_version: "{version}" assembly_file_version: $(VERSION_FROM_BRANCH)
assembly_informational_version: "{version}" assembly_informational_version: $(VERSION_FROM_BRANCH)
before_build:
artifacts: - ps: >-
- path: '**\*.msi' mkdir tools
NuGet.exe restore TimberWinR.sln
build:
verbosity: normal
after_build:
- ps: >-
cat chocolateyInstall.ps1.template|%{$_-replace "\$\{version\}",$env:VERSION_FROM_BRANCH} > tools\chocolateyInstall.ps1
cat chocolateyUninstall.ps1.template|%{$_-replace "\$\{version\}",$env:VERSION_FROM_BRANCH} > tools\chocolateyUninstall.ps1
cat tools\chocolateyUninstall.ps1
cat timberwinr.nuspec.template|%{$_-replace "\$\{version\}",$env:VERSION_FROM_BRANCH} > timberwinr.nuspec
choco pack timberwinr.nuspec
artifacts:
- path: .\*.nupkg
name: NuGet
- path: TimberWinR.ServiceHost\bin\*\*.dll
name: Dlls
- path: TimberWinR.ServiceHost\bin\*\*.exe
name: Exes
- path: TimberWix\bin\*\*.msi
name: MSI
deploy:
- provider: NuGet
server: https://chocolatey.org/
api_key:
secure: y8zhZTNm3PWLLxtKiMO79Shx3TyG3lnuGpJ6J7GT+2SihEspFxuBXz+WvmI6qzX+
skip_symbols: true
artifact: NuGet
on:
branch: /release/.*/
- provider: GitHub
release: $(VERSION_FROM_BRANCH)
auth_token:

View File

@@ -2,7 +2,7 @@
$fileType = 'msi' $fileType = 'msi'
$silentArgs = '/quiet' $silentArgs = '/quiet'
$scriptPath = $(Split-Path $MyInvocation.MyCommand.Path) $scriptPath = $(Split-Path $MyInvocation.MyCommand.Path)
$fileFullPath = Join-Path $scriptPath 'TimberWinR-${version}.0.msi' $fileFullPath = Join-Path $scriptPath 'TimberWinR-${version}.msi'
try { try {
Install-ChocolateyInstallPackage $packageName $fileType $silentArgs $fileFullPath Install-ChocolateyInstallPackage $packageName $fileType $silentArgs $fileFullPath
} catch { } catch {

View File

@@ -1,7 +1,7 @@
$packageName = 'TimberWinR-${version}' # arbitrary name for the package, used in messages $packageName = 'TimberWinR-${version}' # arbitrary name for the package, used in messages
$installerType = 'msi' #only one of these: exe, msi, msu $installerType = 'msi' #only one of these: exe, msi, msu
$scriptPath = $(Split-Path $MyInvocation.MyCommand.Path) $scriptPath = $(Split-Path $MyInvocation.MyCommand.Path)
$fileFullPath = Join-Path $scriptPath 'TimberWinR-${version}.0.msi' $fileFullPath = Join-Path $scriptPath 'TimberWinR-${version}.msi'
$silentArgs = '${PROJECTGUID} /quiet' $silentArgs = '${PROJECTGUID} /quiet'
$validExitCodes = @(0) #please insert other valid exit codes here, exit codes for ms http://msdn.microsoft.com/en-us/library/aa368542(VS.85).aspx $validExitCodes = @(0) #please insert other valid exit codes here, exit codes for ms http://msdn.microsoft.com/en-us/library/aa368542(VS.85).aspx
UnInstall-ChocolateyPackage "$packageName" "$installerType" "$silentArgs" "fileFullPath" -validExitCodes $validExitCodes UnInstall-ChocolateyPackage "$packageName" "$installerType" "$silentArgs" "fileFullPath" -validExitCodes $validExitCodes

View File

@@ -1,7 +1,7 @@
$packageName = 'TimberWinR-${version}' # arbitrary name for the package, used in messages $packageName = 'TimberWinR-${version}' # arbitrary name for the package, used in messages
$installerType = 'msi' #only one of these: exe, msi, msu $installerType = 'msi' #only one of these: exe, msi, msu
$scriptPath = $(Split-Path $MyInvocation.MyCommand.Path) $scriptPath = $(Split-Path $MyInvocation.MyCommand.Path)
$fileFullPath = Join-Path $scriptPath 'TimberWinR-${version}.0.msi' $fileFullPath = Join-Path $scriptPath 'TimberWinR-${version}.msi'
$silentArgs = '{E001D138-669B-4604-88C5-02C756461C15} /quiet' $silentArgs = '{E001D138-669B-4604-88C5-02C756461C15} /quiet'
$validExitCodes = @(0) #please insert other valid exit codes here, exit codes for ms http://msdn.microsoft.com/en-us/library/aa368542(VS.85).aspx $validExitCodes = @(0) #please insert other valid exit codes here, exit codes for ms http://msdn.microsoft.com/en-us/library/aa368542(VS.85).aspx
UnInstall-ChocolateyPackage "$packageName" "$installerType" "$silentArgs" "fileFullPath" -validExitCodes $validExitCodes UnInstall-ChocolateyPackage "$packageName" "$installerType" "$silentArgs" "fileFullPath" -validExitCodes $validExitCodes

View File

@@ -1,7 +1,7 @@
$packageName = 'TimberWinR-${version}' # arbitrary name for the package, used in messages $packageName = 'TimberWinR-${version}' # arbitrary name for the package, used in messages
$installerType = 'msi' #only one of these: exe, msi, msu $installerType = 'msi' #only one of these: exe, msi, msu
$scriptPath = $(Split-Path $MyInvocation.MyCommand.Path) $scriptPath = $(Split-Path $MyInvocation.MyCommand.Path)
$fileFullPath = Join-Path $scriptPath 'TimberWinR-${version}.0.msi' $fileFullPath = Join-Path $scriptPath 'TimberWinR-${version}.msi'
$silentArgs = '${PROJECTGUID} /quiet' $silentArgs = '${PROJECTGUID} /quiet'
$validExitCodes = @(0) #please insert other valid exit codes here, exit codes for ms http://msdn.microsoft.com/en-us/library/aa368542(VS.85).aspx $validExitCodes = @(0) #please insert other valid exit codes here, exit codes for ms http://msdn.microsoft.com/en-us/library/aa368542(VS.85).aspx
UnInstall-ChocolateyPackage "$packageName" "$installerType" "$silentArgs" "fileFullPath" -validExitCodes $validExitCodes UnInstall-ChocolateyPackage "$packageName" "$installerType" "$silentArgs" "fileFullPath" -validExitCodes $validExitCodes

View File

@@ -5,7 +5,7 @@
<!-- Read this before publishing packages to chocolatey.org: https://github.com/chocolatey/chocolatey/wiki/CreatePackages --> <!-- Read this before publishing packages to chocolatey.org: https://github.com/chocolatey/chocolatey/wiki/CreatePackages -->
<id>TimberWinR</id> <id>TimberWinR</id>
<title>TimberWinR</title> <title>TimberWinR</title>
<version>${version}.0</version> <version>${version}</version>
<authors>efontana</authors> <authors>efontana</authors>
<owners>Eric Fontana</owners> <owners>Eric Fontana</owners>
<summary>TimberWinR Shipper</summary> <summary>TimberWinR Shipper</summary>