Alien-xmake
view release on metacpan or search on metacpan
builder/xmake.pm view on Meta::CPAN
# Module::Build subclass
sub ACTION_xmake_install {
my ($s) = @_;
#~ ddx $s->config_data;
return 1 if $s->config_data('xmake_install');
#
my $os = $s->os_type; # based on Perl::OSType
if ( !defined $os ) {
$s->log_warn(
q[Whoa. Perl has no idea what this OS is so... let's try installing with a shell script and hope for the best!]
);
exit 1;
}
elsif ( $os eq 'Windows' ) {
$s->config_data( xmake_type => 'share' );
my $installer = $s->download( $installer_exe, 'xmake_installer.exe' );
my $dest = File::Spec->rel2abs(
File::Spec->catdir( $s->base_dir, @{ $s->share_dir->{dist} } ) );
$s->log_info(qq[Running installer [$installer]...\n]);
$s->do_system( $installer, '/NOADMIN', '/S', '/D=' . $dest );
( run in 0.903 second using v1.01-cache-2.11-cpan-4e96b696675 )