Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
The Tor Project
Applications
tor-browser-build
Commits
655fd49f
Unverified
Commit
655fd49f
authored
Mar 07, 2022
by
boklm
Browse files
Bug 40414: Add tools/signing/dmg2mar
parent
ed8709b2
Changes
1
Hide whitespace changes
Inline
Side-by-side
tools/signing/dmg2mar
0 → 100755
View file @
655fd49f
#!/bin/bash
# This script runs `make dmg2mar-release` or `make dmg2mar-alpha`, after
# moving the signed dmg files from the $tbb_version-macos-signed directory
# to the normal signed directory.
# It should be run after `gatekeeper-bundling.sh`.
set
-e
script_dir
=
$(
cd
--
"
$(
dirname
--
"
${
BASH_SOURCE
[0]
}
"
)
"
&> /dev/null
&&
pwd
)
source
"
$script_dir
/functions"
cd
"
$script_dir
/../.."
version
=
$(
./rbm/rbm showconf tor-browser
--target
alpha
--target
torbrowser-linux-x86_64 var/torbrowser_version
)
test
"
$version
"
=
"
$tbb_version
"
||
\
exit_error
"Incorrect tor browser version:
$version
!=
$tbb_version
"
test
-d
"
$macos_signed_dir
"
||
\
exit_error
"
$macos_signed_dir
does not exist"
nb_locales
=
$(
echo
$bundle_locales
|
wc
-w
)
nb_bundles
=
$(
ls
-1
"
$macos_signed_dir
"
/TorBrowser-
*
.dmg |
wc
-l
)
test
"
$nb_locales
"
-eq
"
$nb_bundles
"
||
\
exit_error
"Wrong number of bundles:
$nb_locales
!=
$nb_bundles
"
mv
-vf
"
$macos_signed_dir
"
/TorBrowser-
*
.dmg
"
$signed_version_dir
"
/
make dmg2mar-
$tbb_version_type
boklm
@boklm
mentioned in issue
#40414 (closed)
·
May 10, 2022
mentioned in issue
#40414 (closed)
mentioned in issue #40414
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment