From 369d9235323db18393b93edb24c26faad4f4b43f Mon Sep 17 00:00:00 2001 From: LeSnake04 Date: Sun, 13 Nov 2022 23:47:12 +0100 Subject: [PATCH] Added configuration for cargo-deb and cargo-generate-rpm (#178) --- Cargo.toml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 3a1d861e..215c48dd 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,7 +3,8 @@ name = "topgrade" description = "Upgrade all the things" categories = ["os"] keywords = ["upgrade", "update"] -license-file = "LICENSE" +license = "GPL-3.0" +# license-file = "LICENSE" repository = "https://github.com/topgrade-rs/topgrade" version = "10.1.2" authors = ["Roey Darwish Dror ", "Thomas Schönauer "] @@ -49,6 +50,15 @@ color-eyre = "0.6.2" [target.'cfg(target_os = "macos")'.dependencies] notify-rust = "~4.5" +[package.metadata.generate-rpm] +assets = [{source = "target/release/topgrade", dest="/usr/bin/topgrade"}] + +[package.metadata.generate-rpm.requires] +git = "*" + +[package.metadata.deb] +depends = "$auto,git" + [target.'cfg(unix)'.dependencies] nix = "~0.24" rust-ini = "~0.18"