Compare commits
11 Commits
release/0.
...
0.0.0.546
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b07d15c9aa | ||
|
|
063471ff28 | ||
|
|
606d72b55f | ||
|
|
d89e949185 | ||
|
|
d93ea4a5a2 | ||
|
|
062b076c61 | ||
|
|
1312e2ddd5 | ||
|
|
9fe7e1e15a | ||
|
|
9e11c4c926 | ||
|
|
1f211f2713 | ||
|
|
2aebd5689a |
64
appveyor.yml
64
appveyor.yml
@@ -1,14 +1,50 @@
|
||||
version: 1.2.{build}
|
||||
|
||||
build:
|
||||
verbosity: minimal
|
||||
|
||||
assembly_info:
|
||||
patch: true
|
||||
file: AssemblyInfo.*
|
||||
assembly_version: "1.2.{build}"
|
||||
assembly_file_version: "{version}"
|
||||
assembly_informational_version: "{version}"
|
||||
|
||||
artifacts:
|
||||
- path: '**\*.msi'
|
||||
version: build_number_{build}
|
||||
configuration: Release
|
||||
skip_tags: true
|
||||
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:
|
||||
patch: true
|
||||
file: '**\AssemblyInfo.*'
|
||||
assembly_version: $(VERSION_FROM_BRANCH)
|
||||
assembly_file_version: $(VERSION_FROM_BRANCH)
|
||||
assembly_informational_version: $(VERSION_FROM_BRANCH)
|
||||
before_build:
|
||||
- ps: >-
|
||||
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:
|
||||
@@ -2,7 +2,7 @@
|
||||
$fileType = 'msi'
|
||||
$silentArgs = '/quiet'
|
||||
$scriptPath = $(Split-Path $MyInvocation.MyCommand.Path)
|
||||
$fileFullPath = Join-Path $scriptPath 'TimberWinR-${version}.0.msi'
|
||||
$fileFullPath = Join-Path $scriptPath 'TimberWinR-${version}.msi'
|
||||
try {
|
||||
Install-ChocolateyInstallPackage $packageName $fileType $silentArgs $fileFullPath
|
||||
} catch {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
$packageName = 'TimberWinR-${version}' # arbitrary name for the package, used in messages
|
||||
$installerType = 'msi' #only one of these: exe, msi, msu
|
||||
$scriptPath = $(Split-Path $MyInvocation.MyCommand.Path)
|
||||
$fileFullPath = Join-Path $scriptPath 'TimberWinR-${version}.0.msi'
|
||||
$fileFullPath = Join-Path $scriptPath 'TimberWinR-${version}.msi'
|
||||
$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
|
||||
UnInstall-ChocolateyPackage "$packageName" "$installerType" "$silentArgs" "fileFullPath" -validExitCodes $validExitCodes
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
$packageName = 'TimberWinR-${version}' # arbitrary name for the package, used in messages
|
||||
$installerType = 'msi' #only one of these: exe, msi, msu
|
||||
$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'
|
||||
$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
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
$packageName = 'TimberWinR-${version}' # arbitrary name for the package, used in messages
|
||||
$installerType = 'msi' #only one of these: exe, msi, msu
|
||||
$scriptPath = $(Split-Path $MyInvocation.MyCommand.Path)
|
||||
$fileFullPath = Join-Path $scriptPath 'TimberWinR-${version}.0.msi'
|
||||
$fileFullPath = Join-Path $scriptPath 'TimberWinR-${version}.msi'
|
||||
$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
|
||||
UnInstall-ChocolateyPackage "$packageName" "$installerType" "$silentArgs" "fileFullPath" -validExitCodes $validExitCodes
|
||||
@@ -5,7 +5,7 @@
|
||||
<!-- Read this before publishing packages to chocolatey.org: https://github.com/chocolatey/chocolatey/wiki/CreatePackages -->
|
||||
<id>TimberWinR</id>
|
||||
<title>TimberWinR</title>
|
||||
<version>${version}.0</version>
|
||||
<version>${version}</version>
|
||||
<authors>efontana</authors>
|
||||
<owners>Eric Fontana</owners>
|
||||
<summary>TimberWinR Shipper</summary>
|
||||
|
||||
Reference in New Issue
Block a user