From f431c3d0187a4cbd6ebff586241be8885d4d9274 Mon Sep 17 00:00:00 2001 From: Dexoron Date: Thu, 28 May 2026 15:34:24 +0800 Subject: [PATCH] feat: update package metadata for RPM generation in Cargo.toml and fix snap package path --- .github/workflows/release.yml | 8 ++++---- Cargo.toml | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9c18d2a..76f74a0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -211,7 +211,7 @@ jobs: if: matrix.package_type == 'snap' uses: snapcore/action-build@v1 with: - path: packages/snap + path: packaging/snap - name: Prepare Snap Output if: matrix.package_type == 'snap' @@ -371,7 +371,7 @@ jobs: with: usesh: true run: | - pkg install -y rust + pkg install -y rust perl gmake cargo build --release - name: Prepare FreeBSD Artifact @@ -388,7 +388,7 @@ jobs: with: usesh: true run: | - pkg_add rust + pkg_add rust perl gmake cargo build --release - name: Prepare OpenBSD Artifact @@ -405,7 +405,7 @@ jobs: with: usesh: true run: | - pkgin -y install rust + pkgin -y install rust perl gmake cargo build --release - name: Prepare NetBSD Artifact diff --git a/Cargo.toml b/Cargo.toml index 264726f..c175a07 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -23,13 +23,13 @@ assets = [ ["target/release/dcr", "usr/bin/dcr", "755"], ] -[package.metadata.rpm] +[package.metadata.generate-rpm] summary = "Cargo-like utility to manage C/C++ projects" description = """ Cargo-like utility to manage C/C++ projects. """ -[package.metadata.rpm.files] +[package.metadata.generate-rpm.files] "/usr/bin/dcr" = { source = "target/release/dcr", mode = "755" } [dependencies]