Skip to content
Snippets Groups Projects
Unverified Commit 7431ad67 authored by boklm's avatar boklm
Browse files

Bug 40067: Rename osx64 mar and dmg files to macos

The new macos mar and dmg files contain both x86_64 and aarch64 builds
for macOS.

In projects/release/update_responses_config.yml and
tools/signing/nightly/update-responses-base-config.yml we update the
build_target to mar_osname mapping to use `macos` instead of `osx64`.
We also add the new aarch64 build_target (Darwin_aarch64-gcc3).

We update update_responses to take into account the new dmg file
names using `macos` instead of `osx64`.

We also update tools/dmg2mar and various signing scripts for the
`osx64 -> macos` change in both mar files and dmg files.
parent ea8a1620
No related branches found
No related tags found
No related merge requests found
......@@ -28,7 +28,7 @@ targets:
mar_osname: linux64
osx:
var:
mar_osname: osx64
mar_osname: macos
arch_deps:
- genisoimage
- faketime
......
......@@ -2,7 +2,7 @@
tmp_dir: '[% c("tmp_dir") %]'
create_downloads_json: 1
appname_marfile: tor-browser
appname_bundle_osx: TorBrowser
appname_bundle_macos: TorBrowser
appname_bundle_linux: tor-browser
appname_bundle_win32: torbrowser-install
appname_bundle_win64: torbrowser-install-win64
......@@ -20,7 +20,9 @@ build_targets:
- WINNT_x86-gcc3-x86
- WINNT_x86-gcc3-x64
win64: WINNT_x86_64-gcc3-x64
osx64: Darwin_x86_64-gcc3
macos:
- Darwin_x86_64-gcc3
- Darwin_aarch64-gcc3
channels:
[% c('var/channel') %]: [% c("var/torbrowser_version") %]
versions:
......@@ -41,7 +43,7 @@ versions:
migrate_langs:
minSupportedInstructionSet: SSE2
# minSupportedOsVersion on macOS corresponds to the Darwin version ( https://en.wikipedia.org/wiki/Darwin_(operating_system) )
osx64:
macos:
# macOS v10.12.0
minSupportedOSVersion: 16.0.0
# minSupportedOsVersion on Windows corresponds to the operating system version ( https://docs.microsoft.com/en-us/windows/win32/sysinfo/operating-system-version )
......
......@@ -96,7 +96,7 @@ sub get_dmg_files_from_sha256sums {
foreach my $line (read_file('sha256sums-unsigned-build.txt')) {
my (undef, $filename) = split ' ', $line;
chomp $filename;
next unless $filename =~ m/^$appname_dmg-(.+)-osx64_(.+)\.dmg$/;
next unless $filename =~ m/^$appname_dmg-(.+)-macos_(.+)\.dmg$/;
push @files, { filename => $filename, version => $1, lang => $2 };
}
return @files;
......@@ -111,7 +111,7 @@ sub convert_files {
# internally on OSX, but the dmg file still uses 'ja' to avoid
# confusing users.
my $mar_lang = $file->{lang} eq 'ja' ? 'ja-JP-mac' : $file->{lang};
my $output = "$appname_mar-osx64-$file->{version}_$mar_lang.mar";
my $output = "$appname_mar-macos-$file->{version}_$mar_lang.mar";
my $step_name = "$file->{filename} -> $output";
print "Starting $step_name\n";
$pm->start($step_name) and next;
......@@ -160,7 +160,7 @@ sub remove_incremental_mars {
foreach my $line (read_file('sha256sums-unsigned-build.incrementals.txt')) {
my (undef, $filename) = split ' ', $line;
chomp $filename;
next unless $filename =~ m/^$appname_mar-osx64.+\.incremental\.mar$/;
next unless $filename =~ m/^$appname_mar-macos.+\.incremental\.mar$/;
next unless -f $filename;
print "Removing $filename\n";
unlink $filename;
......
......@@ -124,7 +124,7 @@ for f in *.mar; do
then
not_reproduced_mars=$((not_reproduced_mars + 1))
case "$f" in
*osx64*)
*macos*)
not_reproduced_mars_expected=$((not_reproduced_mars_expected + 1))
;;
*) echo "$f does not have the SHA-256 sum of the unsigned MAR file!"
......
......@@ -13,9 +13,9 @@ if [ "$#" -ne 4 ]; then
exit
fi
INSTALL_PLATFORMS="tor-browser-linux32-${VERSION}_\*.tar.xz tor-browser-linux64-${VERSION}_\*.tar.xz torbrowser-install-${VERSION}_\*.exe torbrowser-install-win64-${VERSION}_\*.exe TorBrowser-${VERSION}-osx64_\*.dmg"
INSTALL_PLATFORMS="tor-browser-linux32-${VERSION}_\*.tar.xz tor-browser-linux64-${VERSION}_\*.tar.xz torbrowser-install-${VERSION}_\*.exe torbrowser-install-win64-${VERSION}_\*.exe TorBrowser-${VERSION}-macos_\*.dmg"
MAR_PLATFORMS="linux32 linux64 win32 win64 osx64"
MAR_PLATFORMS="linux32 linux64 win32 win64 macos"
MAR_TOOLS_PLATFORMS="linux32 linux64 win32 win64 mac64"
total_count=0
......
......@@ -62,7 +62,7 @@ do
cd $tmpdir/dmg
unzip -q $macos_stapled_dir/tb-${tbb_version}_$lang-stapled.zip
cd ..
$script_dir/ddmg.sh $macos_signed_dir/TorBrowser-${tbb_version}-osx64_$lang.dmg $tmpdir/dmg/
$script_dir/ddmg.sh $macos_signed_dir/TorBrowser-${tbb_version}-macos_$lang.dmg $tmpdir/dmg/
rm -rf 'dmg/Tor Browser.app'
done
......
......@@ -67,7 +67,7 @@ do
echo "DMG already mounted. Please correct."
exit 1
fi
hdiutil attach TorBrowser-${tbb_version}-osx64_$LANG.dmg
hdiutil attach TorBrowser-${tbb_version}-macos_$LANG.dmg
cp -rf "/Volumes/Tor Browser/Tor Browser.app" "Tor Browser.app"
echo "Signing Tor Browser_$LANG.app"
codesign -vvv --deep -o runtime --entitlements="$ENTITLEMENTS" --timestamp -f -s "Developer ID Application: The Tor Project, Inc (MADPSAYN6T)" "Tor Browser.app/"
......
......@@ -10,8 +10,9 @@ build_targets:
- WINNT_x86-gcc3-x86
- WINNT_x86-gcc3-x64
win64: WINNT_x86_64-gcc3-x64
osx32: Darwin_x86-gcc3
osx64: Darwin_x86_64-gcc3
macos:
- Darwin_x86_64-gcc3
- Darwin_aarch64-gcc3
channels:
nightly: nightly_version
versions:
......@@ -21,10 +22,8 @@ versions:
migrate_langs:
pt-PT: pt-BR
minSupportedInstructionSet: SSE2
osx32:
minSupportedOSVersion: 13.0.0
osx64:
minSupportedOSVersion: 13.0.0
macos:
minSupportedOSVersion: 16.0.0
win32:
minSupportedOSVersion: 6.1
win64:
......
......@@ -133,8 +133,8 @@ sub get_version_downloads {
foreach my $file (readdir $d) {
next unless -f "$vdir/$file";
my ($os, $lang);
if ($file =~ m/^$config->{appname_bundle_osx}-$version-osx64_(.+).dmg$/) {
($os, $lang) = ('osx64', $1);
if ($file =~ m/^$config->{appname_bundle_macos}-$version-macos_(.+).dmg$/) {
($os, $lang) = ('macos', $1);
} elsif ($file =~ m/^$config->{appname_bundle_linux}-(linux32|linux64)-${version}_(.+).tar.xz$/) {
($os, $lang) = ($1, $2);
} elsif ($file =~ m/^$config->{appname_bundle_win64}-${version}_(.+).exe$/) {
......@@ -220,7 +220,7 @@ sub create_incremental_mar {
extract_mar(mar_filename($config, $appname, $new_version, $os, $lang),
"$tmpdir/B", $mar_c_new);
# bug 26054: make sure previous macOS version is code signed
if (!$ENV{NO_CODESIGNATURE} && ($os eq 'osx64')
if (!$ENV{NO_CODESIGNATURE} && ($os eq 'macos')
&& ! -f "$tmpdir/A/Contents/_CodeSignature/CodeResources") {
exit_error "Missing code signature in $from_version while creating $mar_file";
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment