From fc7b644d8d6d63e3a3952cbeed14c64e90ed7b1a Mon Sep 17 00:00:00 2001 From: madomado Date: Fri, 2 Aug 2024 05:14:29 +0800 Subject: [PATCH] fix(zed*): add cargo clean to make for more disk space (#1805) (cherry picked from commit 249771226108bf833f453b0ed2b243a351b92c31) --- anda/devs/zed/nightly/zed-nightly.spec | 2 ++ anda/devs/zed/preview/zed-preview.spec | 2 ++ anda/devs/zed/stable/zed.spec | 2 ++ 3 files changed, 6 insertions(+) diff --git a/anda/devs/zed/nightly/zed-nightly.spec b/anda/devs/zed/nightly/zed-nightly.spec index 6554a0e20b..9a9beef5d0 100644 --- a/anda/devs/zed/nightly/zed-nightly.spec +++ b/anda/devs/zed/nightly/zed-nightly.spec @@ -79,6 +79,8 @@ script/generate-licenses install -Dm755 target/rpm/zed %{buildroot}%{_libexecdir}/zed-editor install -Dm755 target/rpm/cli %{buildroot}%{_bindir}/zed +%__cargo clean + install -Dm644 %app_id.desktop %{buildroot}%{_datadir}/applications/%app_id.desktop install -Dm644 crates/zed/resources/app-icon-nightly.png %{buildroot}%{_datadir}/pixmaps/%app_id.png diff --git a/anda/devs/zed/preview/zed-preview.spec b/anda/devs/zed/preview/zed-preview.spec index 19ac89102a..6e27bfb307 100644 --- a/anda/devs/zed/preview/zed-preview.spec +++ b/anda/devs/zed/preview/zed-preview.spec @@ -75,6 +75,8 @@ script/generate-licenses install -Dm755 target/rpm/zed %{buildroot}%{_libexecdir}/zed-editor install -Dm755 target/rpm/cli %{buildroot}%{_bindir}/zed +%__cargo clean + install -Dm644 %app_id.desktop %{buildroot}%{_datadir}/applications/%app_id.desktop install -Dm644 crates/zed/resources/app-icon-preview.png %{buildroot}%{_datadir}/pixmaps/%app_id.png diff --git a/anda/devs/zed/stable/zed.spec b/anda/devs/zed/stable/zed.spec index f5903cf796..8524605a9e 100644 --- a/anda/devs/zed/stable/zed.spec +++ b/anda/devs/zed/stable/zed.spec @@ -75,6 +75,8 @@ script/generate-licenses install -Dm755 target/rpm/zed %{buildroot}%{_libexecdir}/zed-editor install -Dm755 target/rpm/cli %{buildroot}%{_bindir}/zed +%__cargo clean + install -Dm644 %app_id.desktop %{buildroot}%{_datadir}/applications/%app_id.desktop install -Dm644 crates/zed/resources/app-icon.png %{buildroot}%{_datadir}/pixmaps/%app_id.png