2 Commits

Author SHA1 Message Date
a696152667 fix broken build 2023-08-11 14:31:07 +02:00
491127d460 fix broken path selection 2023-08-11 14:30:20 +02:00
2 changed files with 16 additions and 27 deletions

View File

@@ -133,11 +133,11 @@ public class MainWindowViewModel : ViewModelBase
{ {
// read the file information when the path changes // read the file information when the path changes
this this
.WhenAnyValue(c => c.SelectedContainer) .WhenAnyValue(c => c.SelectedContainer, c => c.SelectedPath)
.Throttle(new TimeSpan(10)) .Throttle(new TimeSpan(10))
.Select(x => x == null .Select(x => x.Item1 == null || x.Item2 == null
? new List<FileInformation>() ? new List<FileInformation>()
: GetFileInformation(kubernetesService, SelectedPath!, SelectedPod!, SelectedNamespace!, x)) : GetFileInformation(kubernetesService, x.Item2, SelectedPod!, SelectedNamespace!, x.Item1))
.ObserveOn(RxApp.MainThreadScheduler) .ObserveOn(RxApp.MainThreadScheduler)
.Subscribe(x => FileInformation = x); .Subscribe(x => FileInformation = x);
} }

View File

@@ -31,20 +31,11 @@ class Build : NukeBuild
Target Clean => _ => _ Target Clean => _ => _
.Before(Restore)
.Executes(() => .Executes(() =>
{ {
OutputDirectory.DeleteDirectory(); OutputDirectory.DeleteDirectory();
}); });
Target Restore => _ => _
.Executes(() =>
{
DotNet($"restore {ProjectFile}");
//DotNetTasks.DotNetRestore(new DotNetRestoreSettings());
});
Target PublishWin => _ => _ Target PublishWin => _ => _
.DependsOn(Clean) .DependsOn(Clean)
.Executes(() => .Executes(() =>
@@ -62,8 +53,7 @@ class Build : NukeBuild
.SetCopyright("Copyright (c) 2023") .SetCopyright("Copyright (c) 2023")
.SetVersion(Version) .SetVersion(Version)
.SetProcessArgumentConfigurator(_ => _ .SetProcessArgumentConfigurator(_ => _
.Add("-p:IncludeNativeLibrariesForSelfExtract=true")) .Add("-p:IncludeNativeLibrariesForSelfExtract=true")));
.EnableNoRestore());
WinOutputDirectory.ZipTo( WinOutputDirectory.ZipTo(
WinZip, WinZip,
@@ -89,8 +79,7 @@ class Build : NukeBuild
.SetCopyright("Copyright (c) 2023") .SetCopyright("Copyright (c) 2023")
.SetVersion(Version) .SetVersion(Version)
.SetProcessArgumentConfigurator(_ => _ .SetProcessArgumentConfigurator(_ => _
.Add("-p:IncludeNativeLibrariesForSelfExtract=true")) .Add("-p:IncludeNativeLibrariesForSelfExtract=true")));
.EnableNoRestore());
LinuxOutputDirectory.TarGZipTo( LinuxOutputDirectory.TarGZipTo(
LinuxGz, LinuxGz,