Permalink
Browse files

Fix xulapp generation broken by changes required by wxi

  • Loading branch information...
1 parent 765cfa7 commit 5e15200d402287c0ab36e087f3a2ccc6a30a3c24 @prefiks prefiks committed Feb 11, 2013
Showing with 3 additions and 2 deletions.
  1. +3 −2 tools/perl5lib/OneTeam/Builder/Filter/Saver/XPI.pm
@@ -43,7 +43,7 @@ sub path_convert {
sub finalize {
my $self = shift;
- my $tmpdir = catdir(tempdir('otXXXXXX', TMPDIR => 1, CLEANUP => 1), "OneTeam");
+ my $tmpdir = catdir(tempdir('otXXXXXX', TMPDIR => 1, CLEANUP => ), "OneTeam");
my $tmppfxdir = $self->_prefix ? catdir($tmpdir, $self->_prefix) : $tmpdir;
my $chromedir = catdir($tmppfxdir, "chrome");
@@ -62,7 +62,7 @@ sub _make_package {
my ($self, $tmpdir, $tmppfxdir) = @_;
my $cwd = getcwd();
- chdir("$self->{outputdir}/chrome");
+ chdir($tmppfxdir);
system(qw(zip -q -9 -r), catfile($self->{topdir}, $self->_output_filename), ".");
chdir($cwd);
}
@@ -77,6 +77,7 @@ sub _prepare_files_for_packing {
$d, qw(default.ico default.xpm));
my $cwd = getcwd();
+
chdir("$self->{outputdir}/chrome");
system(qw(zip -q -0 -r), catfile($chromedir, 'oneteam.jar'), ".");
chdir($cwd);

0 comments on commit 5e15200

Please sign in to comment.