From b023ffd01b9ce3e81626ce4df55ae9ba414f90cc Mon Sep 17 00:00:00 2001 From: Raboneko <119771935+raboneko@users.noreply.github.com> Date: Fri, 14 Mar 2025 06:44:18 -0700 Subject: [PATCH] fix(devpod): rename binaries to match upstream (#3888) (#3903) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is required for the current version of the desktop app to work, as it tries to call the `devpod-cli` binary This also updates the .desktop file to match upstream and adds a missing dependency (cherry picked from commit d14afaca2423929027f97f73acff2d5ad0d4301d) Co-authored-by: Alberto GarcĂ­a <4411661+GarciaLnk@users.noreply.github.com> --- anda/devs/devpod/DevPod.desktop | 9 ++++----- .../devpod/golang-github-loft-sh-devpod.spec | 19 ++++++++++--------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/anda/devs/devpod/DevPod.desktop b/anda/devs/devpod/DevPod.desktop index 3b00d4d64a..e51b0f7aeb 100644 --- a/anda/devs/devpod/DevPod.desktop +++ b/anda/devs/devpod/DevPod.desktop @@ -2,10 +2,9 @@ Version=1.0 Type=Application Name=DevPod -Comment=Codespaces but open-source, client-only and unopinionated: Works with any IDE and lets you use any cloud, kubernetes or just localhost docker -Exec=/usr/bin/DevPod -Icon=devpod.png +Comment=Spin up dev environments in any infra +Exec=dev-pod-desktop +Icon=dev-pod-desktop Terminal=false StartupNotify=false -Categories=Utility;TextEditor;Development;IDE; -MimeType=text/plain;application/x-zerosize; +Categories=Development; diff --git a/anda/devs/devpod/golang-github-loft-sh-devpod.spec b/anda/devs/devpod/golang-github-loft-sh-devpod.spec index d6347a9f78..f540d06c83 100644 --- a/anda/devs/devpod/golang-github-loft-sh-devpod.spec +++ b/anda/devs/devpod/golang-github-loft-sh-devpod.spec @@ -17,8 +17,8 @@ and lets you use any cloud, kubernetes or just localhost docker.} loadtest/README.md Name: devpod -Release: 1%?dist -Summary: Codespaces but open-source, client-only and unopinionated: Works with any IDE and lets you use any cloud, kubernetes or just localhost docker +Release: 2%?dist +Summary: Spin up dev environments in any infra Provides: golang-github-loft-sh-devpod BuildRequires: anda-srpm-macros mold BuildRequires: yarnpkg rust-packaging @@ -27,7 +27,7 @@ Recommends: devpod-desktop License: MPL-2.0 URL: https://devpod.sh Source: %{gosource} -# gendesk --pkgname=DevPod --name=DevPod --exec=/usr/bin/DevPod --icon=devpod.png --categories='Utility;TextEditor;Development;IDE' --mimetypes='text/plain;application/x-zerosize' -n +# gendesk --pkgname=DevPod --name=DevPod --exec=dev-pod-desktop --icon=dev-pod-desktop --categories='Development' -n Source1: DevPod.desktop %description %{common_description} @@ -41,6 +41,7 @@ BuildRequires: pkgconfig(gdk-3.0) BuildRequires: pkgconfig(javascriptcoregtk-4.1) BuildRequires: pkgconfig(libsoup-3.0) BuildRequires: pkgconfig(webkit2gtk-4.1) +Requires: libappindicator-gtk3 %description desktop %{common_description} @@ -82,18 +83,18 @@ popd # desktop %install # go install -m 0755 -vd %{buildroot}%{_bindir} -install -m 0755 -vp bin/devpod %{buildroot}%{_bindir}/ +install -m 0755 -vp bin/devpod %{buildroot}%{_bindir}/devpod-cli # tauri -install -Dm755 "desktop/src-tauri/target/rpm/DevPod Desktop" %buildroot%_bindir/DevPod-Desktop +install -Dm755 "desktop/src-tauri/target/rpm/DevPod Desktop" %buildroot%_bindir/dev-pod-desktop install -Dm644 %{S:1} -t %buildroot%_datadir/applications/ -install -Dm644 desktop/devpod.png -t %buildroot%_datadir/pixmaps/ +install -Dm644 desktop/devpod.png %buildroot%_datadir/pixmaps/dev-pod-desktop.png %files %license LICENSE %doc README.md SECURITY.md -%{_bindir}/devpod +%{_bindir}/devpod-cli %files desktop -%_bindir/DevPod-Desktop +%_bindir/dev-pod-desktop %_datadir/applications/DevPod.desktop -%_datadir/pixmaps/devpod.png +%_datadir/pixmaps/dev-pod-desktop.png