Skip to content

Commit

Permalink
update build scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel committed Oct 19, 2023
1 parent d7de60d commit aad48ac
Show file tree
Hide file tree
Showing 8 changed files with 27 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ x64/
x86/
[Aa][Rr][Mm]/
[Aa][Rr][Mm]64/
bld/
build/
[Bb]in/
[Oo]bj/
[Ll]og/
Expand Down
4 changes: 2 additions & 2 deletions start-arm-build.sh → arm64-build.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#! /bin/sh
dotnet publish ./src/Ve.Direct.InfluxDB.Collector/Ve.Direct.InfluxDB.Collector.csproj \
--runtime linux-arm \
--runtime linux-arm64 \
--self-contained false \
-c Release \
-v minimal \
-f net7.0 \
-o ./arm-build \
-o ./build \
-p:PublishReadyToRun=false \
-p:PublishSingleFile=true \
-p:CopyOutputSymbolsToPublishDirectory=false \
Expand Down
6 changes: 3 additions & 3 deletions src/Tests/Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.6.0" />
<PackageReference Include="xunit" Version="2.4.2" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.5">
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.7.2" />
<PackageReference Include="xunit" Version="2.5.3" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.3">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
Expand Down
1 change: 1 addition & 0 deletions src/Ve.Direct.InfluxDB.Collector/CollectorConfiguration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ public CollectorConfiguration(CommandLineApplication app)

this.interval.DefaultValue = 30;

// NOSONAR
this.influxDbUrl.DefaultValue = "http://192.168.0.220:8086";
this.influxDbBucket.DefaultValue = "solar";
this.influxDbOrg.DefaultValue = "home";
Expand Down
2 changes: 1 addition & 1 deletion src/Ve.Direct.InfluxDB.Collector/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public static int Main(string[] args)
app.HelpOption();
app.OnExecuteAsync(async cancellationToken =>
{
ConsoleLogger.Init(config.DebugOutput, "2.3.5");
ConsoleLogger.Init(config.DebugOutput, "2.3.6");
ConsoleLogger.Debug($"Current output setting: {config.Output}");

try
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="InfluxDB.Client" Version="4.12.0" />
<PackageReference Include="McMaster.Extensions.CommandLineUtils" Version="4.0.2" />
<PackageReference Include="InfluxDB.Client" Version="4.13.0" />
<PackageReference Include="McMaster.Extensions.CommandLineUtils" Version="4.1.0" />
<PackageReference Include="System.IO.Ports" Version="7.0.0" />
</ItemGroup>

Expand Down
16 changes: 16 additions & 0 deletions win-build.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
$Version = Get-Date -Format "yyyy-MM-dd" # 2020-11-1
$VersionDot = $Version -replace '-','.'

# Dotnet restore and build
dotnet publish "$PSScriptRoot\src\Ve.Direct.InfluxDB.Collector\Ve.Direct.InfluxDB.Collector.csproj" `
--runtime win-x64 `
--self-contained false `
-c Release `
-v minimal `
-o ./build `
-f net7.0 `
-p:PublishReadyToRun=false `
-p:PublishSingleFile=true `
-p:CopyOutputSymbolsToPublishDirectory=false `
-p:Version=$VersionDot `
--nologo
2 changes: 1 addition & 1 deletion start-x64-build.sh → x64-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ dotnet publish ./src/Ve.Direct.InfluxDB.Collector/Ve.Direct.InfluxDB.Collector.c
-c Release \
-v minimal \
-f net7.0 \
-o ./x64-build \
-o ./build \
-p:PublishReadyToRun=false \
-p:PublishSingleFile=true \
-p:CopyOutputSymbolsToPublishDirectory=false \
Expand Down

0 comments on commit aad48ac

Please sign in to comment.