From 88883e757c4b94c6883f0afcb038d1e10c293464 Mon Sep 17 00:00:00 2001 From: Joachim Mild Date: Tue, 24 Mar 2026 20:18:51 +0100 Subject: [PATCH] fix(ci): robustly resolve deb bundle dir in PKGBUILD - `makepkg` runs `package()` within a `src/` subdirectory, breaking the `../../../target` relative path lookup. - Anchored the path search strictly using the `$startdir` environment variable instead. - Bumped version to 0.1.0-beta.16 to run validation. --- apps/desktop/package.json | 2 +- apps/desktop/src-tauri/PKGBUILD | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/desktop/package.json b/apps/desktop/package.json index 273611a..e0b885a 100644 --- a/apps/desktop/package.json +++ b/apps/desktop/package.json @@ -1,6 +1,6 @@ { "name": "desktop", - "version": "0.1.0-beta.15", + "version": "0.1.0-beta.16", "description": "Cross-platform SSH manager desktop app", "scripts": { "dev": "vite", diff --git a/apps/desktop/src-tauri/PKGBUILD b/apps/desktop/src-tauri/PKGBUILD index 0c3bc68..3dfdb3c 100644 --- a/apps/desktop/src-tauri/PKGBUILD +++ b/apps/desktop/src-tauri/PKGBUILD @@ -13,11 +13,11 @@ package() { # The Tauri build for Debian creates a directory structure we can reuse. # In a Cargo workspace, we find the data directory within the workspace root's target folder. # Tauri sanitizes versions (e.g., stripping pre-release tags for DEB), so we find the first dir. - _deb_bundle_dir=$(find ../../../target/release/bundle/deb -maxdepth 1 -mindepth 1 -type d | head -n 1) + _deb_bundle_dir=$(find "${startdir}/../../../target/release/bundle/deb" -maxdepth 1 -mindepth 1 -type d | head -n 1) if [ -z "$_deb_bundle_dir" ]; then echo "Error: Could not find any Debian bundle directory" - echo "Searched in: ../../../target/release/bundle/deb" + echo "Searched in: ${startdir}/../../../target/release/bundle/deb" exit 1 fi