Various fixes

This commit is contained in:
crschnick 2023-08-16 16:49:11 +00:00
parent 11293012e1
commit a938f23a81
7 changed files with 62 additions and 10 deletions

View file

@ -59,7 +59,7 @@ automaticallyUpdateDescription=When enabled, new release information is automati
sendAnonymousErrorReports=Send anonymous error reports sendAnonymousErrorReports=Send anonymous error reports
sendUsageStatistics=Send anonymous usage statistics sendUsageStatistics=Send anonymous usage statistics
storageDirectory=Storage directory storageDirectory=Storage directory
storageDirectoryDescription=The location where XPipe should store all connection information. This setting will only be applied at the next restart. When changing this, the data in the old directory is not copied to the new one. storageDirectoryDescription=The location where XPipe should store all connection information. This setting will only be applied at the next restart. When changing this, the data in the old directory is not copied to the new one.\n\nIf you want to sync your configuration across multiple systems, you can set this directory to be located in a cloud drive.
logLevel=Log level logLevel=Log level
appBehaviour=Application behaviour appBehaviour=Application behaviour
logLevelDescription=The log level that should be used when writing log files. logLevelDescription=The log level that should be used when writing log files.

View file

@ -34,4 +34,5 @@ project.ext {
canonicalVersionString = file('version').text canonicalVersionString = file('version').text
buildId = UUID.nameUUIDFromBytes(versionString.getBytes()) buildId = UUID.nameUUIDFromBytes(versionString.getBytes())
obfuscate = true obfuscate = true
changelog = file("dist/changelogs/${version}.md").exists() ? file("dist/changelogs/${version}.md").text.trim() + '\n' : ""
} }

View file

@ -161,6 +161,8 @@ public interface ShellDialect {
CommandControl deleteFileOrDirectory(ShellControl sc, String file); CommandControl deleteFileOrDirectory(ShellControl sc, String file);
String clearDisplayCommand();
CommandControl createFileExistsCommand(ShellControl sc, String file); CommandControl createFileExistsCommand(ShellControl sc, String file);
CommandControl symbolicLink(ShellControl sc, String linkFile, String targetFile); CommandControl symbolicLink(ShellControl sc, String linkFile, String targetFile);

View file

@ -92,7 +92,9 @@ public class ConnectionFileSystem implements FileSystem {
@Override @Override
public void delete(String file) throws Exception { public void delete(String file) throws Exception {
try (var pc = shellControl.getShellDialect().deleteFileOrDirectory(shellControl, file) try (var pc = shellControl
.getShellDialect()
.deleteFileOrDirectory(shellControl, file)
.start()) { .start()) {
pc.discardOrThrow(); pc.discardOrThrow();
} }
@ -139,14 +141,21 @@ public class ConnectionFileSystem implements FileSystem {
@Override @Override
public void symbolicLink(String linkFile, String targetFile) throws Exception { public void symbolicLink(String linkFile, String targetFile) throws Exception {
try (var pc = shellControl.getShellDialect().symbolicLink(shellControl,linkFile, targetFile) try (var pc = shellControl
.getShellDialect()
.symbolicLink(shellControl, linkFile, targetFile)
.start()) { .start()) {
pc.discardOrThrow(); pc.discardOrThrow();
} }
} }
@Override @Override
public void close() throws IOException { public void close() {
shellControl.close(); // In case the shell control is already in an invalid state, this operation might fail
// Since we are only closing, just swallow all exceptions
try {
shellControl.close();
} catch (IOException ignored) {
}
} }
} }

25
dist/changelogs/1.5.2.md vendored Normal file
View file

@ -0,0 +1,25 @@
## Changes in 1.5.2
- Make automatic connection search dialog accessible from a separate button
- Add filter bar to connection chooser
- Add Kubernetes describe action for pods
- Fix Kubernetes functionality breaking when a pot contain multiple containers
- Use Kubernetes context names instead of cluster names to access resources
- Fix automatic ssh host key acceptance not working
- Fix paste not working in file browser
- Rework dynamic script generation to apply some properties after init scripts
- Many other small miscellaneous fixes and improvements
## Changes in 1.5.1
- Add ARM build for Linux to available releases
- Add ability to sort connections by name and last access date
- Add ability to automatically accept new ssh host key when required
- Improve performance when adding are removing connections
- Look in PATH for terminals on windows
- Fix CLI error messages not being able to be parsed
- Many other small miscellaneous fixes and improvements
## Changes in 1.5.0
https://github.com/xpipe-io/xpipe/releases/tag/1.5.0 is the largest update yet and comes with loads of improvements and changes, some of which might require you to update some connection configurations. There might be some rough edges, but these will be quickly ironed out. So please report any issues you can find!

View file

@ -175,7 +175,15 @@ $env:Path=(
[System.Environment]::GetEnvironmentVariable("Path", "User") [System.Environment]::GetEnvironmentVariable("Path", "User")
) -match '.' -join ';' ) -match '.' -join ';'
Write-Host
Write-Host 'XPipe has been successfully installed. You should be able to find it in your applications. The ' -NoNewline
Write-Host -ForegroundColor Green 'xpipe' -NoNewline
Write-Host ' cli executable was also added to your PATH. You can use ' -NoNewline
Write-Host -ForegroundColor Green 'xpipe --help' -NoNewline
Write-Host ' for help.'
Write-Host
# Use absolute path as we can't assume that the user has selected to put XPipe into the Path # Use absolute path as we can't assume that the user has selected to put XPipe into the Path
& "$env:LOCALAPPDATA\XPipe\app\xpiped.exe" & "$env:LOCALAPPDATA\XPipe\cli\bin\xpipe.exe" open
#endregion Install XPipe #endregion Install XPipe

View file

@ -171,9 +171,7 @@ check_architecture() {
return 0 return 0
;; ;;
arm64) arm64)
if [ "$(uname -s)" = "Darwin" ]; then return 0
return 0
fi
;; ;;
esac esac
@ -237,4 +235,13 @@ fi
uninstall uninstall
install "$download_archive" install "$download_archive"
launch
printf "XPipe was successfully installed. You should be able to find XPipe in your desktop environment now. The "
bold "xpipe"
printf " cli executable was also added to your path. You can ether use "
bold "man xpipe"
printf " or "
bold "xpipe --help"
printf " for help.\n"
launch