Kaydet (Commit) 26d77cee authored tarafından Andras Timar's avatar Andras Timar

Collabora Office OS X packaging

- added EULA (sla.r) in special OS X resource fork format
- added volume icon which does not work ATM, TODO later
- new dmg background image and adjusted .DS_Store
- fixes to tolerate space in app bundle name

Change-Id: I3f341bfcd5bea88681e57b314f6069be107c5c2b
üst 08f328e2
...@@ -68,6 +68,13 @@ ScpAction scp_Copy_Dmg_Background_Image ...@@ -68,6 +68,13 @@ ScpAction scp_Copy_Dmg_Background_Image
Subdir = ".background"; Subdir = ".background";
End End
ScpAction scp_Copy_Dmg_Volume_Icon
Copy = "VolumeIcon.icns";
Name = ".VolumeIcon.icns";
UnixRights = 444;
Styles = ();
End
ScpAction scp_Copy_Ds_Store ScpAction scp_Copy_Ds_Store
Copy = "DS_Store"; Copy = "DS_Store";
DevVersionCopy = "DS_Store_Dev"; DevVersionCopy = "DS_Store_Dev";
......
This source diff could not be displayed because it is too large. You can view the blob instead.
#!/bin/bash #!/bin/bash -x
# Script to sign executables, dylibs and frameworks in an app bundle # Script to sign executables, dylibs and frameworks in an app bundle
# plus the bundle itself. Called from # plus the bundle itself. Called from
...@@ -69,7 +69,7 @@ while read app; do ...@@ -69,7 +69,7 @@ while read app; do
fn=`basename "$app"` fn=`basename "$app"`
fn=${fn%.*} fn=${fn%.*}
# Assume the app has a XML (and not binary) Info.plist # Assume the app has a XML (and not binary) Info.plist
id=`grep -A 1 '<key>CFBundleIdentifier</key>' $app/Contents/Info.plist | tail -1 | sed -e 's,.*<string>,,' -e 's,</string>.*,,'` id=`grep -A 1 '<key>CFBundleIdentifier</key>' "$app/Contents/Info.plist" | tail -1 | sed -e 's,.*<string>,,' -e 's,</string>.*,,'`
codesign --verbose --identifier=$id --sign "$MACOSX_CODESIGNING_IDENTITY" $entitlements "$app" codesign --verbose --identifier=$id --sign "$MACOSX_CODESIGNING_IDENTITY" $entitlements "$app"
done done
...@@ -82,7 +82,7 @@ while read framework; do ...@@ -82,7 +82,7 @@ while read framework; do
for version in "$framework"/Versions/*; do for version in "$framework"/Versions/*; do
if test ! -L "$version" -a -d "$version"; then if test ! -L "$version" -a -d "$version"; then
# Assume the framework has a XML (and not binary) Info.plist # Assume the framework has a XML (and not binary) Info.plist
id=`grep -A 1 '<key>CFBundleIdentifier</key>' $version/Resources/Info.plist | tail -1 | sed -e 's,.*<string>,,' -e 's,</string>.*,,'` id=`grep -A 1 '<key>CFBundleIdentifier</key>' "$version/Resources/Info.plist" | tail -1 | sed -e 's,.*<string>,,' -e 's,</string>.*,,'`
codesign --verbose --identifier=$id --sign "$MACOSX_CODESIGNING_IDENTITY" "$version" codesign --verbose --identifier=$id --sign "$MACOSX_CODESIGNING_IDENTITY" "$version"
fi fi
done done
......
...@@ -282,7 +282,7 @@ sub create_package ...@@ -282,7 +282,7 @@ sub create_package
if ( ! $allvariables->{'HIDELICENSEDIALOG'} ) if ( ! $allvariables->{'HIDELICENSEDIALOG'} )
{ {
installer::scriptitems::get_sourcepath_from_filename_and_includepath( \$sla, $includepatharrayref, 0); $ref = installer::scriptitems::get_sourcepath_from_filename_and_includepath( \$sla, $includepatharrayref, 0);
} }
my $localtempdir = $tempdir; my $localtempdir = $tempdir;
...@@ -393,9 +393,12 @@ sub create_package ...@@ -393,9 +393,12 @@ sub create_package
chdir $localfrom; chdir $localfrom;
} }
elsif ($volume_name_classic_app eq 'LibreOffice' || $volume_name_classic_app eq 'LibreOfficeDev') elsif ($volume_name_classic_app eq 'Collabora Office')
{ {
my $subdir = "$tempdir/$packagename/$volume_name_classic_app.app/Contents/Resources"; my $oldappdir = "$tempdir/$packagename/CollaboraOffice.app";
my $newappdir = "$tempdir/$packagename/Collabora Office.app";
installer::systemactions::rename_directory($oldappdir,$newappdir);
my $subdir = "$newappdir/Contents/Resources";
if ( ! -d $subdir ) { installer::systemactions::create_directory($subdir); } if ( ! -d $subdir ) { installer::systemactions::create_directory($subdir); }
# iterate over OS X localizations # iterate over OS X localizations
foreach $lang ("ca", "cs", "da", "de", "el", "en", "es", "fi", "fr", "hr", "hu", "id", "it", "ja", "ko", "ms", "nl", "no", "pl", "pt", "pt_PT", "ro", "ru", "sk", "sv", "th", "tr", "uk", "vi", "zh_CN", "zh_TW") foreach $lang ("ca", "cs", "da", "de", "el", "en", "es", "fi", "fr", "hr", "hu", "id", "it", "ja", "ko", "ms", "nl", "no", "pl", "pt", "pt_PT", "ro", "ru", "sk", "sv", "th", "tr", "uk", "vi", "zh_CN", "zh_TW")
...@@ -404,7 +407,8 @@ sub create_package ...@@ -404,7 +407,8 @@ sub create_package
} }
if ( defined($ENV{'MACOSX_CODESIGNING_IDENTITY'}) && $ENV{'MACOSX_CODESIGNING_IDENTITY'} ne "" ) if ( defined($ENV{'MACOSX_CODESIGNING_IDENTITY'}) && $ENV{'MACOSX_CODESIGNING_IDENTITY'} ne "" )
{ {
$systemcall = "$ENV{'SRCDIR'}/solenv/bin/macosx-codesign-app-bundle $localtempdir/$folder/$volume_name_classic_app.app"; $newappdir =~ s/ /\\ /g;
$systemcall = "$ENV{'SRCDIR'}/solenv/bin/macosx-codesign-app-bundle $newappdir";
print "... $systemcall ...\n"; print "... $systemcall ...\n";
my $returnvalue = system($systemcall); my $returnvalue = system($systemcall);
$infoline = "Systemcall: $systemcall\n"; $infoline = "Systemcall: $systemcall\n";
...@@ -425,7 +429,7 @@ sub create_package ...@@ -425,7 +429,7 @@ sub create_package
$systemcall = "cd $localtempdir && hdiutil create -srcfolder $folder $archive -ov -fs HFS+ -volname \"$volume_name\" -format UDBZ"; $systemcall = "cd $localtempdir && hdiutil create -srcfolder $folder $archive -ov -fs HFS+ -volname \"$volume_name\" -format UDBZ";
if (( $ref ne "" ) && ( $$ref ne "" )) { if (( $ref ne "" ) && ( $$ref ne "" )) {
$systemcall .= " && hdiutil unflatten $archive && Rez -a $$ref -o $archive && hdiutil flatten $archive &&"; $systemcall .= " && hdiutil unflatten $archive && Rez -a $$ref -o $archive && hdiutil flatten $archive";
} }
} }
else else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment