Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
79 commits
Select commit Hold shift + click to select a range
13c70ba
fix naming error
frequency403 Mar 24, 2026
01162ec
fix icon name
frequency403 Mar 24, 2026
fe3ef20
Fix startup error when files are not readable. (#18)
frequency403 Mar 24, 2026
b3e8a9c
remove warnings as error in csproj
frequency403 Mar 24, 2026
bbbe8ea
remove warnings as error in csproj
frequency403 Mar 24, 2026
f536d95
Merge branch 'master' into development
frequency403 Mar 24, 2026
e4807aa
Merge branch 'development' into release/v3.0.1
frequency403 Mar 24, 2026
d99e92f
Fix and Optimize Configuration, SSH Key Handling, and UI (#21)
frequency403 Jun 9, 2026
8ee5e98
Introduce new workflows: auto-tag refinement, unit tests, build-and-p…
frequency403 Jun 9, 2026
5fbbd39
Bump version to 3.1.0, improve PKGBUILD formatting, and fix SSH key f…
frequency403 Jun 9, 2026
cdff101
Add `build-and-package.yml` and `test.yml` workflows; refine asset pr…
frequency403 Jun 9, 2026
1431a2d
Refactor workflows: streamline asset preparation, reorganize director…
frequency403 Jun 9, 2026
638c3b8
Update `staging.yml`: adjust dependencies for `deploy-aur-nightly` an…
frequency403 Jun 9, 2026
d7f6b4b
Refactor GitHub Actions workflows: improve artifact handling and enha…
frequency403 Jun 9, 2026
ec44535
Update `staging.yml`: add `build` dependency for `deploy-aur-nightly`…
frequency403 Jun 9, 2026
08afa89
Revamp README: overhaul content structure, include new features, upda…
frequency403 Jun 9, 2026
f9f6e48
Bump version to 3.1.1; update PKGBUILD, normalize version logic in wo…
frequency403 Jun 9, 2026
107d24e
Merge branch 'master' into release/v3.1.1
frequency403 Jun 9, 2026
4a91f0a
Bump version to 3.1.2; update PKGBUILD, enhance version normalization…
frequency403 Jun 10, 2026
2ba45d1
Merge branch 'master' into release/v3.1.2
frequency403 Jun 10, 2026
75c82ec
Enhance Komac installation in workflow: dynamically fetch latest rele…
frequency403 Jun 10, 2026
2ae51bf
Refactor GitHub Actions: modularize workflows, add custom composite a…
frequency403 Jun 10, 2026
36859b5
Merge remote-tracking branch 'origin/master' into release/v3.1.3
frequency403 Jun 10, 2026
e4f25b4
Add `actions/checkout@v4` to workflows for consistent repository access.
frequency403 Jun 10, 2026
1180366
Refactor `install-komac` action: enhance reliability with `gh` CLI in…
frequency403 Jun 10, 2026
07e469a
Remove `install-komac` action, update GitHub Actions to latest versio…
frequency403 Jun 11, 2026
56c683e
Remove unused `needs: detect-tfm` property from `.github/actions/dotn…
frequency403 Jun 11, 2026
237e273
Remove nightly GitHub Release action from staging workflow
frequency403 Jun 11, 2026
c38234b
resolve warning IL3000
frequency403 Jun 11, 2026
f0c32b2
Remove nightly support and update workflows to reflect changes
frequency403 Jun 11, 2026
0ac2a6f
Update PKGBUILD to include date and commit hash in versioning
frequency403 Jun 11, 2026
d131b9b
Sync auto-tag workflow with development process:
frequency403 Jun 11, 2026
37cc849
Simplify test workflow by removing conditional triggers based on even…
frequency403 Jun 11, 2026
b13d554
Merge branch 'master' into development
frequency403 Jun 11, 2026
8afddd6
Update auto-tag workflow: Remove "Sync Development" from job name
frequency403 Jun 11, 2026
7be1315
Release v3.1.6 -Update workflows and versioning logic for improved CI…
frequency403 Jun 11, 2026
e3a39c0
Update workflows and dependencies:
frequency403 Jun 11, 2026
8e3e88c
Enhance `determine-version` action and workflows:
frequency403 Jun 11, 2026
7c01d3c
Add sparse checkout for `determine-version` action in staging workflow
frequency403 Jun 11, 2026
4518330
Disable sparse checkout cone mode in `determine-version` action
frequency403 Jun 11, 2026
4124234
Remove redundant `ref` input from `actions/checkout` in staging workflow
frequency403 Jun 11, 2026
f7c5394
Remove `fetch-depth` input from checkout step in staging workflow
frequency403 Jun 11, 2026
ed7aaaa
Simplify staging workflow by reducing inputs and removing sparse chec…
frequency403 Jun 11, 2026
aa6cb1a
..
frequency403 Jun 11, 2026
cbab03c
verion bump
frequency403 Jun 11, 2026
f715bf4
Update staging workflow to include post-process step for branch checkout
frequency403 Jun 11, 2026
11cc4fa
Update staging workflow: fix branch checkout logic in post-process step
frequency403 Jun 11, 2026
c871fed
Simplify staging workflow by removing post-process step for branch ch…
frequency403 Jun 11, 2026
663e6da
Update dependencies in staging workflow: downgrade checkout action an…
frequency403 Jun 11, 2026
9d11fc0
fix: correct AUR action parameters (commit_username → author_name, co…
frequency403 Jun 11, 2026
bc4507d
fix: add force flag and increase fetch-depth for AUR git deployment
frequency403 Jun 11, 2026
71cf2d9
fix: add force flag and revert to correct AUR action parameters
frequency403 Jun 11, 2026
a70d0b6
fix: correct AUR action to use commit_username and commit_email param…
frequency403 Jun 11, 2026
d1562a2
fix: explicitly specify master branch for AUR deployment to avoid ref…
frequency403 Jun 11, 2026
9460756
refactor: replace KSXGitHub action with custom git clone and push for…
frequency403 Jun 11, 2026
43664f5
fix: setup SSH key before cloning AUR repository
frequency403 Jun 11, 2026
ca475c2
fix: simplify AUR deployment with correct paths and environment varia…
frequency403 Jun 11, 2026
7d04c01
fix: explicitly create and switch to the master branch during AUR dep…
frequency403 Jun 11, 2026
66d0b8a
fix: ensure branch tracks origin/master during AUR deployment
frequency403 Jun 11, 2026
fc4282b
fix: include .SRCINFO generation during AUR deployment
frequency403 Jun 11, 2026
09635e9
fix: run makepkg as non-root user during AUR deployment
frequency403 Jun 11, 2026
33f87af
fix: update .SRCINFO generation command in AUR deployment
frequency403 Jun 11, 2026
a92207a
refactor: add reusable deploy-aur action and integrate with workflows
frequency403 Jun 11, 2026
06d5265
chore: bump BaseVersion to 3.1.7 in Directory.Build.props
frequency403 Jun 11, 2026
6840076
Merge branch 'master' into development
frequency403 Jun 11, 2026
8cfa26a
Migrate workflows and clean up composite GitHub Actions:
frequency403 Jun 12, 2026
782152e
Update PKGBUILD for version 3.2.0 with new dependencies, build optimi…
frequency403 Jun 12, 2026
23893ff
Add NSIS installer for Windows, update .desktop metadata, and restruc…
frequency403 Jun 15, 2026
bab7728
- Refactor logging: replace `FileName` with `ClassName` for improved …
frequency403 Jun 16, 2026
b0c7364
Bump BaseVersion to 3.2.1 in Directory.Build.props
frequency403 Jun 16, 2026
9671027
Add version comparison workflow to enforce release > master version i…
frequency403 Jun 16, 2026
ea69eb9
Update build-and-package workflow: add runtime target to `dotnet rest…
frequency403 Jun 17, 2026
dcb8413
Bump BaseVersion to 3.2.2 in Directory.Build.props
frequency403 Jun 17, 2026
58b13df
Merge branch 'refs/heads/master' into development
frequency403 Jun 18, 2026
a6c75cc
Update output type in project file from `Exe` to `WinExe` to improve …
frequency403 Jun 18, 2026
e995f37
Update workflows: Add repository_dispatch trigger for deployment and …
frequency403 Jun 18, 2026
d2ba5c6
#34: fix clipboard error
frequency403 Jul 5, 2026
8e02a14
#34: global.json changes for pipline happiness
frequency403 Jul 5, 2026
5a22a5e
version bump
frequency403 Jul 5, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -163,4 +163,12 @@ jobs:
with:
tag_name: ${{ needs.prepare.outputs.tag }}
files: release-assets/*
generate_release_notes: true
generate_release_notes: true
token: ${{ secrets.PAT_TOKEN }}

- name: Trigger deployment
uses: peter-evans/repository-dispatch@v4
with:
event-type: deploy
token: ${{ secrets.PAT_TOKEN }}
client_payload: '{"tag": "${{ needs.prepare.outputs.tag }}"}'
6 changes: 3 additions & 3 deletions .github/workflows/deploy-release.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Deploy release to consumers

on:
release:
types: [published]
repository_dispatch:
types: [deploy]
workflow_dispatch:
inputs:
tag:
Expand All @@ -27,7 +27,7 @@ jobs:
run: |
set -euo pipefail

TAG="${{ github.event.release.tag_name || inputs.tag }}"
TAG="${{ github.event.client_payload.tag || inputs.tag }}"

if [[ -z "$TAG" ]]; then
echo "::error::No tag available — triggered via workflow_dispatch without tag input"
Expand Down
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<Nullable>enable</Nullable>
<LangVersion>default</LangVersion>
<PackageProjectUrl>https://github.com/frequency403/OpenSSH-GUI</PackageProjectUrl>
<BaseVersion>3.2.2</BaseVersion>
<BaseVersion>3.2.3</BaseVersion>
<AvaloniaUseCompiledBindingsByDefault>true</AvaloniaUseCompiledBindingsByDefault>
</PropertyGroup>

Expand Down
7 changes: 7 additions & 0 deletions OpenSSH_GUI.Core/MVVM/ViewModelBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,13 @@ public virtual ValueTask InitializeAsync(
public abstract partial class ViewModelBase : ReactiveObject, IDisposable, IAsyncDisposable, IActivatableViewModel,
IInitializableViewModel
{
/// <summary>
/// The TopLevel this view is hosted in. Set by the view once attached to the visual tree,
/// since clipboard access must go through the actual hosting window on Windows (OLE clipboard
/// is bound to the calling HWND, not a globally cached one).
/// </summary>
public TopLevel? OwnerTopLevel { get; set; }

protected readonly CompositeDisposable Disposables;

/// <summary>
Expand Down
4 changes: 3 additions & 1 deletion OpenSSH_GUI.Core/Resources/Wrapper/WindowBase.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using System.Reactive.Disposables;
using System.Reactive.Disposables.Fluent;
using System.Reactive.Linq;
using Avalonia;
using Avalonia.Controls;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
Expand Down Expand Up @@ -30,7 +31,7 @@ public abstract class WindowBase<TViewModel> : ReactiveWindow<TViewModel>, IDisp
public required ILogger<WindowBase<TViewModel>> Logger { get; set; }
public required IServiceProvider Services { get; set; }
public required AppIconStore AppIconStore { get; set; }

public void Dispose() { Disposables.Dispose(); }

protected void WindowInitialize(WindowStartupLocation startupLocation = WindowStartupLocation.CenterScreen)
Expand All @@ -45,6 +46,7 @@ protected void WindowInitialize(WindowStartupLocation startupLocation = WindowSt
try
{
ViewModel = Services.GetRequiredKeyedService<TViewModel>(typeof(TViewModel).Name);
ViewModel.OwnerTopLevel = GetTopLevel(this);
}
catch (Exception e)
{
Expand Down
5 changes: 1 addition & 4 deletions OpenSSH_GUI/Extensions/DependencyInjectionExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,7 @@ internal IHostBuilder RegisterOpenSshGuiServices()
services.AddSingleton<SshKeyManager>();

services.AddSingleton<Window>(sp => sp.GetRequiredKeyedService<MainWindow>(nameof(MainWindow)));
services.AddSingleton<IDialogHost>(sp => sp.GetRequiredKeyedService<MainWindow>(nameof(MainWindow)));
services.AddSingleton<IClipboard>(sp => sp.GetRequiredKeyedService<MainWindow>(nameof(MainWindow)).Clipboard!);
services.AddSingleton<IStorageProvider>(sp => sp.GetRequiredKeyedService<MainWindow>(nameof(MainWindow)).StorageProvider);
services.AddSingleton<ILauncher>(sp => sp.GetRequiredKeyedService<MainWindow>(nameof(MainWindow)).Launcher);
services.AddTransient<IDialogHost>(sp => sp.GetRequiredKeyedService<MainWindow>(nameof(MainWindow)));

services.RegisterViewWithViewModel<MainWindow, MainWindowViewModel>(ServiceLifetime.Singleton);
services.RegisterViewWithViewModel<ExportWindow, ExportWindowViewModel>();
Expand Down
2 changes: 1 addition & 1 deletion OpenSSH_GUI/OpenSSH_GUI.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<!-- Target framework and other specs in Directory.Build.props -->
<OutputType>Exe</OutputType>
<OutputType>WinExe</OutputType>
<BuiltInComInteropSupport>true</BuiltInComInteropSupport>
<ApplicationManifest>app.manifest</ApplicationManifest>
<AvaloniaUseCompiledBindingsByDefault>true</AvaloniaUseCompiledBindingsByDefault>
Expand Down
19 changes: 7 additions & 12 deletions OpenSSH_GUI/ViewModels/ApplicationSettingsViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,10 @@ namespace OpenSSH_GUI.ViewModels;
public partial class ApplicationSettingsViewModel : ViewModelBase
{
private readonly Application _application;
private readonly ILauncher _launcher;
private readonly LoggingLevelSwitch _levelSwitch;
private readonly ILogger<ApplicationSettingsViewModel> _logger;
private readonly IMessageBoxProvider _messageBoxProvider;
private readonly IMutableConfiguration<ApplicationConfiguration> _mutableConfiguration;
private readonly IStorageProvider _storageProvider;

[ObservableAsProperty(ReadOnly = true)]
private ApplicationConfiguration _applicationConfiguration = ApplicationConfiguration.Default;
Expand All @@ -50,16 +48,12 @@ public partial class ApplicationSettingsViewModel : ViewModelBase

public ApplicationSettingsViewModel(ILogger<ApplicationSettingsViewModel> logger,
IMutableConfiguration<ApplicationConfiguration> mutableConfiguration,
ILauncher launcher,
IStorageProvider storageProvider,
IMessageBoxProvider messageBoxProvider,
Application application,
LoggingLevelSwitch levelSwitch)
{
_logger = logger;
_mutableConfiguration = mutableConfiguration;
_launcher = launcher;
_storageProvider = storageProvider;
_messageBoxProvider = messageBoxProvider;
_levelSwitch = levelSwitch;
_application = application;
Expand Down Expand Up @@ -161,7 +155,7 @@ private Task DeleteLookupPathAsync(string path, CancellationToken cancellationTo
[ReactiveCommand]
private async Task AddLookupPathAsync(CancellationToken cancellationToken = default)
{
if (await _storageProvider.OpenFolderPickerAsync(
if (OwnerTopLevel is { StorageProvider: { } storageProvider} && await storageProvider.OpenFolderPickerAsync(
new FolderPickerOpenOptions
{
AllowMultiple = false
Expand Down Expand Up @@ -282,11 +276,12 @@ private void DeleteOldLogFiles()
}

[ReactiveCommand]
private Task<bool> OpenCacheFolder(CancellationToken token = default) => _launcher.LaunchDirectoryInfoAsync(
new DirectoryInfo(
Path.Combine(
Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData),
AppDomain.CurrentDomain.FriendlyName)));
private async Task<bool> OpenCacheFolder(CancellationToken token = default) => OwnerTopLevel is { Launcher: { } launcher }
&& await launcher.LaunchDirectoryInfoAsync(
new DirectoryInfo(
Path.Combine(
Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData),
AppDomain.CurrentDomain.FriendlyName)));

private async void OnNextTheme(ThemeVariant variant)
{
Expand Down
13 changes: 5 additions & 8 deletions OpenSSH_GUI/ViewModels/ExportWindowViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
namespace OpenSSH_GUI.ViewModels;

[UsedImplicitly]
public partial class ExportWindowViewModel(ILogger<ExportWindowViewModel> logger, IClipboard clipboard)
public partial class ExportWindowViewModel(ILogger<ExportWindowViewModel> logger)
: ViewModelBase<(string WindowTitle, string Export)>
{
[Reactive] private string _export = string.Empty;
Expand All @@ -27,18 +27,15 @@ protected override async Task BooleanSubmitAsync(bool inputParameter,
{
try
{
if (inputParameter)
if (inputParameter && OwnerTopLevel is { Clipboard: { } clipboard })
{
await clipboard.SetTextAsync(Export);
await clipboard.FlushAsync();
}
}
catch (Exception e)
{
logger.LogError(e, "Error submitting export to clipboard");
}
}
}

public record ExportWindowViewModelInitializerParameters
{
public string WindowTitle { get; init; } = string.Empty;
public string Export { get; init; } = string.Empty;
}
12 changes: 7 additions & 5 deletions OpenSSH_GUI/ViewModels/FileInfoWindowViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ namespace OpenSSH_GUI.ViewModels;
[UsedImplicitly]
public partial class FileInfoWindowViewModel : ViewModelBase<SshKeyFileSource>
{
private readonly IClipboard _clipboard;
private readonly SshKeyManager _keyManager;
private readonly ILogger<FileInfoWindowViewModel> _logger;
private readonly IMessageBoxProvider _messageBoxProvider;
Expand All @@ -49,12 +48,11 @@ public partial class FileInfoWindowViewModel : ViewModelBase<SshKeyFileSource>
private string _windowTitle = "Key info";

public FileInfoWindowViewModel(ILogger<FileInfoWindowViewModel> logger, IMessageBoxProvider messageBoxProvider,
IServiceProvider serviceProvider, IClipboard clipboard, SshKeyManager keyManager)
IServiceProvider serviceProvider, SshKeyManager keyManager)
{
_logger = logger;
_messageBoxProvider = messageBoxProvider;
_serviceProvider = serviceProvider;
_clipboard = clipboard;
_keyManager = keyManager;
_keyFile = _serviceProvider.GetRequiredService<SshKeyFile>();

Expand Down Expand Up @@ -240,8 +238,12 @@ private async Task CopyPasswordIntoClipboardAsync(SshKeyFilePassword password, C
{
try
{
await _clipboard.SetTextAsync(password.GetPasswordString());
await _clipboard.FlushAsync();
if (OwnerTopLevel is { Clipboard: { } clipboard })
{
await clipboard.SetTextAsync(password.GetPasswordString());
await clipboard.FlushAsync();
}

await _messageBoxProvider.ShowMessageBoxAsync(
StringsAndTexts.FileInfoWindowPasswordCopied,
StringsAndTexts.FileInfoWindowPasswordCopied, MessageBoxButtons.Ok,
Expand Down
6 changes: 2 additions & 4 deletions OpenSSH_GUI/ViewModels/MainWindowViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ public partial class MainWindowViewModel : ViewModelBase
.FirstOrDefault(a => a.Key == "ProjectUrl")?.Value;

private readonly IDialogHost _dialogHost;
private readonly ILauncher _launcher;
private readonly ILogger<MainWindowViewModel> _logger;
private readonly IMessageBoxProvider _messageBoxProvider;
private readonly IServiceProvider _serviceProvider;
Expand All @@ -58,15 +57,13 @@ public MainWindowViewModel(
IServiceProvider serviceProvider,
IConfiguration configuration,
IMessageBoxProvider messageBoxProvider,
ILauncher launcher,
IDialogHost dialogHost)
{
SshKeyManager = sshKeyManager;
ServerConnectionService = serverConnectionService;
_logger = logger;
_serviceProvider = serviceProvider;
_messageBoxProvider = messageBoxProvider;
_launcher = launcher;
_dialogHost = dialogHost;
Version = configuration[Program.VersionEnvVar] ?? "VERSION ERROR";

Expand Down Expand Up @@ -232,7 +229,8 @@ private async Task OpenBrowserAsync(int commandTypeParameter, CancellationToken
break;
}

await _launcher.LaunchUriAsync(uriBuilder.Uri);
if(OwnerTopLevel is { Launcher: { } launcher})
await launcher.LaunchUriAsync(uriBuilder.Uri);
}

[ReactiveCommand]
Expand Down
2 changes: 1 addition & 1 deletion global.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"sdk": {
"version": "10.0.0",
"version": "10.0.100",
"rollForward": "latestMajor",
"allowPrerelease": false
}
Expand Down
Loading