| 12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- #!/usr/bin/env bash
- #
- # Copyright (c) Contributors to the Open 3D Engine Project.
- # For complete copyright and license terms please see the LICENSE at the root of this distribution.
- #
- # SPDX-License-Identifier: Apache-2.0 OR MIT
- #
- #
- set -o errexit # exit on the first failure encountered
- {
- ln -s @CPACK_PACKAGING_INSTALL_PREFIX@/bin/Linux/profile/Default/o3de /usr/local/bin/o3de
- ln -s @CPACK_PACKAGING_INSTALL_PREFIX@/bin/Linux/profile/Default/AssetProcessor /usr/local/bin/o3de.assetprocessor
- ln -s @CPACK_PACKAGING_INSTALL_PREFIX@/bin/Linux/profile/Default/Editor /usr/local/bin/o3de.editor
- # Generate the desktop icon
- DESKTOP_ICON_FILE=/usr/share/applications/o3de.desktop
- echo -e "[Desktop Entry]\n\
- Version=@CPACK_PACKAGE_VERSION@\n\
- Name=O3DE\n\
- Comment=O3DE Project Manager\n\
- Type=Application\n\
- Exec=@CPACK_PACKAGING_INSTALL_PREFIX@/bin/Linux/profile/Default/o3de\n\
- Path=@CPACK_PACKAGING_INSTALL_PREFIX@/bin/Linux/profile/Default/\n\
- Icon=@CPACK_PACKAGING_INSTALL_PREFIX@/o3de.svg\n\
- Terminal=false\n\
- StartupWMClass=O3DE.SNAP\n\
- StartupNotify=true\n\
- X-GNOME-Autostart-enabled=true\n\
- " > $DESKTOP_ICON_FILE
- if [ "" != "$SUDO_USER" ]
- then
- pushd @CPACK_PACKAGING_INSTALL_PREFIX@
- chown -R $SUDO_USER .
- sudo -u $SUDO_USER python/get_python.sh
- popd
- fi
- }
- #&> /dev/null # hide output
|