Alien-Deno
view release on metacpan or search on metacpan
use Path::Tiny qw( path );
plugin 'Probe::CommandLine' => (
command => 'deno',
args => [ '--version' ],
match => qr/^deno ([0-9\.]+)/,
version => qr/^deno ([0-9\.]+)/,
);
share {
# Only supports binary style for now.
my %os_arch_mapping = (
"darwin:aarch64" => { name => 'aarch64-apple-darwin' },
"darwin:x86_64" => { name => 'x86_64-apple-darwin' },
"MSWin32:x86_64" => { name => 'x86_64-pc-windows-msvc' },
"linux:x86_64" => { name => 'x86_64-unknown-linux-gnu' },
);
my $os_arch = join ":", ( $^O, meta->prop->{platform}{cpu}{arch}{name} );
$bin->mkpath;
$deno->move( $deno->absolute($bin) );
}
}
};
plugin 'Build::Copy';
gather sub {
my ($build) = @_;
$build->runtime_prop->{'style'} = 'binary';
};
}
( run in 0.565 second using v1.01-cache-2.11-cpan-49f99fa48dc )