Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8c63b93d09 | ||
|
|
6ba4854bd8 | ||
|
|
2be5b86b17 | ||
|
|
a75a2d8926 |
@@ -4,7 +4,6 @@ on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
- develop
|
||||
|
||||
workflow_dispatch:
|
||||
|
||||
@@ -32,6 +31,6 @@ jobs:
|
||||
run: |
|
||||
export PATH="$PATH:/root/.dotnet/tools"
|
||||
dotnet tool install -g vpk
|
||||
#vpk [win] download gitea --channel win-x86 --repoUrl https://gitea.kaczorzoo.net/ckaczor/WorkIndicator
|
||||
vpk [win] pack --channel win-x64 -u WorkIndicator -v ${{ steps.version.outputs.version }} -p publish --packTitle "Work Indicator" --shortcuts StartMenuRoot --framework net10.0-x64-desktop
|
||||
vpk [win] upload gitea --channel win-x64 --repoUrl https://gitea.kaczorzoo.net/ckaczor/WorkIndicator --publish --releaseName "${{ steps.version.outputs.version }}" --token ${{ secrets.VPK_TOKEN }}
|
||||
vpk [win] download gitea --channel win-x86 --repoUrl https://gitea.kaczorzoo.net/ckaczor/WorkIndicator
|
||||
vpk [win] pack --channel win-x86 -u WorkIndicator -v ${{ steps.version.outputs.version }} -p publish --packTitle "Work Indicator" --shortcuts StartMenuRoot --framework net10.0-x86-desktop
|
||||
vpk [win] upload gitea --channel win-x86 --repoUrl https://gitea.kaczorzoo.net/ckaczor/WorkIndicator --publish --releaseName "${{ steps.version.outputs.version }}" --token ${{ secrets.VPK_TOKEN }}
|
||||
+1
-2
@@ -3,7 +3,6 @@ using NAudio.CoreAudioApi.Interfaces;
|
||||
using Serilog;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using System.Linq;
|
||||
using System.Windows.Threading;
|
||||
|
||||
@@ -63,7 +62,7 @@ internal class AudioDevice : IAudioSessionEventsHandler
|
||||
|
||||
void IAudioSessionEventsHandler.OnVolumeChanged(float volume, bool isMuted)
|
||||
{
|
||||
_dispatcher.Invoke(() => { Debug.WriteLine($"{_device.DeviceFriendlyName}: {volume} {isMuted} {_device.AudioEndpointVolume.Mute}"); });
|
||||
_dispatcher.Invoke(() => { _logger.Information("{name}: {volume} {isMuted} {mute}", _device.DeviceFriendlyName, volume, isMuted, _device.AudioEndpointVolume.Mute); });
|
||||
}
|
||||
|
||||
void IAudioSessionEventsHandler.OnDisplayNameChanged(string displayName)
|
||||
|
||||
@@ -1,10 +1,13 @@
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using Serilog;
|
||||
|
||||
namespace WorkIndicator.Delcom
|
||||
{
|
||||
public class StoplightIndicator : IDisposable
|
||||
{
|
||||
private readonly ILogger _logger;
|
||||
|
||||
public enum Light
|
||||
{
|
||||
Green,
|
||||
@@ -25,6 +28,8 @@ namespace WorkIndicator.Delcom
|
||||
|
||||
public StoplightIndicator()
|
||||
{
|
||||
_logger = Log.ForContext<StoplightIndicator>();
|
||||
|
||||
Device = new Delcom();
|
||||
Device.Open();
|
||||
|
||||
@@ -74,7 +79,7 @@ namespace WorkIndicator.Delcom
|
||||
_yellow = yellow;
|
||||
_green = green;
|
||||
|
||||
Debug.WriteLine($"Red: {_red}, Yellow: {_yellow}, Green: {_green}");
|
||||
_logger.Information("Red: {red}, Yellow: {yellow}, Green: {green}", _red, _yellow, _green);
|
||||
|
||||
port1 = port1.SetBitValue((int) Light.Green, green == LightState.Off);
|
||||
port1 = port1.SetBitValue((int) Light.Yellow, yellow == LightState.Off);
|
||||
|
||||
Generated
+1
-1
@@ -188,7 +188,7 @@ namespace WorkIndicator.Properties {
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Settings.
|
||||
/// Looks up a localized string similar to Settings....
|
||||
/// </summary>
|
||||
public static string NotificationIconContextMenuSettings {
|
||||
get {
|
||||
|
||||
@@ -201,7 +201,7 @@ Would you like to download and install it now?</value>
|
||||
<value>Talking</value>
|
||||
</data>
|
||||
<data name="NotificationIconContextMenuSettings" xml:space="preserve">
|
||||
<value>Settings</value>
|
||||
<value>Settings...</value>
|
||||
</data>
|
||||
<data name="StatusFree" xml:space="preserve">
|
||||
<value>Free</value>
|
||||
|
||||
+1
-1
@@ -11,7 +11,7 @@ internal static class UpdateCheck
|
||||
{
|
||||
private static UpdateManager _updateManager;
|
||||
|
||||
public static UpdateManager UpdateManager => _updateManager ??= new UpdateManager(new GithubSource("https://github.com/ckaczor/WorkIndicator", null, false));
|
||||
public static UpdateManager UpdateManager => _updateManager ??= new UpdateManager(new GiteaSource("https://gitea.kaczorzoo.net/ckaczor/WorkIndicator", null, false));
|
||||
|
||||
public static string LocalVersion => (UpdateManager.CurrentVersion ?? new SemanticVersion(0, 0, 0)).ToString();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user