Ticket #6524: bundle_plugins.patch

File bundle_plugins.patch, 968 bytes (added by mythtv@…, 12 years ago)

Patch to move MythFronted? plugins to Contents/Plugins? inside bundle

  • osx-packager.pl

     
    10551055 if ( $target eq "MythFrontend" or $target =~ m/^MythTV/ )
    10561056 {
    10571057  my $res  = "$finalTarget/Contents/Resources";
     1058  my $plugins  = "$finalTarget/Contents/Plugins";
    10581059  my $libs = "$res/lib";
    10591060
    10601061  # Install themes, filters, etc.
     
    10681069  foreach my $lib ( glob "$libs/mythtv/*/*" )
    10691070  {   &Syscall([ @bundler, $lib ]) or die   }
    10701071
     1072  # Move plugins making symbolic links
     1073  mkdir $plugins;
     1074  foreach my $plugin (glob "$libs/mythtv/plugins/*" )
     1075  {
     1076    &Syscall([ 'mv', $plugin, $plugins ]) or die;
     1077    my $library = basename($plugin);
     1078    &Syscall([ 'ln', '-sf', "../../../../Plugins/$library", $plugin ]) or die;
     1079  }
     1080
    10711081  # The icon
    10721082  &Syscall([ 'cp',  "$SVNDIR/mythtv/programs/mythfrontend/mythfrontend.icns",
    10731083             "$res/application.icns" ]) or die;