[Branding] Linux scripts now made from template by cmake

This commit is contained in:
Latif Khalifa
2014-06-18 15:50:21 +02:00
parent a7728b87fc
commit ffd0e6b79d
6 changed files with 34 additions and 13 deletions

6
.gitignore vendored
View File

@@ -29,3 +29,9 @@ qtcreator-build/
/indra/newview/res/viewerRes.rc /indra/newview/res/viewerRes.rc
/indra/newview/res/viewerRes_bc.rc /indra/newview/res/viewerRes_bc.rc
/indra/newview/English.lproj/InfoPlist.strings /indra/newview/English.lproj/InfoPlist.strings
/indra/newview/linux_tools/handle_secondlifeprotocol.sh
/indra/newview/linux_tools/install.sh
/indra/newview/linux_tools/refresh_desktop_app_entry.sh
/indra/newview/linux_tools/wrapper.sh

View File

@@ -58,6 +58,21 @@ if (LINUX)
${CMAKE_SOURCE_DIR}/newview/linux_tools/wrapper.sh ${CMAKE_SOURCE_DIR}/newview/linux_tools/wrapper.sh
@ONLY @ONLY
) )
configure_file(
${CMAKE_SOURCE_DIR}/newview/linux_tools/handle_secondlifeprotocol.sh.in
${CMAKE_SOURCE_DIR}/newview/linux_tools/handle_secondlifeprotocol.sh
@ONLY
)
configure_file(
${CMAKE_SOURCE_DIR}/newview/linux_tools/install.sh.in
${CMAKE_SOURCE_DIR}/newview/linux_tools/install.sh
@ONLY
)
configure_file(
${CMAKE_SOURCE_DIR}/newview/linux_tools/refresh_desktop_app_entry.sh.in
${CMAKE_SOURCE_DIR}/newview/linux_tools/refresh_desktop_app_entry.sh
@ONLY
)
endif (LINUX) endif (LINUX)
# Compose the version. # Compose the version.

View File

@@ -11,9 +11,9 @@ groups inside Second Life, with an appropriate headset/microphone.
Linux Voice Support is currently EXPERIMENTAL and is known to still Linux Voice Support is currently EXPERIMENTAL and is known to still
have some compatibility issues. have some compatibility issues.
SINGULARITY MULTI-VOICE MULTI-VOICE
-=-=-=-=-=-=-=-=-=-=-=- -=-=-=-=-=-=-=-=-=-=-=-
Singularity multi-voice is an experimental feature that allows you to run multiple Multi-voice is an experimental feature that allows you to run multiple
SLVoice daemons at the same time, in order to do this, the debug setting VoiceMultiInstance SLVoice daemons at the same time, in order to do this, the debug setting VoiceMultiInstance
must be TRUE, this allows multiple instances of the viewer to run concurrently and must be TRUE, this allows multiple instances of the viewer to run concurrently and
each connect to voice. each connect to voice.

View File

@@ -13,5 +13,5 @@ fi
RUN_PATH=`dirname "$0" || echo .` RUN_PATH=`dirname "$0" || echo .`
cd "${RUN_PATH}" cd "${RUN_PATH}"
exec ./singularity -url \'"${URL}"\' exec ./@VIEWER_BRANDING_ID@ -url \'"${URL}"\'

View File

@@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
# Install Singularity Viewer. This script can install the viewer both # Install @VIEWER_CHANNEL@. This script can install the viewer both
# system-wide and for an individual user. # system-wide and for an individual user.
VT102_STYLE_NORMAL='\E[0m' VT102_STYLE_NORMAL='\E[0m'
@@ -48,8 +48,8 @@ function warn()
function homedir_install() function homedir_install()
{ {
warn "You are not running as a privileged user, so you will only be able" warn "You are not running as a privileged user, so you will only be able"
warn "to install Singularity Viewer in your home directory. If you" warn "to install @VIEWER_CHANNEL@ in your home directory. If you"
warn "would like to install Singularity Viewer system-wide, please run" warn "would like to install @VIEWER_CHANNEL@ system-wide, please run"
warn "this script as the root user, or with the 'sudo' command." warn "this script as the root user, or with the 'sudo' command."
echo echo
@@ -58,13 +58,13 @@ function homedir_install()
exit 0 exit 0
fi fi
install_to_prefix "$HOME/.singularity-install" install_to_prefix "$HOME/.@VIEWER_BRANDING_ID@-install"
$HOME/.singularity-install/refresh_desktop_app_entry.sh $HOME/.@VIEWER_BRANDING_ID@-install/refresh_desktop_app_entry.sh
} }
function root_install() function root_install()
{ {
local default_prefix="/opt/singularity-install" local default_prefix="/opt/@VIEWER_BRANDING_ID@-install"
echo -n "Enter the desired installation directory [${default_prefix}]: "; echo -n "Enter the desired installation directory [${default_prefix}]: ";
read read

View File

@@ -12,10 +12,10 @@ function install_desktop_entry()
local desktop_entry="\ local desktop_entry="\
[Desktop Entry]\n\ [Desktop Entry]\n\
Name=Singularity\n\ Name=@VIEWER_BRANDING_ID@\n\
Comment=Client for Online Virtual Worlds, such as Second Life\n\ Comment=Client for Online Virtual Worlds, such as Second Life\n\
Exec=${installation_prefix}/singularity\n\ Exec=${installation_prefix}/@VIEWER_BRANDING_ID@\n\
Icon=${installation_prefix}/singularity_icon.png\n\ Icon=${installation_prefix}/@VIEWER_BRANDING_ID@_icon.png\n\
Terminal=false\n\ Terminal=false\n\
Type=Application\n\ Type=Application\n\
Categories=Application;Network;\n\ Categories=Application;Network;\n\
@@ -24,7 +24,7 @@ X-Desktop-File-Install-Version=3.0"
echo " - Installing menu entries in ${desktop_entries_dir}" echo " - Installing menu entries in ${desktop_entries_dir}"
mkdir -vp "${desktop_entries_dir}" mkdir -vp "${desktop_entries_dir}"
echo -e $desktop_entry > "${desktop_entries_dir}/singularity-viewer.desktop" || "Failed to install application menu!" echo -e $desktop_entry > "${desktop_entries_dir}/@VIEWER_BRANDING_ID@-viewer.desktop" || "Failed to install application menu!"
} }
if [ "$UID" == "0" ]; then if [ "$UID" == "0" ]; then