Fix debug script permissions

This commit is contained in:
crschnick 2023-08-21 02:29:17 +00:00
parent ca2468797d
commit 00d549d2ac
2 changed files with 21 additions and 38 deletions

29
dist/base.gradle vendored
View file

@ -59,13 +59,13 @@ if (org.gradle.internal.os.OperatingSystem.current().isWindows()) {
debug.text = file("$projectDir/debug/windows/xpiped_debug.bat").text.replaceAll(
'JVM-ARGS',
debugArguments)
debug.setExecutable(true, false)
debug.setExecutable(true)
def debugAttach = file("$distDir/base/app/scripts/xpiped_debug_attach.bat")
debugAttach.text = file("$projectDir/debug/windows/xpiped_debug.bat").text.replaceAll(
'JVM-ARGS',
debugAttachArguments + ' ' + debugArguments)
debugAttach.setExecutable(true, false)
debugAttach.setExecutable(true)
copy {
from "$distDir/cli"
@ -112,14 +112,19 @@ if (org.gradle.internal.os.OperatingSystem.current().isWindows()) {
def debugAttachArguments = file("$projectDir/debug/linux/debug_attach_arguments.txt").text.lines().map(s -> '"' + s + '"').collect(
Collectors.joining(' '))
file("$distDir/base/app/scripts").mkdirs()
file("$distDir/base/app/scripts/xpiped_debug.sh").text = file("$projectDir/debug/linux/xpiped_debug.sh").text.replace(
def debug = file("$distDir/base/app/scripts/xpiped_debug.sh")
debug.text = file("$projectDir/debug/linux/xpiped_debug.sh").text.replaceAll(
'JVM-ARGS',
debugArguments)
file("$distDir/base/app/scripts/xpiped_debug.sh").executable = true
file("$distDir/base/app/scripts/xpiped_debug_attach.sh").text = file("$projectDir/debug/linux/xpiped_debug.sh").text.replace(
debug.setExecutable(true, false)
def debugAttach = file("$distDir/base/app/scripts/xpiped_debug_attach.sh")
debugAttach.text = file("$projectDir/debug/linux/xpiped_debug.sh").text.replaceAll(
'JVM-ARGS',
debugAttachArguments + ' ' + debugArguments)
file("$distDir/base/app/scripts/xpiped_debug_attach.sh").executable = true
debugAttach.setExecutable(true, false)
copy {
from "$distDir/licenses"
@ -188,14 +193,18 @@ if (org.gradle.internal.os.OperatingSystem.current().isWindows()) {
def debugAttachArguments = file("$projectDir/debug/mac/debug_attach_arguments.txt").text.lines().map(s -> '"' + s + '"').collect(
Collectors.joining(' '))
file("$distDir/XPipe.app/Contents/Resources/scripts").mkdirs()
file("$distDir/XPipe.app/Contents/Resources/scripts/xpiped_debug.sh").text = file("$projectDir/debug/mac/xpiped_debug.sh").text.replace(
def debug = file("$distDir/XPipe.app/Contents/Resources/scripts/xpiped_debug.sh")
debug.text = file("$projectDir/debug/mac/xpiped_debug.sh").text.replaceAll(
'JVM-ARGS',
debugArguments)
file("$distDir/XPipe.app/Contents/Resources/scripts/xpiped_debug.sh").executable = true
file("$distDir/XPipe.app/Contents/Resources/scripts/xpiped_debug_attach.sh").text = file("$projectDir/debug/mac/xpiped_debug.sh").text.replace(
debug.setExecutable(true, false)
def debugAttach = file("$distDir/XPipe.app/Contents/Resources/scripts/xpiped_debug_attach.sh")
debugAttach.text = file("$projectDir/debug/mac/xpiped_debug.sh").text.replaceAll(
'JVM-ARGS',
debugAttachArguments + ' ' + debugArguments)
file("$distDir/XPipe.app/Contents/Resources/scripts/xpiped_debug_attach.sh").executable = true
debugAttach.setExecutable(true, false)
if (System.getenv("MACOS_DEVELOPER_ID_APPLICATION_CERTIFICATE_NAME") != null) {
exec {

View file

@ -3,9 +3,8 @@
- Add connection timeout setting for cases in which some connections are slow to start up
- Fix connection timeout not being properly applied for ssh config connections
- Fix sudo elevation password not passed to ssh config connections
- Fix about screen on macOS
- Fix sudo elevation not being possible for some commands even though it should
- Fix terminal session sometimes not opening the correct system using SSH jump hosts
- Fix terminal session sometimes not opening the correct system when using SSH jump hosts
- Fix debug mode not launching in some cases on Linux due to script permission issues
- Fix CLI crashing due to missing CPU features on outdated CPUs
- Fix SSH key file not being properly validated
@ -17,29 +16,4 @@
- Fix shell connection state not being properly reset on unexpected termination
- Fix fish error check sometimes being displayed in cmd
- Fix file browser tab closing failing if underlying shell connection has died
## 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!
- Fix about screen on macOS