From ab1769bacffa1b648ec6aef0f49874896b79f949 Mon Sep 17 00:00:00 2001 From: Anairkoen Schno Date: Sun, 14 Oct 2018 02:04:21 -0500 Subject: [PATCH] Continued tweaking AppVeyor deploy options --- BSIPA.sln | 5 +++++ IPA.Injector/Properties/AssemblyInfo.cs | 4 ++-- IPA/Properties/AssemblyInfo.cs | 4 ++-- appveyor.yml | 14 +++++++++++--- 4 files changed, 20 insertions(+), 7 deletions(-) diff --git a/BSIPA.sln b/BSIPA.sln index 1439075c..22e920f1 100644 --- a/BSIPA.sln +++ b/BSIPA.sln @@ -33,6 +33,11 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Tools", "Tools", "{C79C2C3A EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CollectDependencies", "CollectDependencies\CollectDependencies.csproj", "{5F33B310-DC8D-4C0D-877E-BAC3908DE10F}" EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{4D6639A2-BD39-4F9B-AF7F-8E5F3B88243D}" + ProjectSection(SolutionItems) = preProject + appveyor.yml = appveyor.yml + EndProjectSection +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU diff --git a/IPA.Injector/Properties/AssemblyInfo.cs b/IPA.Injector/Properties/AssemblyInfo.cs index 95faa576..01d79892 100644 --- a/IPA.Injector/Properties/AssemblyInfo.cs +++ b/IPA.Injector/Properties/AssemblyInfo.cs @@ -35,5 +35,5 @@ using System.Runtime.InteropServices; // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("3.11.1")] -[assembly: AssemblyFileVersion("3.11.1")] +[assembly: AssemblyVersion("3.11.1")] // will be patched by AppVeyor +[assembly: AssemblyFileVersion("3.11.1")] // will be patched by AppVeyor diff --git a/IPA/Properties/AssemblyInfo.cs b/IPA/Properties/AssemblyInfo.cs index bd6e746b..3126faea 100644 --- a/IPA/Properties/AssemblyInfo.cs +++ b/IPA/Properties/AssemblyInfo.cs @@ -32,5 +32,5 @@ using System.Runtime.InteropServices; // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("3.11.1")] -[assembly: AssemblyFileVersion("3.11.1")] +[assembly: AssemblyVersion("3.11.1")] // will be patched by AppVeyor +[assembly: AssemblyFileVersion("3.11.1")] // will be patched by AppVeyor diff --git a/appveyor.yml b/appveyor.yml index 38d57a63..59efa15c 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,4 +1,6 @@ -version: '{branch}-{build}' +version: 'BSIPA-{branch}-{build}' +environment: + bsipa_version: '3.11.1' pull_requests: do_not_increment_build_number: true install: @@ -11,15 +13,21 @@ cache: - '%LocalAppData%\NuGet\v3-cache' # NuGet v3 artifacts: - path: IPA/bin/$(configuration) +assembly_info: + patch: true + file: IPA/Properties/AssemblyInfo.cs;IPA.Injector/Properties/AssemblyInfo.cs + assembly_version: '$(bsipa_version)' + assembly_file_version: '$(bsipa_version)' build: verbosity: normal project: BSIPA.sln deploy: - provider: GitHub - release: BSIPA {NEWVER} + release: BSIPA $(bsipa_version) + tag: $(bsipa_version) auth_token: secure: KhF3q/zWEFwrW0QeZLqE3NAkWR4u9iVhsmcyzXvwwJ28fUy+MzW4CWBx3RxNM60t - artifact: IPA\Bin\Release.zip + artifact: IPA/Bin/$(configuration).zip draft: true force_update: true on: