diff options
author | Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> | 2021-01-22 13:59:39 +0100 |
---|---|---|
committer | Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> | 2021-01-25 12:51:39 +0100 |
commit | cc46ce1b78fe71eb66fc0a09e44f01428a9e4069 (patch) | |
tree | 0bfa32a5e3fb6b86150fd568085571bf50b918eb /solenv | |
parent | 6c4cb4e7e0afce2989c9fe596fd74a35eece6206 (diff) |
fix packaging of mac builds targeting apple silicone
the scpactions are what assemble the dmg (add the license & readme
folders, the background image and the .DS_Store for alignment/the
layout).
Adding the AARCH64 statement is necessary to add the architecture to the
filename.
Change-Id: I0095b8d631cdaa7ce4333fde15dd17d4faf44e8f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109818
Tested-by: Jenkins
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
Diffstat (limited to 'solenv')
-rw-r--r-- | solenv/bin/modules/installer/download.pm | 6 | ||||
-rw-r--r-- | solenv/bin/modules/installer/parameter.pm | 2 | ||||
-rw-r--r-- | solenv/bin/modules/installer/simplepackage.pm | 2 |
3 files changed, 7 insertions, 3 deletions
diff --git a/solenv/bin/modules/installer/download.pm b/solenv/bin/modules/installer/download.pm index 63103816e89f..466bb4433205 100644 --- a/solenv/bin/modules/installer/download.pm +++ b/solenv/bin/modules/installer/download.pm @@ -390,6 +390,10 @@ sub get_download_architecture { $arch = "x86-64"; } + elsif ( $installer::globals::cpuname eq 'AARCH64' ) + { + $arch = "aarch64"; + } return $arch; } @@ -565,7 +569,7 @@ sub resolve_variables_in_downloadname elsif ( $installer::globals::issolarissparcbuild ) { $os = "solsparc"; } elsif ( $installer::globals::issolarisx86build ) { $os = "solia"; } elsif ( $installer::globals::islinuxbuild ) { $os = "linux"; } - elsif ( $installer::globals::platformid eq 'macosx_x86_64' ) { $os = "macosxx"; } + elsif ( $installer::globals::ismacbuild ) { $os = "macosxx"; } else { $os = ""; } $downloadname =~ s/\{os\}/$os/; diff --git a/solenv/bin/modules/installer/parameter.pm b/solenv/bin/modules/installer/parameter.pm index f16259bd9023..8c63a341d34d 100644 --- a/solenv/bin/modules/installer/parameter.pm +++ b/solenv/bin/modules/installer/parameter.pm @@ -269,7 +269,7 @@ sub setglobalvariables } } - if ( $installer::globals::platformid eq 'macosx_x86_64') + if ( $installer::globals::os eq 'MACOSX' ) { $installer::globals::ismacbuild = 1; diff --git a/solenv/bin/modules/installer/simplepackage.pm b/solenv/bin/modules/installer/simplepackage.pm index f449d1c81044..c5b8dd24c44e 100644 --- a/solenv/bin/modules/installer/simplepackage.pm +++ b/solenv/bin/modules/installer/simplepackage.pm @@ -700,7 +700,7 @@ sub create_simple_package my $extensionfolder = get_extensions_dir($subfolderdir); installer::systemactions::remove_empty_dirs_in_folder($extensionfolder); - if ( $installer::globals::platformid eq 'macosx_x86_64' ) + if ( $installer::globals::ismacbuild ) { installer::worker::put_scpactions_into_installset("$installdir/$packagename"); } |