mirror of
https://github.com/dragoonDorise/EmuDeck.git
synced 2024-06-02 11:38:01 -04:00
ubuntu 24 fix
This commit is contained in:
parent
3eef335ebd
commit
88a3a17828
|
@ -1,8 +1,13 @@
|
|||
#!/bin/bash
|
||||
createDesktopIcons(){
|
||||
|
||||
createDesktopIcons(){
|
||||
local sandbox=""
|
||||
|
||||
if command -v apt-get >/dev/null; then
|
||||
sandbox=" --no-sandbox"
|
||||
fi
|
||||
|
||||
#We delete the old icons
|
||||
rm -rf ~/Desktop/EmuDeckUninstall.desktop 2>/dev/null
|
||||
rm -rf ~/Desktop/EmuDeckUninstall.desktop 2>/dev/null
|
||||
rm -rf ~/Desktop/EmuDeckCHD.desktop 2>/dev/null
|
||||
rm -rf ~/Desktop/EmuDeck.desktop 2>/dev/null
|
||||
rm -rf ~/Desktop/EmuDeckSD.desktop 2>/dev/null
|
||||
|
@ -14,13 +19,13 @@ createDesktopIcons(){
|
|||
#New EmuDeck icon, same place so people won't get confused
|
||||
createDesktopShortcut "$HOME/Desktop/EmuDeck.desktop" \
|
||||
"EmuDeck" \
|
||||
"$HOME/Applications/EmuDeck.AppImage" \
|
||||
"$HOME/Applications/EmuDeck.AppImage$sandbox" \
|
||||
"false"
|
||||
#App list
|
||||
#desktop-file-install --dir --delete-original "$HOME/Desktop/EmuDeck.desktop"
|
||||
#App list
|
||||
#desktop-file-install --dir --delete-original "$HOME/Desktop/EmuDeck.desktop"
|
||||
createDesktopShortcut "$HOME/.local/share/applications/EmuDeck.desktop" \
|
||||
"EmuDeck" \
|
||||
"$HOME/Applications/EmuDeck.AppImage" \
|
||||
"$HOME/Applications/EmuDeck.AppImage$sandbox" \
|
||||
"false"
|
||||
|
||||
|
||||
}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
linuxID=$(lsb_release -si)
|
||||
|
||||
sandbox=""
|
||||
if [ $linuxID != "ChimeraOS" ]; then
|
||||
|
||||
echo "installing EmuDeck"
|
||||
|
@ -52,7 +52,7 @@ elif [ $linuxID != "SteamOS" ]; then
|
|||
if command -v apt-get >/dev/null; then
|
||||
echo "Installing packages with apt..."
|
||||
DEBIAN_DEPS="jq zenity flatpak unzip bash libfuse2 git rsync whiptail"
|
||||
|
||||
sandbox=" --no-sandbox"
|
||||
sudo killall apt apt-get
|
||||
sudo apt-get -y update
|
||||
sudo apt-get -y install $DEBIAN_DEPS
|
||||
|
@ -108,5 +108,5 @@ EMUDECK_URL="$(curl -s ${EMUDECK_GITHUB_URL} | grep -E 'browser_download_url.*Ap
|
|||
mkdir -p ~/Applications
|
||||
curl -L "${EMUDECK_URL}" -o ~/Applications/EmuDeck.AppImage 2>&1 | stdbuf -oL tr '\r' '\n' | sed -u 's/^ *\([0-9][0-9]*\).*\( [0-9].*$\)/\1\n#Download Speed\:\2/' | zenity --progress --title "Downloading EmuDeck" --width 600 --auto-close --no-cancel 2>/dev/null
|
||||
chmod +x ~/Applications/EmuDeck.AppImage
|
||||
~/Applications/EmuDeck.AppImage
|
||||
~/Applications/EmuDeck.AppImage$sandbox
|
||||
exit
|
Loading…
Reference in a new issue