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
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
The Tor Project
Applications
tor-browser-build
Commits
a22a592f
You need to sign in or sign up before continuing.
Unverified
Commit
a22a592f
authored
2 years ago
by
boklm
Browse files
Options
Downloads
Patches
Plain Diff
Bug 40790: Fix dmg2mar after dmg changes from
#28124
parent
df53997e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!661
Bug 40790: Fix dmg2mar after dmg changes from #28124
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tools/dmg2mar
+5
-3
5 additions, 3 deletions
tools/dmg2mar
with
5 additions
and
3 deletions
tools/dmg2mar
+
5
−
3
View file @
a22a592f
...
...
@@ -128,9 +128,11 @@ sub convert_files {
my
$oldmar
=
getcwd
.
'
/
'
.
$output
;
exit_error
"
Error extracting
$output
"
unless
system
('
mar
',
'
-C
',
$tmpdir_oldmar
,
'
-x
',
$oldmar
)
==
0
;
my
$appdir
=
"
$tmpdir
/
$appname
/
$appname
.app
";
exit_error
"
Missing directory
$appdir
"
unless
-
d
$appdir
;
my
$wanted
=
sub
{
my
$file
=
$
File::Find::
name
;
$file
=~
s{^$
tm
pdir/
$appname\.app/
}{}
;
$file
=~
s{^$
ap
pdir/}{}
;
if
(
-
f
"
$tmpdir_oldmar
/
$file
")
{
my
(
undef
,
undef
,
$mode
)
=
stat
("
$tmpdir_oldmar
/
$file
");
chmod
$mode
,
$
File::Find::
name
;
...
...
@@ -139,14 +141,14 @@ sub convert_files {
chmod
0644
,
$
File::Find::
name
if
-
f
$
File::Find::
name
;
chmod
0755
,
$
File::Find::
name
if
-
d
$
File::Find::
name
;
};
find
(
$wanted
,
"
$tmpdir
/
$appname
.app
"
);
find
(
$wanted
,
$appdir
);
unlink
$output
;
local
$ENV
{
MOZ_PRODUCT_VERSION
}
=
$file
->
{
version
};
local
$ENV
{
MAR_CHANNEL_ID
}
=
"
torbrowser-torproject-
$channel
";
local
$ENV
{
TMPDIR
}
=
$tmpdir
;
(
undef
,
$err
,
$success
)
=
capture_exec
('
make_full_update.sh
',
'
-q
',
$output
,
"
$tmpdir
/
$appname
.app
"
);
$output
,
$appdir
);
exit_error
"
Error updating
$output
:
$err
"
unless
$success
;
exit_error
"
make_full_update.sh failed.
$output
does not exist.
"
unless
-
f
$output
;
...
...
This diff is collapsed.
Click to expand it.
boklm
@boklm
mentioned in commit
f50bc8b7
·
2 years ago
mentioned in commit
f50bc8b7
mentioned in commit f50bc8b7ad3548161f5c7d2ea00c8d1895049bd6
Toggle commit list
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
register
or
sign in
to comment