chore: update release process for single-file publish and enhance installer script

This commit is contained in:
HueByte
2026-02-25 10:08:50 +01:00
parent 8689dc2a01
commit 0aaa371488
4 changed files with 21 additions and 9 deletions
+10 -3
View File
@@ -199,10 +199,17 @@ main() {
fi
fi
# Install the binary
# Install full directory to ~/.local/share/echohub and symlink the binary.
# Even single-file publishes may have content files (appsettings, assets)
# that the app expects next to the binary via AppContext.BaseDirectory.
app_dir="$HOME/.local/share/echohub"
rm -rf "$app_dir"
mkdir -p "$app_dir"
cp -r "$src_dir"/. "$app_dir/"
chmod +x "$app_dir/EchoHub.Client"
mkdir -p "$install_dir"
cp "$src_dir/EchoHub.Client" "$install_dir/$BINARY_NAME"
chmod +x "$install_dir/$BINARY_NAME"
ln -sf "$app_dir/EchoHub.Client" "$install_dir/$BINARY_NAME"
echo ""