Update dependancies and tried trimming executable size

This commit is contained in:
Kamil118 committed 2026-08-17 14:06:36 +02:00
1 parent df6c73c9eb
commit 0e72febf28
3 files changed
+7 -7

No files matched your search

+3 -3
View File
@@ -23,13 +23,13 @@ jobs:
# build for all patforms # build for all patforms
- name: Publish Artifacts x64 - name: Publish Artifacts x64
run: dotnet publish GoToSleep/GoToSleep.csproj -c Release -r win-x64 --self-contained true -p:PublishSingleFile=true -p:IncludeNativeLibrariesForSelfExtract=true -o ./publish/x64 run: dotnet publish GoToSleep/GoToSleep.csproj -c Release -r win-x64 --self-contained true -p:PublishSingleFile=true -p:IncludeNativeLibrariesForSelfExtract=true -p:PublishTrimmed=true -p:EnableCompressionInSingleFile=true -o ./publish/x64
- name: Publish Artifacts x86 - name: Publish Artifacts x86
run: dotnet publish GoToSleep/GoToSleep.csproj -c Release -r win-x86 --self-contained true -p:PublishSingleFile=true -p:IncludeNativeLibrariesForSelfExtract=true -o ./publish/x86 run: dotnet publish GoToSleep/GoToSleep.csproj -c Release -r win-x86 --self-contained true -p:PublishSingleFile=true -p:IncludeNativeLibrariesForSelfExtract=true -p:PublishTrimmed=true -p:EnableCompressionInSingleFile=true -o ./publish/x86
- name: Publish Artifacts arm - name: Publish Artifacts arm
run: dotnet publish GoToSleep/GoToSleep.csproj -c Release -r win-arm64 --self-contained true -p:PublishSingleFile=true -p:IncludeNativeLibrariesForSelfExtract=true -o ./publish/arm64 run: dotnet publish GoToSleep/GoToSleep.csproj -c Release -r win-arm64 --self-contained true -p:PublishSingleFile=true -p:IncludeNativeLibrariesForSelfExtract=true -p:PublishTrimmed=true -p:EnableCompressionInSingleFile=true -o ./publish/arm64
- name: Rename Executables by Architecture - name: Rename Executables by Architecture
run: | run: |
+4 -1
View File
@@ -9,9 +9,12 @@
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="Chronic.Signed" Version="0.3.2" />
<PackageReference Include="Microsoft.Recognizers.Text" Version="1.8.13" /> <PackageReference Include="Microsoft.Recognizers.Text" Version="1.8.13" />
<PackageReference Include="Microsoft.Recognizers.Text.DateTime" Version="1.8.13" /> <PackageReference Include="Microsoft.Recognizers.Text.DateTime" Version="1.8.13" />
<PackageReference Include="NuGet.CommandLine" Version="7.9.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup> </ItemGroup>
</Project> </Project>
-3
View File
@@ -2,7 +2,6 @@
using System.Collections.Generic; using System.Collections.Generic;
using System.Text; using System.Text;
using System.Windows.Forms.Design; using System.Windows.Forms.Design;
using Chronic;
using System.Diagnostics; using System.Diagnostics;
using System.Windows.Forms; using System.Windows.Forms;
using System.Text.RegularExpressions; using System.Text.RegularExpressions;
@@ -41,8 +40,6 @@ namespace GoToSleep
} }
Form parentForm; Form parentForm;
Chronic.Parser parser = new Chronic.Parser();
string prepareTimeString(string s) string prepareTimeString(string s)
{ {
// make sure there are spaces between numbers and units, for the parser // make sure there are spaces between numbers and units, for the parser