From 87069bf44cb3bbf11a266b20358f96435343c7f2 Mon Sep 17 00:00:00 2001 From: Kwoth Date: Mon, 17 Apr 2017 20:52:01 +0200 Subject: [PATCH] First try in publishing nadeko to myget --- build.ps1 | 4 ++++ pack.ps1 | 2 ++ src/NadekoBot/NadekoBot.cs | 2 +- src/NadekoBot/NadekoBot.csproj | 1 + src/NadekoBot/Properties/AssemblyInfo.cs | 2 +- 5 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 build.ps1 create mode 100644 pack.ps1 diff --git a/build.ps1 b/build.ps1 new file mode 100644 index 00000000..ba45cce3 --- /dev/null +++ b/build.ps1 @@ -0,0 +1,4 @@ +appveyor-retry dotnet restore NadekoBot.sln -v Minimal /p:BuildNumber="$Env:BUILD" /p:IsTagBuild="$Env:APPVEYOR_REPO_TAG" +if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) } +dotnet build NadekoBot.sln -c "Release" /p:BuildNumber="$Env:BUILD" /p:IsTagBuild="$Env:APPVEYOR_REPO_TAG" +if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) } \ No newline at end of file diff --git a/pack.ps1 b/pack.ps1 new file mode 100644 index 00000000..4014a7e1 --- /dev/null +++ b/pack.ps1 @@ -0,0 +1,2 @@ +dotnet pack "src\NadekoBot\NadekoBot.csproj" -c "Release" -o "../../artifacts" --no-build /p:BuildNumber="$Env:BUILD" /p:IsTagBuild="$Env:APPVEYOR_REPO_TAG" +if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) } \ No newline at end of file diff --git a/src/NadekoBot/NadekoBot.cs b/src/NadekoBot/NadekoBot.cs index 992a34c2..1abf6c29 100644 --- a/src/NadekoBot/NadekoBot.cs +++ b/src/NadekoBot/NadekoBot.cs @@ -147,7 +147,7 @@ namespace NadekoBot await CommandService.AddModuleAsync().ConfigureAwait(false); #endif Ready = true; - Console.WriteLine(await Stats.Print().ConfigureAwait(false)); + _log.Info(await Stats.Print().ConfigureAwait(false)); } private Task Client_Log(LogMessage arg) diff --git a/src/NadekoBot/NadekoBot.csproj b/src/NadekoBot/NadekoBot.csproj index 1df6e9fc..ae5867d5 100644 --- a/src/NadekoBot/NadekoBot.csproj +++ b/src/NadekoBot/NadekoBot.csproj @@ -15,6 +15,7 @@ false false false + False diff --git a/src/NadekoBot/Properties/AssemblyInfo.cs b/src/NadekoBot/Properties/AssemblyInfo.cs index ca3bd293..77b77fc6 100644 --- a/src/NadekoBot/Properties/AssemblyInfo.cs +++ b/src/NadekoBot/Properties/AssemblyInfo.cs @@ -8,7 +8,7 @@ using System.Runtime.InteropServices; [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("NadekoBot")] [assembly: AssemblyTrademark("")] -[assembly: AssemblyInformationalVersion("1.0")] +[assembly: AssemblyInformationalVersion("1.4")] // Setting ComVisible to false makes the types in this assembly not visible // to COM components. If you need to access a type in this assembly from