diff --git a/app/TUI/JsonSettings.cs b/app/TUI/JsonSettings.cs index fb10c1d..8d8dd62 100644 --- a/app/TUI/JsonSettings.cs +++ b/app/TUI/JsonSettings.cs @@ -54,7 +54,7 @@ public string Theme /// /// The subdirectory used when storing to user-space for Unix-like systems. /// - private static string nixLocalSettingsDir = Path.Combine("~/.config", userSubDir); + private static string nixLocalSettingsDir = Path.Combine(Environment.GetEnvironmentVariable("HOME") ?? Environment.GetFolderPath(Environment.SpecialFolder.Personal), ".config", userSubDir); /// /// The loaded theme. diff --git a/publish/publish.ps1 b/publish/publish.ps1 index 520add2..013af48 100644 --- a/publish/publish.ps1 +++ b/publish/publish.ps1 @@ -50,16 +50,18 @@ if (-not (Test-Path -Path $artifactsPath)) { New-Item -ItemType Directory -Path $artifactsPath | Out-Null } +Get-ChildItem -Path $artifactsPath -Recurse | Remove-Item -Force + $Runtimes | ForEach-Object { Write-Output "Publishing: $_" Publish-Artifact -Runtime $_ if ($_ -eq 'win-x64') { $archiveType = "zip" + Compress-Archive -Path "$buildPath/$_/*" -DestinationPath "$artifactsPath/vicon-$Version-$_.$archiveType" } else { $archiveType = "tgz" + tar -czf "$artifactsPath/vicon-$Version-$_.$archiveType" -C "$buildPath/$_" . } - - Compress-Archive -Path "$buildPath/$_/*" -DestinationPath "$artifactsPath/vicon-$Version-$_.$archiveType" } $Runtimes | ForEach-Object { @@ -67,11 +69,11 @@ $Runtimes | ForEach-Object { Publish-Artifact -Runtime $_ -SelfContained if ($_ -eq 'win-x64') { $archiveType = "zip" + Compress-Archive -Path "$standAloneBuildPath/$_/*" -DestinationPath "$artifactsPath/vicon-$Version-$_-standalone.$archiveType" } else { $archiveType = "tgz" + tar -czf "$artifactsPath/vicon-$Version-$_-standalone.$archiveType" -C "$standAloneBuildPath/$_" . } - - Compress-Archive -Path "$standAloneBuildPath/$_/*" -DestinationPath "$artifactsPath/vicon-$Version-$_-standalone.$archiveType" } Pop-Location