Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
XDG Integration
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Silent mode is enabled
All outbound communications are blocked.
Learn more
.
Show more breadcrumbs
JennaHuntsman
XDG Integration
Commits
c532e307
Commit
c532e307
authored
6 years ago
by
Nat Goodspeed
Browse files
Options
Downloads
Patches
Plain Diff
DRTVWR-447: Re-inject BugsplatServerURL into Mac's Info.plist.
parent
b4bc7f7c
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
indra/newview/viewer_manifest.py
+13
-28
13 additions, 28 deletions
indra/newview/viewer_manifest.py
with
13 additions
and
28 deletions
indra/newview/viewer_manifest.py
+
13
−
28
View file @
c532e307
...
...
@@ -909,6 +909,19 @@ def construct(self):
debpkgdir
=
os
.
path
.
join
(
pkgdir
,
"
lib
"
,
"
debug
"
)
with
self
.
prefix
(
src
=
""
,
dst
=
"
Contents
"
):
# everything goes in Contents
bugsplat_db
=
self
.
args
.
get
(
'
bugsplat
'
)
if
bugsplat_db
:
# Inject BugsplatServerURL into Info.plist if provided.
Info_plist
=
self
.
dst_path_of
(
"
Info.plist
"
)
Info
=
plistlib
.
readPlist
(
Info_plist
)
# https://www.bugsplat.com/docs/platforms/os-x#configuration
Info
[
"
BugsplatServerURL
"
]
=
\
"
https://{}.bugsplat.com/
"
.
format
(
bugsplat_db
)
self
.
put_in_file
(
plistlib
.
writePlistToString
(
Info
),
os
.
path
.
basename
(
Info_plist
),
"
Info.plist
"
)
# CEF framework goes inside Contents/Frameworks.
# Remember where we parked this car.
with
self
.
prefix
(
src
=
""
,
dst
=
"
Frameworks
"
):
...
...
@@ -1319,34 +1332,6 @@ def package_finish(self):
else
:
print
>>
sys
.
stderr
,
"
Maximum codesign attempts exceeded; giving up
"
raise
print
72
*
'
=
'
import
stat
print
app_in_dmg
# Second Life.app
for
sub0
in
os
.
listdir
(
app_in_dmg
):
print
'
--{}
'
.
format
(
sub0
)
path0
=
os
.
path
.
join
(
app_in_dmg
,
sub0
)
if
os
.
path
.
isfile
(
path0
):
# shouldn't be any file here
with
open
(
path0
)
as
inf
:
for
line
in
inf
:
print
'
{}
'
.
format
(
line
.
rstrip
())
elif
os
.
path
.
isdir
(
path0
):
# Contents
for
sub1
in
os
.
listdir
(
path0
):
print
'
----{}
'
.
format
(
sub1
)
path1
=
os
.
path
.
join
(
path0
,
sub1
)
if
os
.
path
.
isfile
(
path1
):
# Info.plist, PkgInfo
with
open
(
path1
)
as
inf
:
for
line
in
inf
:
print
'
{}
'
.
format
(
line
.
rstrip
())
elif
os
.
path
.
isdir
(
path1
):
# Frameworks, MacOS, Resources
for
sub2
in
os
.
listdir
(
path1
):
path2
=
os
.
path
.
join
(
path1
,
sub2
)
print
'
{:04o} {}
'
.
format
(
stat
.
S_IMODE
(
os
.
stat
(
path2
).
st_mode
),
sub2
)
print
72
*
'
=
'
self
.
run_command
([
'
spctl
'
,
'
-a
'
,
'
-texec
'
,
'
-vvvv
'
,
app_in_dmg
])
finally
:
...
...
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
register
or
sign in
to comment