Skip to content
Snippets Groups Projects
Commit 13b77e36 authored by Mark Palange (Mani)'s avatar Mark Palange (Mani)
Browse files

CHOP-179 Linux install uses linux-updater. Rev. by Alain

parent 3e95634a
No related branches found
No related tags found
No related merge requests found
...@@ -247,13 +247,12 @@ def construct(self): ...@@ -247,13 +247,12 @@ def construct(self):
self.disable_manifest_check() self.disable_manifest_check()
self.path("../viewer_components/updater/scripts/windows/update_install.bat")
# Get shared libs from the shared libs staging directory # Get shared libs from the shared libs staging directory
if self.prefix(src=os.path.join(os.pardir, 'sharedlibs', self.args['configuration']), if self.prefix(src=os.path.join(os.pardir, 'sharedlibs', self.args['configuration']),
dst=""): dst=""):
if self.prefix(src="../../viewer_components/updater", dst=""):
self.path("update_install.bat")
self.end_prefix()
self.enable_crt_manifest_check() self.enable_crt_manifest_check()
...@@ -575,12 +574,8 @@ def construct(self): ...@@ -575,12 +574,8 @@ def construct(self):
# copy additional libs in <bundle>/Contents/MacOS/ # copy additional libs in <bundle>/Contents/MacOS/
self.path("../../libraries/universal-darwin/lib_release/libndofdev.dylib", dst="MacOS/libndofdev.dylib") self.path("../../libraries/universal-darwin/lib_release/libndofdev.dylib", dst="MacOS/libndofdev.dylib")
if self.prefix(src="../viewer_components/updater", dst="MacOS"):
self.path("update_install")
self.end_prefix()
self.path("../viewer_components/updater/scripts/darwin/update_install", "MacOS/update_install")
# most everything goes in the Resources directory # most everything goes in the Resources directory
if self.prefix(src="", dst="Resources"): if self.prefix(src="", dst="Resources"):
...@@ -857,6 +852,8 @@ def construct(self): ...@@ -857,6 +852,8 @@ def construct(self):
# recurse # recurse
self.end_prefix("res-sdl") self.end_prefix("res-sdl")
self.path("../viewer_components/updater/scripts/linux/update_install", "bin/update_install")
# plugins # plugins
if self.prefix(src="", dst="bin/llplugin"): if self.prefix(src="", dst="bin/llplugin"):
self.path("../media_plugins/webkit/libmedia_plugin_webkit.so", "libmedia_plugin_webkit.so") self.path("../media_plugins/webkit/libmedia_plugin_webkit.so", "libmedia_plugin_webkit.so")
......
...@@ -80,25 +80,3 @@ set(UPDATER_LIBRARIES ...@@ -80,25 +80,3 @@ set(UPDATER_LIBRARIES
llupdaterservice llupdaterservice
CACHE INTERNAL "" CACHE INTERNAL ""
) )
# Copy install script.
if(DARWIN)
copy_if_different(
"${CMAKE_CURRENT_SOURCE_DIR}/scripts/darwin"
"${CMAKE_CURRENT_BINARY_DIR}"
update_installer_targets
"update_install"
)
elseif(WINDOWS)
copy_if_different(
"${CMAKE_CURRENT_SOURCE_DIR}/scripts/windows"
"${CMAKE_CURRENT_BINARY_DIR}"
update_installer_targets
"update_install.bat"
)
endif()
add_custom_target(copy_update_install ALL DEPENDS ${update_installer_targets})
add_dependencies(llupdaterservice copy_update_install)
\ No newline at end of file
...@@ -353,9 +353,11 @@ void LLUpdaterServiceImpl::downloadComplete(LLSD const & data) ...@@ -353,9 +353,11 @@ void LLUpdaterServiceImpl::downloadComplete(LLSD const & data)
void LLUpdaterServiceImpl::downloadError(std::string const & message) void LLUpdaterServiceImpl::downloadError(std::string const & message)
{ {
LL_INFOS("UpdaterService") << "Error downloading: " << message << LL_ENDL;
mIsDownloading = false; mIsDownloading = false;
// Restart the // Restart the timer on error
if(mIsChecking) if(mIsChecking)
{ {
restartTimer(mCheckPeriod); restartTimer(mCheckPeriod);
...@@ -365,7 +367,7 @@ void LLUpdaterServiceImpl::downloadError(std::string const & message) ...@@ -365,7 +367,7 @@ void LLUpdaterServiceImpl::downloadError(std::string const & message)
void LLUpdaterServiceImpl::restartTimer(unsigned int seconds) void LLUpdaterServiceImpl::restartTimer(unsigned int seconds)
{ {
LL_INFOS("UpdaterService") << "will check for update again in " << LL_INFOS("UpdaterService") << "will check for update again in " <<
mCheckPeriod << " seconds" << LL_ENDL; seconds << " seconds" << LL_ENDL;
mTimer.start(); mTimer.start();
mTimer.setTimerExpirySec(seconds); mTimer.setTimerExpirySec(seconds);
LLEventPumps::instance().obtain("mainloop").listen( LLEventPumps::instance().obtain("mainloop").listen(
......
#! /bin/bash
INSTALL_DIR=$(cd "$(dirname $0)/.." ; pwd)
export LD_LIBRARY_PATH=$INSTALL_DIR/lib
bin/linux-updater.bin --file "$1" --dest "$INSTALL_DIR" --name "Second Life Viewer 2" --stringsdir "$INSTALL_DIR/skins/default/xui/en" --stringsfile "strings.xml"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment