From 1d8faa822e6b6d5e8147f8d780cf0591213aa906 Mon Sep 17 00:00:00 2001 From: Genteure Date: Wed, 5 Feb 2020 17:23:39 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20BuildInfo.cs=20=E5=AF=BC?= =?UTF-8?q?=E8=87=B4=E7=9A=84=E7=BC=96=E8=AF=91=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 2 +- BililiveRecorder.Core/BililiveRecorder.Core.csproj | 4 ++-- .../BililiveRecorder.FlvProcessor.csproj | 2 +- BililiveRecorder.WPF/BililiveRecorder.WPF.csproj | 2 +- CI/patch_buildinfo.ps1 | 2 +- TempBuildInfo/.gitkeep | 0 6 files changed, 6 insertions(+), 6 deletions(-) create mode 100644 TempBuildInfo/.gitkeep diff --git a/.gitignore b/.gitignore index 1003e6c..c059771 100644 --- a/.gitignore +++ b/.gitignore @@ -261,5 +261,5 @@ paket-files/ __pycache__/ *.pyc -**/BuildInfo.cs +TempBuildInfo/*.cs BililiveRecorder.WPF/Nlog.config diff --git a/BililiveRecorder.Core/BililiveRecorder.Core.csproj b/BililiveRecorder.Core/BililiveRecorder.Core.csproj index 01fb70d..8600799 100644 --- a/BililiveRecorder.Core/BililiveRecorder.Core.csproj +++ b/BililiveRecorder.Core/BililiveRecorder.Core.csproj @@ -1,4 +1,4 @@ - + netstandard2.0 0.0.0.0 @@ -17,7 +17,7 @@ false - + diff --git a/BililiveRecorder.FlvProcessor/BililiveRecorder.FlvProcessor.csproj b/BililiveRecorder.FlvProcessor/BililiveRecorder.FlvProcessor.csproj index 48b2a6d..9d94af4 100644 --- a/BililiveRecorder.FlvProcessor/BililiveRecorder.FlvProcessor.csproj +++ b/BililiveRecorder.FlvProcessor/BililiveRecorder.FlvProcessor.csproj @@ -17,7 +17,7 @@ false - + diff --git a/BililiveRecorder.WPF/BililiveRecorder.WPF.csproj b/BililiveRecorder.WPF/BililiveRecorder.WPF.csproj index d69ca3c..bee2cca 100644 --- a/BililiveRecorder.WPF/BililiveRecorder.WPF.csproj +++ b/BililiveRecorder.WPF/BililiveRecorder.WPF.csproj @@ -131,7 +131,7 @@ MSBuild:Compile Designer - + ClickSelectTextBox.xaml diff --git a/CI/patch_buildinfo.ps1 b/CI/patch_buildinfo.ps1 index 6475d5b..e404192 100644 --- a/CI/patch_buildinfo.ps1 +++ b/CI/patch_buildinfo.ps1 @@ -4,6 +4,6 @@ $isAppveyor = if ($env:APPVEYOR -eq $null) { "false" } else { $env:APPVEYOR } $buildversion = if ($env:APPVEYOR_BUILD_VERSION -eq $null) { "本地编译" } else { $env:APPVEYOR_BUILD_VERSION } $githash = git rev-parse --verify HEAD -(Get-Content .\BuildInfo.txt).Replace('[PROJECT_NAME]', $args).Replace('[APPVEYOR]', $isAppveyor.ToLower()).Replace('[VERSION]', $buildversion).Replace('[GIT_HASH]', $githash).Replace('[GIT_HASH_S]', $githash.Substring(0, 8)) | Set-Content ".\BililiveRecorder.$args\BuildInfo.cs" +(Get-Content .\BuildInfo.txt).Replace('[PROJECT_NAME]', $args).Replace('[APPVEYOR]', $isAppveyor.ToLower()).Replace('[VERSION]', $buildversion).Replace('[GIT_HASH]', $githash).Replace('[GIT_HASH_S]', $githash.Substring(0, 8)) | Set-Content ".\TempBuildInfo\BuildInfo.$args.cs" Write-Output "BuildInfo for $args patched" diff --git a/TempBuildInfo/.gitkeep b/TempBuildInfo/.gitkeep new file mode 100644 index 0000000..e69de29