Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tor-browser-build
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
The Tor Project
Applications
tor-browser-build
Commits
d536e6ad
Commit
d536e6ad
authored
Feb 28, 2023
by
Richard Pospesel
Browse files
Options
Downloads
Patches
Plain Diff
Bug 40798: dmg2mar step also takes care of copying the signed+stabled dmg to the signed directory
parent
c6423475
No related branches found
No related tags found
1 merge request
!671
Bug 40798: dmg2mar step also takes care of copying the signed+stabled dmg to the signed directory
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
tools/signing/dmg2mar
+8
-7
8 additions, 7 deletions
tools/signing/dmg2mar
tools/signing/gatekeeper-bundling.sh
+3
-1
3 additions, 1 deletion
tools/signing/gatekeeper-bundling.sh
with
11 additions
and
8 deletions
tools/signing/dmg2mar
+
8
−
7
View file @
d536e6ad
#!/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.
# This script runs `make dmg2mar-release` or `make dmg2mar-alpha`, and assumes
# that the final signed dmgs are deployed to the normal signed directory.
# It should be run after `gatekeeper-bundling.sh`.
set
-e
...
...
@@ -12,19 +11,21 @@ source "$script_dir/functions"
cd
"
$script_dir
/../.."
# some initial checks to make sure directories and file counts are as expected...
version
=
$(
./rbm/rbm showconf 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"
test
-d
"
$signed
_version
_dir
"
||
\
exit_error
"
$signed
_version
_dir
does not exist"
ProjName
=
$(
ProjectName
)
nb_locales
=
$(
echo
$bundle_locales
|
wc
-w
)
nb_bundles
=
$(
ls
-1
"
$
macos_
signed_dir
/
$ProjName
"
-
*
.dmg |
wc
-l
)
nb_bundles
=
$(
ls
-1
"
$signed
_version
_dir
/
$ProjName
"
-
*
.dmg |
wc
-l
)
test
"
$nb_locales
"
-eq
"
$nb_bundles
"
||
\
exit_error
"Wrong number of bundles:
$nb_locales
!=
$nb_bundles
"
mv
-vf
"
$macos_signed_dir
"
/
"
$ProjName
"
-
*
.dmg
"
$signed_version_dir
"
/
# before building converting the dmg to a mar
make
$SIGNING_PROJECTNAME
-dmg2mar-
$tbb_version_type
This diff is collapsed.
Click to expand it.
tools/signing/gatekeeper-bundling.sh
+
3
−
1
View file @
d536e6ad
...
...
@@ -73,5 +73,7 @@ do
$script_dir
/ddmg.sh
$macos_signed_dir
/
$ProjName
-
${
tbb_version
}
-macos_
$lang
.dmg
$tmpdir
/dmg/
"
$Proj_Name
"
rm
-rf
"dmg/
$Proj_Name
.app"
done
rm
-Rf
"
$tmpdir
"
# move the signed+stapled dmgs to expected output directory for publishing and mar generation
mv
-vf
"
$macos_signed_dir
"
/
"
$ProjName
"
-
*
.dmg
"
$signed_version_dir
"
/
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
sign in
to comment