Skip to content

Commit

Permalink
Fix webpage builder to account for mac universal build
Browse files Browse the repository at this point in the history
  • Loading branch information
Oleksiy-Yakovenko committed Nov 20, 2024
1 parent a3d188e commit 9674d14
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions build-html
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,15 @@ foreach (@packages) {
close CONF;
map ({$conf{$_} = $x86_64_conf{$_}} keys %x86_64_conf);
}
$descr_fname = "temp/output/universal/$package.descr";
if (-e $descr_fname) {
print "Found $descr_fname\n";
local $/;
open CONF,"<$descr_fname" || die "Failed to open $descr_fname\n";
my %x86_64_conf = parse_config (<CONF>);
close CONF;
map ({$conf{$_} = $x86_64_conf{$_}} keys %x86_64_conf);
}

print "Plugin descr:\n" . Dumper (\%conf) . "\n";

Expand All @@ -63,11 +72,11 @@ foreach (@packages) {
}
$links .= "<a href='http://sourceforge.net/projects/deadbeef/files/plugins/x86_64/$conf{fname_linux_x86_64}/download'>Linux</a>";
}
if ($conf{fname_mac_x86_64}) {
if ($conf{fname_mac_universal}) {
if ($links) {
$links .= '<br/>';
}
$links .= "<a href='http://sourceforge.net/projects/deadbeef/files/plugins/x86_64/$conf{fname_mac_x86_64}/download'>Mac</a>";
$links .= "<a href='http://sourceforge.net/projects/deadbeef/files/plugins/x86_64/$conf{fname_mac_universal}/download'>Mac (Universal)</a>";
}
if ($conf{fname_windows_x86_64}) {
if ($links) {
Expand Down

0 comments on commit 9674d14

Please sign in to comment.