Merge branch 'master' into xs
Conflicts: Build.PL
This commit is contained in:
commit
ecdc2f077b
26
Build.PL
26
Build.PL
@ -32,6 +32,20 @@ my %recommends = qw(
|
||||
# removed:
|
||||
# Wx 0.9901
|
||||
|
||||
my $missing_prereqs = 0;
|
||||
if ($ENV{SLIC3R_NO_AUTO}) {
|
||||
foreach my $module (sort keys %prereqs) {
|
||||
my $version = $prereqs{$module};
|
||||
next if eval "use $module $version; 1";
|
||||
$missing_prereqs = 1 if exists $prereqs{$module};
|
||||
print "Missing prerequisite $module $version\n";
|
||||
}
|
||||
foreach my $module (sort keys %recommends) {
|
||||
my $version = $recommends{$module};
|
||||
next if eval "use $module $version; 1";
|
||||
print "Missing optional $module $version\n";
|
||||
}
|
||||
} else {
|
||||
my @try = (
|
||||
$ENV{CPANM} // (),
|
||||
File::Spec->catfile($Config{sitebin}, 'cpanm'),
|
||||
@ -69,18 +83,16 @@ EOF
|
||||
my %modules = (%prereqs, %recommends);
|
||||
foreach my $module (sort keys %modules) {
|
||||
my $version = $modules{$module};
|
||||
if ($ENV{SLIC3R_NO_AUTO}) {
|
||||
print "Missing prerequisite $module $version\n"
|
||||
if !eval "use $module $version; 1";
|
||||
} else {
|
||||
system $cpanm, "$module~$version";
|
||||
my $res = system $cpanm, "$module~$version";
|
||||
$missing_prereqs = 1 if $res != 0 && exists $prereqs{$module};
|
||||
}
|
||||
}
|
||||
exit if $ENV{SLIC3R_NO_AUTO};
|
||||
system $cpanm, '--reinstall', './xs';
|
||||
|
||||
if (eval "use App::Prove; 1") {
|
||||
if (eval "use App::Prove; 1" && !$missing_prereqs) {
|
||||
App::Prove->new->run;
|
||||
}
|
||||
|
||||
exit 1 if $missing_prereqs;
|
||||
|
||||
__END__
|
||||
|
@ -167,13 +167,13 @@ sub OnInit {
|
||||
$helpMenu->Append(MI_WEBSITE, "Slic3r &Website", 'Open the Slic3r website in your browser');
|
||||
my $versioncheck = $helpMenu->Append(MI_VERSIONCHECK, "Check for &Updates...", 'Check for new Slic3r versions');
|
||||
$versioncheck->Enable(Slic3r::GUI->have_version_check);
|
||||
$helpMenu->Append(MI_DOCUMENTATION, "&Documentation", 'Open the Slic3r documentation in your browser');
|
||||
$helpMenu->Append(MI_DOCUMENTATION, "Slic3r &Manual", 'Open the Slic3r manual in your browser');
|
||||
$helpMenu->AppendSeparator();
|
||||
$helpMenu->Append(wxID_ABOUT, "&About Slic3r", 'Show about dialog');
|
||||
EVT_MENU($frame, MI_CONF_WIZARD, sub { $self->{skeinpanel}->config_wizard });
|
||||
EVT_MENU($frame, MI_WEBSITE, sub { Wx::LaunchDefaultBrowser('http://slic3r.org/') });
|
||||
EVT_MENU($frame, MI_VERSIONCHECK, sub { Slic3r::GUI->check_version(manual => 1) });
|
||||
EVT_MENU($frame, MI_DOCUMENTATION, sub { Wx::LaunchDefaultBrowser('https://github.com/alexrj/Slic3r/wiki/Documentation') });
|
||||
EVT_MENU($frame, MI_DOCUMENTATION, sub { Wx::LaunchDefaultBrowser('https://manual.slic3r.org/') });
|
||||
EVT_MENU($frame, wxID_ABOUT, \&about);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user