Skip to content

Commit

Permalink
abp 2145: Moved icon location to allow current Firefox nighlies to di…
Browse files Browse the repository at this point in the history
…splay Adblock Plus icon even if the extension is disabled
  • Loading branch information
lovelywcm committed Jul 19, 2010
1 parent 62c3390 commit 2e8e4e3
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 2 deletions.
4 changes: 4 additions & 0 deletions chrome.manifest
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,7 @@ category net-channel-event-sinks AUPComponent @mozilla.org/autoproxy;1

# Hack to prevent .Net Framework Assistant from messing up the browser
override chrome://dotnetassistant/content/bootstrap.xul data:text/xml,<nada/>

# Hack to make icon.png available as adblockplus.png in the skin
skin autoproxy_icon classic/1.0 ./
override chrome://autoproxy/skin/autoproxy.png chrome://autoproxy_icon/skin/icon.png
2 changes: 1 addition & 1 deletion create_xpi.pl
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
$pkg->makeJAR("$baseName.jar", 'content', 'skin', 'locale', '-/tests', '-/mochitest', '-/.incomplete');
chdir('..');

my @files = grep {-e $_} ('components', 'defaults', 'install.rdf', 'chrome.manifest');
my @files = grep {-e $_} ('components', 'defaults', 'install.rdf', 'chrome.manifest', 'icon.png');

$pkg->makeXPI($xpiFile, "chrome/$baseName.jar", @files);
unlink("chrome/$baseName.jar");
Expand Down
File renamed without changes
2 changes: 1 addition & 1 deletion make_babelzilla_build.pl
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ sub Packager::fixLocales() {}
$pkg->makeJAR("$baseName.jar", 'content', 'skin', 'locale', '-/tests', '-/mochitest', '-/.incomplete');
chdir('..');

my @files = grep {-e $_} ('components', 'defaults', 'install.rdf', 'chrome.manifest');
my @files = grep {-e $_} ('components', 'defaults', 'install.rdf', 'chrome.manifest', 'icon.png');

my $targetAppNum = 0;
$pkg->{postprocess_line} = \&postprocessInstallRDF;
Expand Down
2 changes: 2 additions & 0 deletions setupTestEnvironment.pl
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@
my $installManifest = fixupFile(readFile("install.rdf"));
push @files, ["install.rdf", $installManifest];

push @files, ["icon.png", readFile("icon.png")] if -f "icon.png";

my $cleanManifest = $installManifest;
$cleanManifest =~ s/<(\w+:)?targetApplication>.*?<\/\1targetApplication>//gs;
$cleanManifest =~ s/<(\w+:)?requires>.*?<\/\1requires>//gs;
Expand Down

0 comments on commit 2e8e4e3

Please sign in to comment.