Browse Source

Add preparerelease.bat

pull/1039/head
Siegfried Pammer 8 years ago
parent
commit
98b22f3f1f
  1. 9
      BuildTools/update-assemblyinfo.ps1
  2. 1
      appveyor.yml
  3. 29
      preparerelease.bat

9
BuildTools/update-assemblyinfo.ps1

@ -3,6 +3,8 @@ @@ -3,6 +3,8 @@
$baseCommit = "d779383cb85003d6dabeb976f0845631e07bf463";
$baseCommitRev = 1;
$masterBranches = @("master", "3.0.x");
$globalAssemblyInfoTemplateFile = "ILSpy/Properties/AssemblyInfo.template.cs";
function Test-File([string]$filename) {
@ -96,10 +98,11 @@ try { @@ -96,10 +98,11 @@ try {
$branchName = gitBranch;
$gitCommitHash = gitCommitHash;
$postfixBranchName = "";
if ($branchName -ne "master") {
if ($masterBranches -contains $branchName) {
$postfixBranchName = "";
} else {
$postfixBranchName = "-$branchName";
}
}
if ($versionName -eq "null") {
$versionName = "";

1
appveyor.yml

@ -31,6 +31,7 @@ for: @@ -31,6 +31,7 @@ for:
- branches:
only:
- master
- 3.0.x
artifacts:
- path: ILSpy_binaries.zip
name: ILSpy %APPVEYOR_REPO_BRANCH% %ILSPY_VERSION_NUMBER% binaries

29
preparerelease.bat

@ -0,0 +1,29 @@ @@ -0,0 +1,29 @@
@setlocal enabledelayedexpansion
@set MSBUILD=
@for /D %%M in ("%ProgramFiles(x86)%\Microsoft Visual Studio\2017"\*) do (
@if exist "%%M\MSBuild\15.0\Bin\MSBuild.exe" (
@set "MSBUILD=%%M\MSBuild\15.0\Bin\MSBuild.exe"
)
)
@if "%MSBUILD%" == "" (
@echo Could not find VS2017 MSBuild
@exit /b 1
)
@del ICSharpCode.Decompiler\bin\Release\*.nupkg
"%MSBUILD%" ILSpy.sln /p:Configuration=Release "/p:Platform=Any CPU"
@IF %ERRORLEVEL% NEQ 0 (
@pause
@exit /b 1
)
@if not exist "%ProgramFiles%\7-zip\7z.exe" (
@echo Could not find 7zip
@exit /b 1
)
@del artifacts.zip
@rmdir /Q /S artifacts
@mkdir artifacts
"%ProgramFiles%\7-zip\7z.exe" a artifacts\ILSpy_binaries.zip %cd%\ILSpy\bin\Release\net46\*.dll %cd%\ILSpy\bin\Release\net46\*.exe %cd%\ILSpy\bin\Release\net46\*.config
@copy ILSpy.AddIn\bin\Release\net46\ILSpy.AddIn.vsix artifacts\
@copy ICSharpCode.Decompiler\bin\Release\*.nupkg artifacts\
"%ProgramFiles%\7-zip\7z.exe" a artifacts.zip %cd%\artifacts\*
@exit /b 0
Loading…
Cancel
Save