Permalink
Browse files

Add preparerelease.bat

  • Loading branch information...
siegfriedpammer committed Dec 21, 2017
1 parent bb23d0d commit 98b22f3f1fa8864dd993d2d9a41490943575d78b
Showing with 36 additions and 3 deletions.
  1. +6 −3 BuildTools/update-assemblyinfo.ps1
  2. +1 −0 appveyor.yml
  3. +29 −0 preparerelease.bat
@@ -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 {
$branchName = gitBranch;
$gitCommitHash = gitCommitHash;
$postfixBranchName = "";
if ($branchName -ne "master") {
if ($masterBranches -contains $branchName) {
$postfixBranchName = "";
} else {
$postfixBranchName = "-$branchName";
}
}
if ($versionName -eq "null") {
$versionName = "";
View
@@ -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
View
@@ -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

0 comments on commit 98b22f3

Please sign in to comment.