mirror of
https://github.com/fosskers/cargo-aur.git
synced 2026-04-28 14:57:32 -05:00
feat: actually copy the designated files into the tarball
This commit is contained in:
@@ -26,5 +26,5 @@ codegen-units = 1
|
||||
panic = "abort"
|
||||
|
||||
[package.metadata.aur]
|
||||
depends = ["blah"]
|
||||
files = [["/path/to/original", "/path/to/target"]]
|
||||
# depends = ["blah"]
|
||||
# files = [[".github/dependabot.yml", "$pkgdir/usr/local/share/cargo-aur/dependabot.yml"]]
|
||||
|
||||
11
src/main.rs
11
src/main.rs
@@ -289,6 +289,17 @@ fn tarball(
|
||||
if let Some(lic) = license {
|
||||
command.arg(lic.path());
|
||||
}
|
||||
if let Some(files) = config
|
||||
.package
|
||||
.metadata
|
||||
.as_ref()
|
||||
.and_then(|m| m.aur.as_ref())
|
||||
.map(|a| a.files.as_slice())
|
||||
{
|
||||
for (file, _) in files {
|
||||
command.arg(file);
|
||||
}
|
||||
}
|
||||
command.status()?;
|
||||
|
||||
std::fs::remove_file(binary_name)?;
|
||||
|
||||
Reference in New Issue
Block a user