Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Alchemy Viewer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package Registry
Operate
Terraform modules
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
Alchemy Viewer
Alchemy Viewer
Commits
a74b3691
Commit
a74b3691
authored
6 years ago
by
Nat Goodspeed
Browse files
Options
Downloads
Patches
Plain Diff
DRTVWR-474, MAINT-9047: Make viewer_manifest use same bundle name.
parent
65dd3163
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
indra/newview/viewer_manifest.py
+9
-10
9 additions, 10 deletions
indra/newview/viewer_manifest.py
with
9 additions
and
10 deletions
indra/newview/viewer_manifest.py
+
9
−
10
View file @
a74b3691
...
@@ -871,6 +871,9 @@ class Windows_x86_64_Manifest(WindowsManifest):
...
@@ -871,6 +871,9 @@ class Windows_x86_64_Manifest(WindowsManifest):
class
DarwinManifest
(
ViewerManifest
):
class
DarwinManifest
(
ViewerManifest
):
build_data_json_platform
=
'
mac
'
build_data_json_platform
=
'
mac
'
def
app_bundle
(
self
):
return
self
.
app_name
()
+
"
.app
"
def
finish_build_data_dict
(
self
,
build_data_dict
):
def
finish_build_data_dict
(
self
,
build_data_dict
):
build_data_dict
.
update
({
'
Bundle Id
'
:
self
.
args
[
'
bundleid
'
]})
build_data_dict
.
update
({
'
Bundle Id
'
:
self
.
args
[
'
bundleid
'
]})
return
build_data_dict
return
build_data_dict
...
@@ -881,7 +884,10 @@ def is_packaging_viewer(self):
...
@@ -881,7 +884,10 @@ def is_packaging_viewer(self):
def
construct
(
self
):
def
construct
(
self
):
# copy over the build result (this is a no-op if run within the xcode script)
# copy over the build result (this is a no-op if run within the xcode script)
self
.
path
(
os
.
path
.
join
(
self
.
args
[
'
configuration
'
],
"
Second Life.app
"
),
dst
=
""
)
# Second Life.app is what CMake / Xcode builds
# self.app_bundle() is what we ultimately expect to sign and package
self
.
path
(
os
.
path
.
join
(
self
.
args
[
'
configuration
'
],
"
Second Life.app
"
),
dst
=
self
.
app_bundle
())
pkgdir
=
os
.
path
.
join
(
self
.
args
[
'
build
'
],
os
.
pardir
,
'
packages
'
)
pkgdir
=
os
.
path
.
join
(
self
.
args
[
'
build
'
],
os
.
pardir
,
'
packages
'
)
relpkgdir
=
os
.
path
.
join
(
pkgdir
,
"
lib
"
,
"
release
"
)
relpkgdir
=
os
.
path
.
join
(
pkgdir
,
"
lib
"
,
"
release
"
)
...
@@ -930,8 +936,6 @@ def construct(self):
...
@@ -930,8 +936,6 @@ def construct(self):
with
self
.
prefix
(
src
=
pkgdir
,
dst
=
""
):
with
self
.
prefix
(
src
=
pkgdir
,
dst
=
""
):
self
.
path
(
"
ca-bundle.crt
"
)
self
.
path
(
"
ca-bundle.crt
"
)
self
.
path
(
"
SecondLife.nib
"
)
# Translations
# Translations
self
.
path
(
"
English.lproj/language.txt
"
)
self
.
path
(
"
English.lproj/language.txt
"
)
self
.
replace_in
(
src
=
"
English.lproj/InfoPlist.strings
"
,
self
.
replace_in
(
src
=
"
English.lproj/InfoPlist.strings
"
,
...
@@ -1180,8 +1184,6 @@ def package_finish(self):
...
@@ -1180,8 +1184,6 @@ def package_finish(self):
# Copy everything in to the mounted .dmg
# Copy everything in to the mounted .dmg
app_name
=
self
.
app_name
()
# Hack:
# Hack:
# Because there is no easy way to coerce the Finder into positioning
# Because there is no easy way to coerce the Finder into positioning
# the app bundle in the same place with different app names, we are
# the app bundle in the same place with different app names, we are
...
@@ -1195,7 +1197,7 @@ def package_finish(self):
...
@@ -1195,7 +1197,7 @@ def package_finish(self):
if
not
os
.
path
.
exists
(
self
.
src_path_of
(
dmg_template
)):
if
not
os
.
path
.
exists
(
self
.
src_path_of
(
dmg_template
)):
dmg_template
=
os
.
path
.
join
(
'
installers
'
,
'
darwin
'
,
'
release-dmg
'
)
dmg_template
=
os
.
path
.
join
(
'
installers
'
,
'
darwin
'
,
'
release-dmg
'
)
for
s
,
d
in
{
self
.
get_dst_prefix
():
app_name
+
"
.app
"
,
for
s
,
d
in
{
self
.
get_dst_prefix
():
self
.
app_bundle
()
,
os
.
path
.
join
(
dmg_template
,
"
_VolumeIcon.icns
"
):
"
.VolumeIcon.icns
"
,
os
.
path
.
join
(
dmg_template
,
"
_VolumeIcon.icns
"
):
"
.VolumeIcon.icns
"
,
os
.
path
.
join
(
dmg_template
,
"
background.jpg
"
):
"
background.jpg
"
,
os
.
path
.
join
(
dmg_template
,
"
background.jpg
"
):
"
background.jpg
"
,
os
.
path
.
join
(
dmg_template
,
"
_DS_Store
"
):
"
.DS_Store
"
}.
items
():
os
.
path
.
join
(
dmg_template
,
"
_DS_Store
"
):
"
.DS_Store
"
}.
items
():
...
@@ -1238,7 +1240,7 @@ def package_finish(self):
...
@@ -1238,7 +1240,7 @@ def package_finish(self):
# the signature are preserved; moving the files using python will leave them behind
# the signature are preserved; moving the files using python will leave them behind
# and invalidate the signatures.
# and invalidate the signatures.
if
'
signature
'
in
self
.
args
:
if
'
signature
'
in
self
.
args
:
app_in_dmg
=
os
.
path
.
join
(
volpath
,
self
.
app_
name
()
+
"
.app
"
)
app_in_dmg
=
os
.
path
.
join
(
volpath
,
self
.
app_
bundle
()
)
print
"
Attempting to sign
'
%s
'"
%
app_in_dmg
print
"
Attempting to sign
'
%s
'"
%
app_in_dmg
identity
=
self
.
args
[
'
signature
'
]
identity
=
self
.
args
[
'
signature
'
]
if
identity
==
''
:
if
identity
==
''
:
...
@@ -1293,9 +1295,6 @@ def package_finish(self):
...
@@ -1293,9 +1295,6 @@ def package_finish(self):
raise
raise
self
.
run_command
([
'
spctl
'
,
'
-a
'
,
'
-texec
'
,
'
-vv
'
,
app_in_dmg
])
self
.
run_command
([
'
spctl
'
,
'
-a
'
,
'
-texec
'
,
'
-vv
'
,
app_in_dmg
])
imagename
=
"
SecondLife_
"
+
'
_
'
.
join
(
self
.
args
[
'
version
'
])
finally
:
finally
:
# Unmount the image even if exceptions from any of the above
# Unmount the image even if exceptions from any of the above
self
.
run_command
([
'
hdiutil
'
,
'
detach
'
,
'
-force
'
,
devfile
])
self
.
run_command
([
'
hdiutil
'
,
'
detach
'
,
'
-force
'
,
devfile
])
...
...
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