Scott Lawrence avatar Scott Lawrence committed 50c31aa

fix path choice for project branches, attempt to fix linux icon

Comments (0)

Files changed (6)

Add a comment to this file

indra/newview/icons/beta/secondlife_256.BMP

Added
New image
Add a comment to this file

indra/newview/icons/development/secondlife_256.BMP

Added
New image
Add a comment to this file

indra/newview/icons/project/secondlife_256.BMP

Added
New image
Add a comment to this file

indra/newview/icons/release/secondlife_256.BMP

Added
New image
Add a comment to this file

indra/newview/icons/test/secondlife_256.BMP

Added
New image

indra/newview/viewer_manifest.py

         channel_type=self.channel_lowerword()
         if channel_type == 'release' \
         or channel_type == 'beta' \
-        or channel_type == 'project' \
         or channel_type == 'development' \
         :
             icon_path += channel_type
+        elif re.match('project.*',channel_type) :
+            icon_path += 'project'
         else :
             icon_path += 'test'
         return icon_path
 
                 icon_path = self.icon_path()
                 if self.prefix(src=icon_path, dst="") :
-                    test_path = os.path.join(self.get_src_prefix(), "secondlife.icns")
-                    if os.path.exists(test_path) :
-                        self.path("secondlife.icns")
-                    else :
-                        raise Exception("Icon not found '%s'" % test_path)
+                    self.path("secondlife.icns")
                     self.end_prefix(icon_path)
 
                 self.path("SecondLife.nib")
     def construct(self):
         super(LinuxManifest, self).construct()
         self.path("licenses-linux.txt","licenses.txt")
-        icon_path = self.icon_path()
-        if self.prefix(src=icon_path, dst="") :
-            test_path = os.path.join(self.get_src_prefix(), "secondlife_256.png")
-            if os.path.exists(test_path) :
-                self.path("secondlife_256.png","secondlife_icon.png")
-            else :
-                raise Exception("Icon not found '%s'" % test_path)
-            self.end_prefix(icon_path)
         if self.prefix("linux_tools", dst=""):
             self.path("client-readme.txt","README-linux.txt")
             self.path("client-readme-voice.txt","README-linux-voice.txt")
             # recurse
             self.end_prefix("res-sdl")
 
+        # Get the icons based on the channel
+        icon_path = self.icon_path()
+        if self.prefix(src=icon_path, dst="") :
+            self.path("secondlife_256.png","secondlife_icon.png")
+            if self.prefix(src="",dst="res-sdl") :
+                self.path("secondlife_256.BMP","ll_icon.BMP")
+                self.end_prefix("res-sdl")
+            self.end_prefix(icon_path)
+
         self.path("../viewer_components/updater/scripts/linux/update_install", "bin/update_install")
 
         # plugins
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.