Alien-Deno

 view release on metacpan or  search on metacpan

alienfile  view on Meta::CPAN

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} );

alienfile  view on Meta::CPAN

	$bin->mkpath;
	$deno->move( $deno->absolute($bin) );
      }
    }
  };

  plugin 'Build::Copy';

  gather sub {
    my ($build) = @_;
    $build->runtime_prop->{'style'} = 'binary';
  };
}



( run in 1.458 second using v1.01-cache-2.11-cpan-49f99fa48dc )