2 # This file is part of the LibreOffice project.
4 # This Source Code Form is subject to the terms of the Mozilla Public
5 # License, v. 2.0. If a copy of the MPL was not distributed with this
6 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 # This file incorporates work covered by the following license notice:
10 # Licensed to the Apache Software Foundation (ASF) under one or more
11 # contributor license agreements. See the NOTICE file distributed
12 # with this work for additional information regarding copyright
13 # ownership. The ASF licenses this file to you under the Apache
14 # License, Version 2.0 (the "License"); you may not use this file
15 # except in compliance with the License. You may obtain a copy of
16 # the License at http://www.apache.org/licenses/LICENSE-2.0 .
19 package installer
::simplepackage
;
23 use installer
::download
;
24 use installer
::exiter
;
25 use installer
::globals
;
26 use installer
::logger
;
27 use installer
::strip
qw(strip_libraries);
28 use installer
::systemactions
;
29 use installer
::worker
;
31 ####################################################
32 # Checking if the simple packager is required.
33 # This can be achieved by setting the global
34 # variable SIMPLE_PACKAGE in *.lst file or by
35 # setting the environment variable SIMPLE_PACKAGE.
36 ####################################################
38 sub check_simple_packager_project
40 my ( $allvariables ) = @_;
42 if (( $installer::globals
::packageformat
eq "installed" ) ||
43 ( $installer::globals
::packageformat
eq "archive" ))
45 $installer::globals
::is_simple_packager_project
= 1;
46 $installer::globals
::patch_user_dir
= 1;
48 elsif( $installer::globals
::packageformat
eq "dmg" )
50 $installer::globals
::is_simple_packager_project
= 1;
54 ####################################################
55 # Detecting the directory with extensions
56 ####################################################
58 sub get_extensions_dir
60 my ( $subfolderdir ) = @_;
62 my $extensiondir = $subfolderdir . $installer::globals
::separator
;
63 if ( $installer::globals
::officedirhostname
ne "" ) { $extensiondir = $extensiondir . $installer::globals
::officedirhostname
. $installer::globals
::separator
; }
64 my $extensionsdir = $extensiondir . "share" . $installer::globals
::separator
. "extensions";
66 return $extensionsdir;
69 ##################################################################
70 # Collecting all identifier from ulf file
71 ##################################################################
75 my ( $translationfile ) = @_;
79 for ( my $i = 0; $i <= $#{$translationfile}; $i++ )
81 my $oneline = ${$translationfile}[$i];
83 if ( $oneline =~ /^\s*\[(.+)\]\s*$/ )
86 push(@identifier, $identifier);
93 ##############################################################
94 # Returning the complete block in all languages
95 # for a specified string
96 ##############################################################
98 sub get_language_block_from_language_file
100 my ($searchstring, $languagefile) = @_;
102 my @language_block = ();
104 for ( my $i = 0; $i <= $#{$languagefile}; $i++ )
106 if ( ${$languagefile}[$i] =~ /^\s*\[\s*$searchstring\s*\]\s*$/ )
110 push(@language_block, ${$languagefile}[$counter]);
113 while (( $counter <= $#{$languagefile} ) && (!( ${$languagefile}[$counter] =~ /^\s*\[/ )))
115 push(@language_block, ${$languagefile}[$counter]);
123 return \
@language_block;
126 ##############################################################
127 # Returning a specific language string from the block
128 # of all translations
129 ##############################################################
131 sub get_language_string_from_language_block
133 my ($language_block, $language) = @_;
137 for ( my $i = 0; $i <= $#{$language_block}; $i++ )
139 if ( ${$language_block}[$i] =~ /^\s*$language\s*\=\s*\"(.*)\"\s*$/ )
146 if ( $newstring eq "" )
148 $language = "en-US"; # defaulting to english
150 for ( my $i = 0; $i <= $#{$language_block}; $i++ )
152 if ( ${$language_block}[$i] =~ /^\s*$language\s*\=\s*\"(.*)\"\s*$/ )
163 ########################################################################
164 # Localizing the script for the Mac Language Pack installer
165 ########################################################################
167 sub localize_scriptfile
169 my ($scriptfile, $translationfile, $languagestringref) = @_;
171 my $onelanguage = $$languagestringref;
172 if ( $onelanguage =~ /^\s*(.*?)_/ ) { $onelanguage = $1; }
174 # Analyzing the ulf file, collecting all Identifier
175 my $allidentifier = get_identifier
($translationfile);
177 for ( my $i = 0; $i <= $#{$allidentifier}; $i++ )
179 my $identifier = ${$allidentifier}[$i];
180 my $language_block = get_language_block_from_language_file
($identifier, $translationfile);
181 my $newstring = get_language_string_from_language_block
($language_block, $onelanguage);
184 $newstring =~ s/\\\'/\'/g;
186 replace_one_variable_in_shellscript
($scriptfile, $newstring, $identifier);
190 #################################################################################
191 # Replacing one variable in Mac shell script
192 #################################################################################
194 sub replace_one_variable_in_shellscript
196 my ($scriptfile, $variable, $searchstring) = @_;
198 for ( my $i = 0; $i <= $#{$scriptfile}; $i++ )
200 ${$scriptfile}[$i] =~ s/\[$searchstring\]/$variable/g;
204 #############################################
205 # Replacing variables in Mac shell script
206 #############################################
208 sub replace_variables_in_scriptfile
210 my ($scriptfile, $volume_name, $volume_name_app, $allvariables) = @_;
212 replace_one_variable_in_shellscript
($scriptfile, $volume_name, "FULLPRODUCTNAME" );
213 replace_one_variable_in_shellscript
($scriptfile, $volume_name_app, "FULLAPPPRODUCTNAME" );
214 replace_one_variable_in_shellscript
($scriptfile, $allvariables->{'PRODUCTNAME'}, "PRODUCTNAME" );
215 replace_one_variable_in_shellscript
($scriptfile, $allvariables->{'PRODUCTVERSION'}, "PRODUCTVERSION" );
217 my $scriptname = $allvariables->{'BUNDLEIDENTIFIER'};
219 replace_one_variable_in_shellscript
($scriptfile, $scriptname, "SEARCHSCRIPTNAME" );
222 #############################################
223 # Creating the "simple" package.
225 # "tar.gz" for all other platforms
226 # additionally "dmg" on Mac OS X
227 #############################################
231 my ( $installdir, $archivedir, $packagename, $allvariables, $includepatharrayref, $languagestringref, $format ) = @_;
233 installer
::logger
::print_message
( "... creating $installer::globals::packageformat file ...\n" );
234 installer
::logger
::include_header_into_logfile
("Creating $installer::globals::packageformat file:");
236 # moving dir into temporary directory
237 my $pid = $$; # process id
238 my $tempdir = $installdir . "_temp" . "." . $pid;
241 my $makesystemcall = 1;
242 my $return_to_start = 0;
243 installer
::systemactions
::rename_directory
($installdir, $tempdir);
245 # creating new directory with original name
246 installer
::systemactions
::create_directory
($archivedir);
248 my $archive = $archivedir . $installer::globals
::separator
. $packagename . $format;
250 if ( $archive =~ /zip$/ )
253 $return_to_start = 1;
255 $systemcall = "$installer::globals::zippath -qr $archive .";
257 # Using Archive::Zip fails because of very long path names below "share/uno_packages/cache"
258 # my $packzip = Archive::Zip->new();
259 # $packzip->addTree("."); # after changing into $tempdir
260 # $packzip->writeToFileNamed($archive);
261 # $makesystemcall = 0;
263 elsif ( $archive =~ /dmg$/ )
265 my $folder = (( -l
"$tempdir/$packagename/Applications" ) or ( -l
"$tempdir/$packagename/opt" )) ?
$packagename : "\.";
267 if ( $allvariables->{'PACK_INSTALLED'} ) {
268 $folder = $packagename;
271 my $volume_name = $allvariables->{'PRODUCTNAME'};
272 my $volume_name_classic = $allvariables->{'PRODUCTNAME'} . ' ' . $allvariables->{'PRODUCTVERSION'};
273 my $volume_name_classic_app = $volume_name; # "app" should not contain version number
274 if ( $allvariables->{'DMG_VOLUMEEXTENSION'} ) {
275 $volume_name = $volume_name . ' ' . $allvariables->{'DMG_VOLUMEEXTENSION'};
276 $volume_name_classic = $volume_name_classic . ' ' . $allvariables->{'DMG_VOLUMEEXTENSION'};
277 $volume_name_classic_app = $volume_name_classic_app . ' ' . $allvariables->{'DMG_VOLUMEEXTENSION'};
283 if ( ! $allvariables->{'HIDELICENSEDIALOG'} )
285 installer
::scriptitems
::get_sourcepath_from_filename_and_includepath
( \
$sla, $includepatharrayref, 0);
288 my $localtempdir = $tempdir;
290 if (( $installer::globals
::languagepack
) || ( $installer::globals
::helppack
))
292 $localtempdir = "$tempdir/$packagename";
293 if ( $installer::globals
::helppack
) { $volume_name = "$volume_name Help Pack"; }
294 if ( $installer::globals
::languagepack
)
296 $volume_name = "$volume_name Language Pack";
297 $volume_name_classic = "$volume_name_classic Language Pack";
298 $volume_name_classic_app = "$volume_name_classic_app Language Pack";
301 # Create tar ball named tarball.tar.bz2
302 # my $appfolder = $localtempdir . "/" . $volume_name . "\.app";
303 my $appfolder = $localtempdir . "/" . $volume_name_classic_app . "\.app";
304 my $contentsfolder = $appfolder . "/Contents";
305 my $tarballname = "tarball.tar.bz2";
307 my $localfrom = cwd
();
310 $systemcall = "tar -cjf $tarballname Contents/";
312 print "... $systemcall ...\n";
313 my $localreturnvalue = system($systemcall);
314 $infoline = "Systemcall: $systemcall\n";
315 push( @installer::globals
::logfileinfo
, $infoline);
317 if ($localreturnvalue)
319 $infoline = "ERROR: Could not execute \"$systemcall\"!\n";
320 push( @installer::globals
::logfileinfo
, $infoline);
324 $infoline = "Success: Executed \"$systemcall\" successfully!\n";
325 push( @installer::globals
::logfileinfo
, $infoline);
328 my $sourcefile = $appfolder . "/" . $tarballname;
329 my $destfile = $contentsfolder . "/" . $tarballname;
331 installer
::systemactions
::remove_complete_directory
($contentsfolder);
332 installer
::systemactions
::create_directory
($contentsfolder);
334 installer
::systemactions
::copy_one_file
($sourcefile, $destfile);
337 # Copy two files into installation set next to the tar ball
338 # 1. "osx_install.applescript"
339 # 2 "OpenOffice.org Languagepack"
341 my $scriptrealfilename = "osx_install.applescript";
342 my $scriptfilename = "";
343 if ( $installer::globals
::languagepack
) { $scriptfilename = "osx_install_languagepack.applescript"; }
344 if ( $installer::globals
::helppack
) { $scriptfilename = "osx_install_helppack.applescript"; }
345 my $scripthelperfilename = $ENV{'SRCDIR'} . "/setup_native/scripts/mac_install.script";
346 # my $scripthelperrealfilename = $volume_name;
347 my $scripthelperrealfilename = $volume_name_classic_app;
349 # Finding both files in source tree
351 my $scriptref = $ENV{'SRCDIR'} . "/setup_native/scripts/" . $scriptfilename;
352 if (! -f
$scriptref) { installer
::exiter
::exit_program
("ERROR: Could not find Apple script $scriptfilename ($scriptref)!", "create_package"); }
353 if (! -f
$scripthelperfilename) { installer
::exiter
::exit_program
("ERROR: Could not find Apple script $scripthelperfilename!", "create_package"); }
355 $scriptfilename = $contentsfolder . "/" . $scriptrealfilename;
356 $scripthelperrealfilename = $contentsfolder . "/" . $scripthelperrealfilename;
358 installer
::systemactions
::copy_one_file
($scriptref, $scriptfilename);
359 installer
::systemactions
::copy_one_file
($scripthelperfilename, $scripthelperrealfilename);
361 # Replacing variables in script $scriptfilename
362 # Localizing script $scriptfilename
363 my $scriptfilecontent = installer
::files
::read_file
($scriptfilename);
364 my $translationfilecontent = installer
::files
::read_file
($installer::globals
::macinstallfilename
);
365 localize_scriptfile
($scriptfilecontent, $translationfilecontent, $languagestringref);
366 # replace_variables_in_scriptfile($scriptfilecontent, $volume_name, $allvariables);
367 replace_variables_in_scriptfile
($scriptfilecontent, $volume_name_classic, $volume_name_classic_app, $allvariables);
368 installer
::files
::save_file
($scriptfilename, $scriptfilecontent);
370 chmod 0775, $scriptfilename;
371 chmod 0775, $scripthelperrealfilename;
373 # Copy also Info.plist and icon file
374 # Finding both files in source tree
375 my $iconfile = "ooo3_installer.icns";
376 my $iconfileref = $ENV{'SRCDIR'} . "/setup_native/source/mac/" . $iconfile;
377 if (! -f
$iconfileref) { installer
::exiter
::exit_program
("ERROR: Could not find Apple script icon file $iconfile ($iconfileref)!", "create_package"); }
378 my $subdir = $contentsfolder . "/" . "Resources";
379 if ( ! -d
$subdir ) { installer
::systemactions
::create_directory
($subdir); }
380 $destfile = $subdir . "/" . $iconfile;
381 installer
::systemactions
::copy_one_file
($iconfileref, $destfile);
383 my $installname = "Info.plist";
384 my $infoplistfile = $ENV{'SRCDIR'} . "/setup_native/source/mac/Info.plist.langpack";
385 if (! -f
$infoplistfile) { installer
::exiter
::exit_program
("ERROR: Could not find Apple script Info.plist: $infoplistfile!", "create_package"); }
386 $destfile = $contentsfolder . "/" . $installname;
387 installer
::systemactions
::copy_one_file
($infoplistfile, $destfile);
389 # Replacing variables in Info.plist
390 $scriptfilecontent = installer
::files
::read_file
($destfile);
391 # replace_one_variable_in_shellscript($scriptfilecontent, $volume_name, "FULLPRODUCTNAME" );
392 replace_one_variable_in_shellscript
($scriptfilecontent, $volume_name_classic_app, "FULLAPPPRODUCTNAME" ); # OpenOffice.org Language Pack
393 installer
::files
::save_file
($destfile, $scriptfilecontent);
399 if (($volume_name_classic_app eq 'LibreOffice' || $volume_name_classic_app eq 'LibreOfficeDev') &&
400 defined($ENV{'MACOSX_CODESIGNING_IDENTITY'}) && $ENV{'MACOSX_CODESIGNING_IDENTITY'} ne "" )
402 $systemcall = "$ENV{'SRCDIR'}/solenv/bin/macosx-codesign-app-bundle $localtempdir/$folder/$volume_name_classic_app.app";
403 print "... $systemcall ...\n";
404 my $returnvalue = system($systemcall);
405 $infoline = "Systemcall: $systemcall\n";
406 push( @installer::globals
::logfileinfo
, $infoline);
410 $infoline = "ERROR: Could not execute \"$systemcall\"!\n";
411 push( @installer::globals
::logfileinfo
, $infoline);
415 $infoline = "Success: Executed \"$systemcall\" successfully!\n";
416 push( @installer::globals
::logfileinfo
, $infoline);
421 $systemcall = "cd $localtempdir && hdiutil makehybrid -hfs -hfs-openfolder $folder $folder -hfs-volume-name \"$volume_name\" -ov -o $installdir/tmp && hdiutil convert -ov -format UDBZ $installdir/tmp.dmg -o $archive && ";
422 if (( $ref ne "" ) && ( $$ref ne "" )) {
423 $systemcall .= "hdiutil unflatten $archive && Rez -a $$ref -o $archive && hdiutil flatten $archive &&";
425 $systemcall .= "rm -f $installdir/tmp.dmg";
429 # getting the path of the getuid.so (only required for Solaris and Linux)
430 my $getuidlibrary = "";
431 my $ldpreloadstring = "";
432 if (( $installer::globals
::issolarisbuild
) || ( $installer::globals
::islinuxbuild
))
434 $getuidlibrary = installer
::download
::get_path_for_library
($includepatharrayref);
435 if ( $getuidlibrary ne "" ) { $ldpreloadstring = "LD_PRELOAD=" . $getuidlibrary; }
438 $systemcall = "cd $tempdir; $ldpreloadstring tar -cf - . | gzip > $archive";
441 if ( $makesystemcall )
443 print "... $systemcall ...\n";
444 my $returnvalue = system($systemcall);
445 my $infoline = "Systemcall: $systemcall\n";
446 push( @installer::globals
::logfileinfo
, $infoline);
450 $infoline = "ERROR: Could not execute \"$systemcall\"!\n";
451 push( @installer::globals
::logfileinfo
, $infoline);
455 $infoline = "Success: Executed \"$systemcall\" successfully!\n";
456 push( @installer::globals
::logfileinfo
, $infoline);
460 if ( $return_to_start ) { chdir($from); }
462 print "... removing $tempdir ...\n";
463 installer
::systemactions
::remove_complete_directory
($tempdir);
466 ####################################################
467 # Main method for creating the simple package
469 ####################################################
471 sub create_simple_package
473 my ( $filesref, $dirsref, $scpactionsref, $linksref, $unixlinksref, $loggingdir, $languagestringref, $shipinstalldir, $allsettingsarrayref, $allvariables, $includepatharrayref ) = @_;
475 # Creating directories
477 my $current_install_number = "";
480 installer
::logger
::print_message
( "... creating installation directory ...\n" );
481 installer
::logger
::include_header_into_logfile
("Creating installation directory");
483 $installer::globals
::csp_installdir
= installer
::worker
::create_installation_directory
($shipinstalldir, $languagestringref, \
$current_install_number);
484 $installer::globals
::csp_installlogdir
= installer
::systemactions
::create_directory_next_to_directory
($installer::globals
::csp_installdir
, "log");
486 my $installdir = $installer::globals
::csp_installdir
;
487 my $installlogdir = $installer::globals
::csp_installlogdir
;
489 # Setting package name (similar to the download name)
490 my $packagename = "";
492 if ( $installer::globals
::packageformat
eq "archive" ||
493 $installer::globals
::packageformat
eq "dmg" )
495 $installer::globals
::csp_languagestring
= $$languagestringref;
497 my $locallanguage = $installer::globals
::csp_languagestring
;
499 if ( $allvariables->{'OOODOWNLOADNAME'} )
501 $packagename = installer
::download
::set_download_filename
(\
$locallanguage, $allvariables);
505 $downloadname = installer
::ziplist
::getinfofromziplist
($allsettingsarrayref, "downloadname");
506 if ( $installer::globals
::languagepack
) { $downloadname = installer
::ziplist
::getinfofromziplist
($allsettingsarrayref, "langpackdownloadname"); }
507 if ( $installer::globals
::helppack
) { $downloadname = installer
::ziplist
::getinfofromziplist
($allsettingsarrayref, "helppackdownloadname"); }
508 $packagename = installer
::download
::resolve_variables_in_downloadname
($allvariables, $$downloadname, \
$locallanguage);
512 # Work around Windows problems with long pathnames (see issue 50885) by
513 # putting the to-be-archived installation tree into the temp directory
514 # instead of the module output tree (unless LOCALINSTALLDIR dictates
515 # otherwise, anyway); can be removed once issue 50885 is fixed:
516 my $tempinstalldir = $installdir;
517 if ( $installer::globals
::iswindowsbuild
&&
518 $installer::globals
::packageformat
eq "archive" &&
519 !$installer::globals
::localinstalldirset
)
521 $tempinstalldir = File
::Temp
::tempdir
;
524 # Creating subfolder in installdir, which shall become the root of package or zip file
525 my $subfolderdir = "";
526 if ( $packagename ne "" ) { $subfolderdir = $tempinstalldir . $installer::globals
::separator
. $packagename; }
527 else { $subfolderdir = $tempinstalldir; }
529 if ( ! -d
$subfolderdir ) { installer
::systemactions
::create_directory
($subfolderdir); }
531 # Create directories, copy files and ScpActions
533 installer
::logger
::print_message
( "... creating directories ...\n" );
534 installer
::logger
::include_header_into_logfile
("Creating directories:");
536 for ( my $i = 0; $i <= $#{$dirsref}; $i++ )
538 my $onedir = ${$dirsref}[$i];
540 if ( $onedir->{'HostName'} )
542 my $destdir = $subfolderdir . $installer::globals
::separator
. $onedir->{'HostName'};
546 if ( $^O
=~ /cygwin/i ) # Cygwin performance check
548 $infoline = "Try to create directory $destdir\n";
549 push(@installer::globals
::logfileinfo
, $infoline);
550 # Directories in $dirsref are sorted and all parents were added -> "mkdir" works without parent creation!
551 if ( ! ( -d
$destdir )) { mkdir($destdir, 0775); }
555 installer
::systemactions
::create_directory_structure
($destdir);
562 if (( $installer::globals
::strip
) && ( ! $installer::globals
::iswindowsbuild
)) { strip_libraries
($filesref, $languagestringref); }
565 installer
::logger
::print_message
( "... copying files ...\n" );
566 installer
::logger
::include_header_into_logfile
("Copying files:");
568 for ( my $i = 0; $i <= $#{$filesref}; $i++ )
570 my $onefile = ${$filesref}[$i];
572 if (( $onefile->{'Styles'} ) && ( $onefile->{'Styles'} =~ /\bBINARYTABLE_ONLY\b/ )) { next; }
574 my $source = $onefile->{'sourcepath'};
575 my $destination = $onefile->{'destination'};
576 $destination = $subfolderdir . $installer::globals
::separator
. $destination;
578 # Replacing $$ by $ is necessary to install files with $ in its name (back-masquerading)
579 # Otherwise, the following shell command does not work and the file list is not correct
580 $source =~ s/\$\$/\$/;
581 $destination =~ s/\$\$/\$/;
583 if ( $^O
=~ /cygwin/i ) # Cygwin performance, do not use copy_one_file. "chmod -R" at the end
585 my $copyreturn = copy
($source, $destination);
589 $infoline = "Copy: $source to $destination\n";
594 $infoline = "ERROR: Could not copy $source to $destination $!\n";
598 push(@installer::globals
::logfileinfo
, $infoline);
602 installer
::systemactions
::copy_one_file
($source, $destination);
604 if ( ! $installer::globals
::iswindowsbuild
)
607 if ( $onefile->{'UnixRights'} )
609 if ( ! -l
$destination ) # that would be rather pointless
611 chmod oct($onefile->{'UnixRights'}), $destination;
620 installer
::logger
::print_message
( "... creating links ...\n" );
621 installer
::logger
::include_header_into_logfile
("Creating links:");
623 for ( my $i = 0; $i <= $#{$linksref}; $i++ )
625 my $onelink = ${$linksref}[$i];
627 my $destination = $onelink->{'destination'};
628 $destination = $subfolderdir . $installer::globals
::separator
. $destination;
629 my $destinationfile = $onelink->{'destinationfile'};
631 my $localcall = "ln -sf \'$destinationfile\' \'$destination\' \>\/dev\/null 2\>\&1";
634 $infoline = "Creating link: \"ln -sf $destinationfile $destination\"\n";
635 push(@installer::globals
::logfileinfo
, $infoline);
638 for ( my $i = 0; $i <= $#{$unixlinksref}; $i++ )
640 my $onelink = ${$unixlinksref}[$i];
642 my $target = $onelink->{'Target'};
643 my $destination = $subfolderdir . $installer::globals
::separator
. $onelink->{'destination'};
645 my $localcall = "ln -sf \'$target\' \'$destination\' \>\/dev\/null 2\>\&1";
648 $infoline = "Creating Unix link: \"ln -sf $target $destination\"\n";
649 push(@installer::globals
::logfileinfo
, $infoline);
652 # Setting privileges for cygwin globally
654 if ( $^O
=~ /cygwin/i )
656 installer
::logger
::print_message
( "... changing privileges in $subfolderdir ...\n" );
657 installer
::logger
::include_header_into_logfile
("Changing privileges in $subfolderdir:");
659 my $localcall = "chmod -R 755 " . "\"" . $subfolderdir . "\"";
663 installer
::logger
::print_message
( "... removing superfluous directories ...\n" );
664 installer
::logger
::include_header_into_logfile
("Removing superfluous directories:");
666 my $extensionfolder = get_extensions_dir
($subfolderdir);
667 installer
::systemactions
::remove_empty_dirs_in_folder
($extensionfolder);
669 if ( $installer::globals
::compiler
=~ /^unxmacx/ )
671 installer
::worker
::put_scpactions_into_installset
("$installdir/$packagename");
674 # Creating archive file
675 if ( $installer::globals
::packageformat
eq "archive" )
677 create_package
($tempinstalldir, $installdir, $packagename, $allvariables, $includepatharrayref, $languagestringref, $installer::globals
::archiveformat
);
679 elsif ( $installer::globals
::packageformat
eq "dmg" )
681 create_package
($installdir, $installdir, $packagename, $allvariables, $includepatharrayref, $languagestringref, ".dmg");
684 # Analyzing the log file
686 installer
::worker
::clean_output_tree
(); # removing directories created in the output tree
687 installer
::worker
::analyze_and_save_logfile
($loggingdir, $installdir, $installlogdir, $allsettingsarrayref, $languagestringref, $current_install_number);