Commit Graph

39 Commits (680194deaf7a35caaa629abc16e886d71baff636)

Author SHA1 Message Date
Nat Goodspeed 9e986201ba MAINT-3489: Make Mac updater script detect prematurely deleted .dmg.
Also, delete it when done.
2013-11-26 09:25:10 -05:00
Nat Goodspeed 8881b47d22 MAINT-3331: On update, remove com.secondlife.indra.viewer.savedState. 2013-10-22 01:35:01 -04:00
Nat Goodspeed 2b8cd2fccf MAINT-2333: Use bouncing progress bar for Linux updater message.
This eliminates the user expectation that s/he must click OK before the
updater will begin installing the new viewer.
2013-06-11 19:23:38 -04:00
Oz Linden 3bb708d706 merge up to latest viewer-development for merge to 3.5.2 2013-04-19 14:42:56 -04:00
Graham Madarasz bf6182daa8 Update Mac and Windows breakpad builds to latest 2013-03-29 07:50:08 -07:00
Nat Goodspeed 22db60ed0d MAINT-1481: use 'mktemp -d' to generate tempdir.
Responding to Lex's code-review comments.
2013-01-11 15:58:50 -05:00
Nat Goodspeed 9e755ee98d MAINT-1481: Clean up update_install UI, including error output.
Capture actual error output from mkdir and mv; display it to user.
Introduce mysudo function used by sudo_mv function for graphical sudo command.
Since update_install actually only displays a single status message, just use
zenity --info instead of a zenity progress box: need not update its message.
Borrow semantics for clear_message and status functions from xmenity script.
Introduce errorbox function so we only have to make zenity/xmessage test once.
Move cleanup, onexit to top so we can use for clear_message.
2013-01-11 12:36:03 -05:00
Nat Goodspeed 83f625445b MAINT-1481: Remove xmenity script and viewer_manifest.py references. 2013-01-11 12:24:44 -05:00
Nat Goodspeed 6e9782f79f MAINT-1481: minor bug fix plus incomplete UI tweaks.
Test for existence of target name using -e rather than -f. (-d would work too,
but in this case we must respond to any name collision, whether file or
directory.)
Instead of terminating on failure, make sudo_mv return rc of the [sudo] mv
command to its caller. If the attempt to move new install to actual viewer
directory fails, restore previous viewer before failing.
When redirecting the script's stderr to updater.log, first save existing
stderr to another file descriptor, and restore it when we launch viewer.
Otherwise updater.log ends up collecting the viewer's duplicate stderr log
output!
The construct 'exec ... | program' doesn't work. In fact it causes any other
redirections on that command to fail too. Remove it -- real fix pending.
2013-01-10 09:40:20 -05:00
Nat Goodspeed 34f231cc66 MAINT-1481: remove linux-updater; move logic to Linux update_install
Now that the viewer's own background updater logic is responsible for
downloading a new installer, the only functionality we still use in
linux-updater that couldn't be expressed more simply in bash is the UI. But
since most Linux distros capable of running SL at all have zenity, and all
will have xmessage, we can handle even the UI part. Add xmenity wrapper script
so update_install doesn't have to care which is present, and make the bash
script that used to launch linux-updater do the real work.
2013-01-09 20:39:06 -05:00
Oz Linden c70b0a9de6 merge changes for DRTVWR-278 2013-03-06 16:39:48 -05:00
Nat Goodspeed fbb9bf89c0 MAINT-2155, DRTVWR-278: Make Mac updater honor app bundle name in .dmg.
If you run "/Applications/Second Life Beta Materials.app", and the version
manager directs you to update to a .dmg containing a release candidate whose
app bundle name is "Second Life Viewer.app", update_install.py used to copy
the contents of "Second Life Viewer.app" into "/Applications/Second Life Beta
Materials.app". Changed it so that if the application bundle name differs, we
leave the running app bundle alone, installing instead to the app bundle name
from the .dmg.
2013-02-25 16:26:40 -05:00
Nat Goodspeed f76e7cce5f MAINT-2328: Mac updater should not clear (part of) viewer cache.
Remove the offending code.
2013-02-22 21:06:38 -05:00
Nat Goodspeed 4ca04bd89c MAINT-2155: Match window title of mac-updater.app's message window 2013-01-08 22:24:07 -05:00
Nat Goodspeed c3542b5e46 MAINT-2155: when permitting missing old logfile, check for ENOENT
instead of errno.EEXIST. Sigh.
2013-01-08 14:50:34 -05:00
Nat Goodspeed 840cb864a3 MAINT-2155: replace embedded mac-updater.app with a Python script.
Remove mac-updater subtree from viewer source, along with the
update_install bash script that invoked it. Remove all mention of mac-updater
in CMakeLists.txt files and in viewer_manifest.py.
Change Mac update_install bash script references in viewer_manifest.py and in
llupdaterservice.cpp (which invokes it) to new Python update_install.py.
Add update_install.py, messageframe.py (which puts up some Tkinter UI) and
janitor.py (cloned from vita, it's exactly what we need here).
2013-01-05 09:17:51 -05:00
Dave Parks cfb666e9d9 merge 2011-11-15 17:04:37 -06:00
Brad Payne (Vir Linden) 47a4ce19c7 SH-2515 WIP - changed app name in linux updater, dir name in windows installer 2011-09-30 13:16:29 -04:00
Brad Payne (Vir Linden) 41d9ad5cd3 SH-2515 WIP - changed app name in mac-updater 2011-09-30 11:06:12 -04:00
Andrew A. de Laix 1774489ef8 Vary install failed message depending on whether it was required or not. 2010-12-16 09:34:19 -08:00
brad kittenbrink 3641d012e3 Merge 2010-12-14 16:19:20 -08:00
brad kittenbrink 4f9e6ff2ff Defensive coding for linux updater script for consistency with alain's work on the mac script.
Should be safer if the user is installing to a path with spaces in it.
2010-12-10 17:27:17 -08:00
Andrew A. de Laix ac2253abc4 fix quoting in script to work with spaces in directory names. 2010-12-10 16:11:16 -08:00
Andrew A. de Laix 8ab943f470 fix working directory in install script and remove dependency on open option --args which is 10.6 only. Also fix erroneous check in process launcher which was mistakenly reporting a failed execution of the new updater script. 2010-12-10 15:41:14 -08:00
brad kittenbrink 1664e05527 Attempted fix for CHOP-223: fixed executable permissions on update_install script for mac and linux. 2010-11-29 14:12:56 -08:00
brad kittenbrink b6edd74775 Merged latest lindenlab/viewer-development with mani_linden/viewer-development for bacground updater work. 2010-11-19 12:09:18 -08:00
Mark Palange (Mani) 8e0e5e0bd9 CHOP-203 Deleting the update file after installer run. 2010-11-17 15:20:53 -08:00
Mark Palange (Mani) dd6213abf4 CHOP-209 Added marker creation, fixed updater crash bug 2010-11-16 18:34:58 -08:00
Mark Palange (Mani) 23610ad7df merge 2010-11-16 16:21:51 -08:00
Mark Palange (Mani) 13b77e3622 CHOP-179 Linux install uses linux-updater. Rev. by Alain 2010-11-16 16:21:17 -08:00
Andrew A. de Laix ad354324ca clean up installer file after install. 2010-11-16 15:21:35 -08:00
Andrew A. de Laix f47c42bb10 create marker on error; use /SKIP_DIALOGS option in installer to run without user input. 2010-11-15 14:26:45 -08:00
Andrew A. de Laix a89024fb37 write marker on windows installer fail. 2010-11-15 09:57:00 -08:00
Andrew A. de Laix ec7d36f6cf added mechanism for install scripts to indicate a failed install and for update service to note the failure; modified mac installer to write marker on error. 2010-11-15 09:38:20 -08:00
Mark Palange (Mani) 0f26013d1d Merge 2010-11-11 19:07:02 -08:00
Andrew A. de Laix 830afa5b27 hacking mac updater to install from local dmg 2010-11-11 16:45:38 -08:00
Andrew A. de Laix 4e22d63352 Add very basic windows install script. 2010-11-11 11:05:46 -08:00
Mark Palange (Mani) 7eed962a62 Merge 2010-11-10 14:28:54 -08:00
Andrew A. de Laix fdf616c59d beginnings of the update installer (with simple install script for darwin). 2010-11-09 11:23:32 -08:00