aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Spek <p.spek@tyil.nl>2020-07-12 12:54:05 +0200
committerPatrick Spek <p.spek@tyil.nl>2020-07-12 12:54:05 +0200
commit46653e9c9d2e88b2616bc6862fe0480c2a437eb3 (patch)
tree907b06bfedf7a00e8d2b83a09e7cfec84f2f7a0e
parentbf909d7cd1efd515c2d72eaa752fe5ebb7df263c (diff)
downloadDist::Maker-46653e9c9d2e88b2616bc6862fe0480c2a437eb3.tar.gz
Dist::Maker-46653e9c9d2e88b2616bc6862fe0480c2a437eb3.tar.bz2
Make resources optional
-rw-r--r--lib/App/Rakumod/Bin.rakumod6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/App/Rakumod/Bin.rakumod b/lib/App/Rakumod/Bin.rakumod
index a1b3bf7..6e04c1c 100644
--- a/lib/App/Rakumod/Bin.rakumod
+++ b/lib/App/Rakumod/Bin.rakumod
@@ -205,10 +205,14 @@ multi sub MAIN (
# Include the bare minimum
my @files = (
|%meta<provides>.values,
- |%meta<resources>.map({ "resources/$_" }),
'META6.json',
);
+ # Include resources, if they exist
+ with (%meta<resources>) {
+ @files.append($_.map({ "resources/$_" }))
+ }
+
# Include tests, if they exist
if ($meta-file.parent.add('t').d) {
my @tests = $meta-file.parent.add('t');