From 0e72febf28d04aa6f7c986b07578ed5121e29009 Mon Sep 17 00:00:00 2001 From: Kamil118 Date: Mon, 17 Aug 2026 14:06:36 +0200 Subject: [PATCH] Update dependancies and tried trimming executable size --- .github/workflows/release.yml | 6 +++--- GoToSleep/GoToSleep.csproj | 5 ++++- GoToSleep/SystemPowerManager.cs | 3 --- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2d87f9e..265b177 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -23,13 +23,13 @@ jobs: # build for all patforms - 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 - 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 - 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 run: | diff --git a/GoToSleep/GoToSleep.csproj b/GoToSleep/GoToSleep.csproj index e94f50a..f3cd6a5 100644 --- a/GoToSleep/GoToSleep.csproj +++ b/GoToSleep/GoToSleep.csproj @@ -9,9 +9,12 @@ - + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + \ No newline at end of file diff --git a/GoToSleep/SystemPowerManager.cs b/GoToSleep/SystemPowerManager.cs index 2627b8a..996f2cb 100644 --- a/GoToSleep/SystemPowerManager.cs +++ b/GoToSleep/SystemPowerManager.cs @@ -2,7 +2,6 @@ using System.Collections.Generic; using System.Text; using System.Windows.Forms.Design; -using Chronic; using System.Diagnostics; using System.Windows.Forms; using System.Text.RegularExpressions; @@ -41,8 +40,6 @@ namespace GoToSleep } Form parentForm; - Chronic.Parser parser = new Chronic.Parser(); - string prepareTimeString(string s) { // make sure there are spaces between numbers and units, for the parser