Skip to content
Snippets Groups Projects
Commit 590e35a6 authored by Andrew A. de Laix's avatar Andrew A. de Laix
Browse files
parents 656b9369 8c9b707d
No related branches found
No related tags found
No related merge requests found
...@@ -575,6 +575,10 @@ def construct(self): ...@@ -575,6 +575,10 @@ def construct(self):
# 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"):
super(DarwinManifest, self).construct() super(DarwinManifest, self).construct()
if self.prefix(src="../viewer_components/updater", dst=""):
self.path("update_install")
self.end_prefix()
if self.prefix("cursors_mac"): if self.prefix("cursors_mac"):
self.path("*.tif") self.path("*.tif")
......
...@@ -6,6 +6,7 @@ include(00-Common) ...@@ -6,6 +6,7 @@ include(00-Common)
if(LL_TESTS) if(LL_TESTS)
include(LLAddBuildTest) include(LLAddBuildTest)
endif(LL_TESTS) endif(LL_TESTS)
include(CMakeCopyIfDifferent)
include(CURL) include(CURL)
include(LLCommon) include(LLCommon)
include(LLMessage) include(LLMessage)
...@@ -24,12 +25,14 @@ set(updater_service_SOURCE_FILES ...@@ -24,12 +25,14 @@ set(updater_service_SOURCE_FILES
llupdaterservice.cpp llupdaterservice.cpp
llupdatechecker.cpp llupdatechecker.cpp
llupdatedownloader.cpp llupdatedownloader.cpp
llupdateinstaller.cpp
) )
set(updater_service_HEADER_FILES set(updater_service_HEADER_FILES
llupdaterservice.h llupdaterservice.h
llupdatechecker.h llupdatechecker.h
llupdatedownloader.h llupdatedownloader.h
llupdateinstaller.h
) )
set_source_files_properties(${updater_service_HEADER_FILES} set_source_files_properties(${updater_service_HEADER_FILES}
...@@ -56,12 +59,6 @@ if(LL_TESTS) ...@@ -56,12 +59,6 @@ if(LL_TESTS)
llupdaterservice.cpp llupdaterservice.cpp
) )
# set_source_files_properties(
# llupdaterservice.cpp
# PROPERTIES
# LL_TEST_ADDITIONAL_LIBRARIES "${PTH_LIBRARIES}"
# )
LL_ADD_PROJECT_UNIT_TESTS(llupdaterservice "${llupdater_service_TEST_SOURCE_FILES}") LL_ADD_PROJECT_UNIT_TESTS(llupdaterservice "${llupdater_service_TEST_SOURCE_FILES}")
endif(LL_TESTS) endif(LL_TESTS)
...@@ -74,3 +71,17 @@ set(UPDATER_LIBRARIES ...@@ -74,3 +71,17 @@ 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"
)
endif()
add_custom_target(copy_update_install ALL DEPENDS ${update_installer_targets})
\ No newline at end of file
/**
* @file llupdateinstaller.cpp
*
* $LicenseInfo:firstyear=2010&license=viewerlgpl$
* Second Life Viewer Source Code
* Copyright (C) 2010, Linden Research, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation;
* version 2.1 of the License only.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
* Linden Research, Inc., 945 Battery Street, San Francisco, CA 94111 USA
* $/LicenseInfo$
*/
#include "linden_common.h"
#include "llprocesslauncher.h"
#include "llupdateinstaller.h"
void ll_install_update(std::string const & script, std::string const & updatePath)
{
LLProcessLauncher launcher;
launcher.setExecutable(script);
launcher.addArgument(updatePath);
launcher.launch();
launcher.orphan();
}
\ No newline at end of file
/**
* @file llupdateinstaller.h
*
* $LicenseInfo:firstyear=2010&license=viewerlgpl$
* Second Life Viewer Source Code
* Copyright (C) 2010, Linden Research, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation;
* version 2.1 of the License only.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
* Linden Research, Inc., 945 Battery Street, San Francisco, CA 94111 USA
* $/LicenseInfo$
*/
#ifndef LL_UPDATE_INSTALLER_H
#define LL_UPDATE_INSTALLER_H
#include <string>
//
// Launch the installation script.
//
// The updater will overwrite the current installation, so it is highly recommended
// that the current application terminate once this function is called.
//
void ll_install_update(std::string const & script, std::string const & updatePath);
#endif
\ No newline at end of file
#! /bin/bash
hdiutil attach -nobrowse $1
cp -R /Volumes/Second\ Life\ Installer/Second\ Life\ Viewer\ 2.app /Applications
hdiutil detach /Volumes/Second\ Life\ Installer
open /Applications/Second\ Life\ Viewer\ 2.app
\ No newline at end of file
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