The forum
[Script] SuperCrateBox Install
Experimental Script
Author | Replies |
inukaze | Tuesday 2 June 2015 at 9:27 |
inukaze
|
Now the current version of this script : Hi there , i put here the update for PlayOnLinux Source Code for my script With custom icons:
#!/bin/bash # Fecha : (06 Junio 2015) # Distro : Manjaro Linux 64-bit # Autor : Inukaze ( http://inukaze.wordpress.com / http://www.dailymotion.com/inukaze ) # Licencia : GPLv3 # PlayOnLinux: 4.2.8 [ "$PLAYONLINUX" = "" ] && exit 0 source "$PLAYONLINUX/lib/sources" POL_SetupWindow_Init POL_Debug_Init GAME_VMS="64" AUTHOR="Vlambeer" WINEVERSION="1.7.22" TITLE="Super Crate Box" PREFIX="SuperCrateBox" WORKING_WINE_VERSION="1.7.22" GAME_URL="http://supercratebox.com/" DOWNLOAD_GAME="http://www.supercratebox.com/download/supercratebox.rar" DOWNLOAD_ICON_512="https://dl.dropboxusercontent.com/u/3164499/Linux/Wine/drive_c/icono/SuperCrateBox_512.png" DOWNLOAD_ICON_32="https://dl.dropboxusercontent.com/u/3164499/Linux/Wine/drive_c/icono/SuperCrateBox_32.png" POL_Wine_SelectPrefix "$PREFIX" POL_Wine_PrefixCreate "1.7.22" POL_Call POL_Install_dsound POL_Call POL_Install_dinput POL_Call POL_Install_directmusic rm -rf "$WINEPREFIX/drive_c/SuperCrateBox" mkdir -p "$WINEPREFIX/drive_c/SuperCrateBox" ; cd "$WINEPREFIX/drive_c/SuperCrateBox" POL_Download $DOWNLOAD_GAME 962d90ba1aa0e8095f2cbfd2940c5858 if [ $(which unrar) ];then unrar x supercratebox.rar else POL_SetupWindow_message "$(eval_gettext 'Game Extract failed (Missing unrar).')" "$TITLE" fi POL_SetupWindow_VMS $GAME_VMS POL_Wine_Direct3D "DirectDrawRenderer" "opengl" POL_Wine_Direct3D "Multisampling" "disabled" POL_Wine_Direct3D "OffscreenRenderingMode" "pbuffer" POL_Wine_Direct3D "StrictDrawOrdering" "disabled" POL_Wine_Direct3D "UseGLSL" "disabled" POL_Shortcut "supercratebox.exe" "$TITLE" rm -rf "$POL_USER_ROOT/icones/32/SuperCrateBox" rm -rf "$POL_USER_ROOT/icones/32/Super Crate Box" rm -rf "$POL_USER_ROOT/icones/full_size/SuperCrateBox" rm -rf "$POL_USER_ROOT/icones/full_size/Super Crate Box" POL_Download $DOWNLOAD_ICON_512 c6e3fdcba1a5681c68f03222520ba752 POL_Download $DOWNLOAD_ICON_32 a32b903f8b3e7a4adacef3a081079ac1 mv SuperCrateBox_32.png "$POL_USER_ROOT/icones/32/SuperCrateBox" mv SuperCrateBox_512.png "$POL_USER_ROOT/icones/full_size/SuperCrateBox" POL_SetupWindow_Close exit 0
Without Custom Icons ( i really dont like the icon of the executable )
#!/bin/bash # Fecha : (06 Junio 2015) # Distro : Manjaro Linux 64-bit # Autor : Inukaze ( http://inukaze.wordpress.com / http://www.dailymotion.com/inukaze ) # Licencia : GPLv3 # PlayOnLinux: 4.2.8 [ "$PLAYONLINUX" = "" ] && exit 0 source "$PLAYONLINUX/lib/sources" POL_SetupWindow_Init POL_Debug_Init GAME_VMS="64" AUTHOR="Vlambeer" WINEVERSION="1.7.22" TITLE="Super Crate Box" PREFIX="SuperCrateBox" WORKING_WINE_VERSION="1.7.22" GAME_URL="http://supercratebox.com/" DOWNLOAD_GAME="http://www.supercratebox.com/download/supercratebox.rar" POL_Wine_SelectPrefix "$PREFIX" POL_Wine_PrefixCreate "1.7.22" POL_Call POL_Install_dsound POL_Call POL_Install_dinput POL_Call POL_Install_directmusic rm -rf "$WINEPREFIX/drive_c/SuperCrateBox" rm -rf "$POL_USER_ROOT/icones/32/SuperCrateBox" rm -rf "$POL_USER_ROOT/icones/32/Super Crate Box" rm -rf "$POL_USER_ROOT/icones/full_size/SuperCrateBox" rm -rf "$POL_USER_ROOT/icones/full_size/Super Crate Box" mkdir -p "$WINEPREFIX/drive_c/SuperCrateBox" ; cd "$WINEPREFIX/drive_c/SuperCrateBox" POL_Download $DOWNLOAD_GAME 962d90ba1aa0e8095f2cbfd2940c5858 if [ $(which unrar) ];then unrar x supercratebox.rar else POL_SetupWindow_message "$(eval_gettext 'Game Extract failed (Missing unrar).')" "$TITLE" fi POL_SetupWindow_VMS $GAME_VMS POL_Wine_Direct3D "DirectDrawRenderer" "opengl" POL_Wine_Direct3D "Multisampling" "disabled" POL_Wine_Direct3D "OffscreenRenderingMode" "pbuffer" POL_Wine_Direct3D "StrictDrawOrdering" "disabled" POL_Wine_Direct3D "UseGLSL" "disabled" POL_Shortcut "supercratebox.exe" "$TITLE" rm -rf "$POL_USER_ROOT/icones/32/SuperCrateBox" rm -rf "$POL_USER_ROOT/icones/32/Super Crate Box" rm -rf "$POL_USER_ROOT/icones/full_size/SuperCrateBox" rm -rf "$POL_USER_ROOT/icones/full_size/Super Crate Box" POL_SetupWindow_Close exit 0
Well if you don't like the custom icon download from my dropbox , you can use without that icons XD
The first version of this script : #!/bin/bash # Fecha : (06 Junio 2015) # Distro : Manjaro Linux 64-bit # Autor : Inukaze ( http://inukaze.wordpress.com / http://www.dailymotion.com/inukaze ) # Licencia : GPLv3 # PlayOnLinux: 4.2.8 [ "$PLAYONLINUX" = "" ] && exit 0 source "$PLAYONLINUX/lib/sources" POL_SetupWindow_Init POL_Debug_Init PREFIX="SuperCrateBox" WINEVERSION="1.7.22" TITLE="SuperCrateBox" GAME_URL="http://supercratebox.com/" AUTHOR="Vlambeer" DOWNLOAD_GAME_EXE="https://dl.dropboxusercontent.com/u/3164499/Linux/Wine/drive_c/Juegos/SuperCrateBox/supercratebox.exe" DOWNLOAD_GAME_DLL="https://dl.dropboxusercontent.com/u/3164499/Linux/Wine/drive_c/Juegos/SuperCrateBox/downloaddll.dll" DOWNLOAD_ICON_512="https://dl.dropboxusercontent.com/u/3164499/Linux/Wine/drive_c/icono/SuperCrateBox_512.png" DOWNLOAD_ICON_32="https://dl.dropboxusercontent.com/u/3164499/Linux/Wine/drive_c/icono/SuperCrateBox_32.png" POL_Wine_SelectPrefix "$PREFIX" POL_Wine_PrefixCreate "1.7.22" POL_Call POL_Install_directmusic rm -rf "$WINEPREFIX/drive_c/DMAFix" rm -rf "$HOME/.PlayOnLinux/icones/full_size/SuperCrateBox" rm -rf "$HOME/.PlayOnLinux/icones/32/SuperCrateBox" rm -rf "$HOME/.PlayOnLinux/shortcuts/SuperCrateBox" rm -rf "$HOME/.PlayOnLinux/shortcuts/Super Crate Box" mkdir -p "$WINEPREFIX/drive_c/DMAFix" mkdir -p "$WINEPREFIX/drive_c/SuperCrateBox" cd "$WINEPREFIX/drive_c/DMAFix" DLLFix="https://dl.dropboxusercontent.com/u/3164499/Linux/Wine/drive_c/windows/system32/devenum.dll" POL_Download "$DLLFix" df4f87a3b9a631458d6d53c2d5241a45 DLLFix="https://dl.dropboxusercontent.com/u/3164499/Linux/Wine/drive_c/windows/system32/dinput.dll" POL_Download "$DLLFix" 2019668ce6eda81efd9d62c3103a948f DLLFix="https://dl.dropboxusercontent.com/u/3164499/Linux/Wine/drive_c/windows/system32/dinput8.dll" POL_Download "$DLLFix" 60bc2c65b32564568a89c34a0ac0619d DLLFix="https://dl.dropboxusercontent.com/u/3164499/Linux/Wine/drive_c/windows/system32/dmband.dll" POL_Download "$DLLFix" b4f484f23393b815cc03f1c08891fe94 DLLFix="https://dl.dropboxusercontent.com/u/3164499/Linux/Wine/drive_c/windows/system32/dmcompos.dll" POL_Download "$DLLFix" 62552db4ebaf6ddd1bb6cf5e657987cb DLLFix="https://dl.dropboxusercontent.com/u/3164499/Linux/Wine/drive_c/windows/system32/dmime.dll" POL_Download "$DLLFix" f9903a3ef5d3f52dcfd026ca39422fd4 DLLFix="https://dl.dropboxusercontent.com/u/3164499/Linux/Wine/drive_c/windows/system32/dmloader.dll" POL_Download "$DLLFix" dc79ef5c852300c18b2fd231e2f92d51 DLLFix="https://dl.dropboxusercontent.com/u/3164499/Linux/Wine/drive_c/windows/system32/dmscript.dll" POL_Download "$DLLFix" 9e08d1212d1bcc01a6b7ef7e13268038 DLLFix="https://dl.dropboxusercontent.com/u/3164499/Linux/Wine/drive_c/windows/system32/dmstyle.dll" POL_Download "$DLLFix" a4fc3279c49352964c2b1a696eebf342 DLLFix="https://dl.dropboxusercontent.com/u/3164499/Linux/Wine/drive_c/windows/system32/dmsynth.dll" POL_Download "$DLLFix" 0ca72666b461161f9ad15d40d218ec1d DLLFix="https://dl.dropboxusercontent.com/u/3164499/Linux/Wine/drive_c/windows/system32/dmusic.dll" POL_Download "$DLLFix" 2d132c28ae2e4a23525a66dac7571740 DLLFix="https://dl.dropboxusercontent.com/u/3164499/Linux/Wine/drive_c/windows/system32/dsound.dll" POL_Download "$DLLFix" 9ef059a2c76bce8db9b0dd95efe23a48 DLLFix="https://dl.dropboxusercontent.com/u/3164499/Linux/Wine/drive_c/windows/system32/dswave.dll" POL_Download "$DLLFix" 4ff4f01f2adca59adae0415559d2e0be DLLFix="https://dl.dropboxusercontent.com/u/3164499/Linux/Wine/drive_c/windows/system32/eax.dll" POL_Download "$DLLFix" fa325d723ecc6b5887fe3b7da3dfe208 DLLFix="https://dl.dropboxusercontent.com/u/3164499/Linux/Wine/drive_c/windows/system32/midimap.dll" POL_Download "$DLLFix" d94ff77931d467ac3ed916f767fa7e1f DLLFix="https://dl.dropboxusercontent.com/u/3164499/Linux/Wine/drive_c/windows/system32/msacm32.dll" POL_Download "$DLLFix" fb216dc5d2cbe67940cbafad5bd6acc1 DLLFix="https://dl.dropboxusercontent.com/u/3164499/Linux/Wine/drive_c/windows/system32/quartz.dll" POL_Download "$DLLFix" 7998ac6cb538a7ea6a1e5dcf3fa12bb4 DLLFix="https://dl.dropboxusercontent.com/u/3164499/Linux/Wine/drive_c/windows/system32/streamci.dll" POL_Download "$DLLFix" 35e5264ccac0898868aee5c8ac86de86 DLLFix="https://dl.dropboxusercontent.com/u/3164499/Linux/Wine/drive_c/windows/system32/drivers/gm.dls" POL_Download "$DLLFix" 7f29903cb8f5590d52db0c9f97049a25 if [ "$POL_ARCH" == "amd64" ]; then rm -rf "$WINEPREFIX/drive_c/windows/syswow64/devenum.dll" rm -rf "$WINEPREFIX/drive_c/windows/syswow64/dinput.dll" rm -rf "$WINEPREFIX/drive_c/windows/syswow64/dinput8.dll" rm -rf "$WINEPREFIX/drive_c/windows/syswow64/dmband.dll" rm -rf "$WINEPREFIX/drive_c/windows/syswow64/dmcompos.dll" rm -rf "$WINEPREFIX/drive_c/windows/syswow64/dmime.dll" rm -rf "$WINEPREFIX/drive_c/windows/syswow64/dmloader.dll" rm -rf "$WINEPREFIX/drive_c/windows/syswow64/dmscript.dll" rm -rf "$WINEPREFIX/drive_c/windows/syswow64/dmstyle.dll" rm -rf "$WINEPREFIX/drive_c/windows/syswow64/dmsynth.dll" rm -rf "$WINEPREFIX/drive_c/windows/syswow64/dmusic.dll" rm -rf "$WINEPREFIX/drive_c/windows/syswow64/dsound.dll" rm -rf "$WINEPREFIX/drive_c/windows/syswow64/dswave.dll" rm -rf "$WINEPREFIX/drive_c/windows/syswow64/eax.dll" rm -rf "$WINEPREFIX/drive_c/windows/syswow64/gm.dls" rm -rf "$WINEPREFIX/drive_c/windows/syswow64/midimap.dll" rm -rf "$WINEPREFIX/drive_c/windows/syswow64/msacm32.dll" rm -rf "$WINEPREFIX/drive_c/windows/syswow64/quartz.dll" rm -rf "$WINEPREFIX/drive_c/windows/syswow64/streamci.dll" rm -rf "$WINEPREFIX/drive_c/windows/syswow64/drivers/gm.dls" rm -rf "$WINEPREFIX/drive_c/windows/system32/devenum.dll" rm -rf "$WINEPREFIX/drive_c/windows/system32/dinput.dll" rm -rf "$WINEPREFIX/drive_c/windows/system32/dinput8.dll" rm -rf "$WINEPREFIX/drive_c/windows/system32/dmband.dll" rm -rf "$WINEPREFIX/drive_c/windows/system32/dmcompos.dll" rm -rf "$WINEPREFIX/drive_c/windows/system32/dmime.dll" rm -rf "$WINEPREFIX/drive_c/windows/system32/dmloader.dll" rm -rf "$WINEPREFIX/drive_c/windows/system32/dmscript.dll" rm -rf "$WINEPREFIX/drive_c/windows/system32/dmstyle.dll" rm -rf "$WINEPREFIX/drive_c/windows/system32/dmsynth.dll" rm -rf "$WINEPREFIX/drive_c/windows/system32/dmusic.dll" rm -rf "$WINEPREFIX/drive_c/windows/system32/dsound.dll" rm -rf "$WINEPREFIX/drive_c/windows/system32/dswave.dll" rm -rf "$WINEPREFIX/drive_c/windows/system32/eax.dll" rm -rf "$WINEPREFIX/drive_c/windows/system32/gm.dls" rm -rf "$WINEPREFIX/drive_c/windows/system32/midimap.dll" rm -rf "$WINEPREFIX/drive_c/windows/system32/msacm32.dll" rm -rf "$WINEPREFIX/drive_c/windows/system32/quartz.dll" rm -rf "$WINEPREFIX/drive_c/windows/system32/streamci.dll" rm -rf "$WINEPREFIX/drive_c/windows/system32/drivers/gm.dls" mkdir -p "$WINEPREFIX/drive_c/windows/syswow64/drivers/" mkdir -p "$WINEPREFIX/drive_c/windows/system32/drivers/" cp "$WINEPREFIX/drive_c/DMAFix/devenum.dll" "$WINEPREFIX/drive_c/windows/syswow64/" cp "$WINEPREFIX/drive_c/DMAFix/dinput.dll" "$WINEPREFIX/drive_c/windows/syswow64/" cp "$WINEPREFIX/drive_c/DMAFix/dinput8.dll" "$WINEPREFIX/drive_c/windows/syswow64/" cp "$WINEPREFIX/drive_c/DMAFix/dmband.dll" "$WINEPREFIX/drive_c/windows/syswow64/" cp "$WINEPREFIX/drive_c/DMAFix/dmcompos.dll" "$WINEPREFIX/drive_c/windows/syswow64/" cp "$WINEPREFIX/drive_c/DMAFix/dmime.dll" "$WINEPREFIX/drive_c/windows/syswow64/" cp "$WINEPREFIX/drive_c/DMAFix/dmloader.dll" "$WINEPREFIX/drive_c/windows/syswow64/" cp "$WINEPREFIX/drive_c/DMAFix/dmscript.dll" "$WINEPREFIX/drive_c/windows/syswow64/" cp "$WINEPREFIX/drive_c/DMAFix/dmstyle.dll" "$WINEPREFIX/drive_c/windows/syswow64/" cp "$WINEPREFIX/drive_c/DMAFix/dmsynth.dll" "$WINEPREFIX/drive_c/windows/syswow64/" cp "$WINEPREFIX/drive_c/DMAFix/dmusic.dll" "$WINEPREFIX/drive_c/windows/syswow64/" cp "$WINEPREFIX/drive_c/DMAFix/dsound.dll" "$WINEPREFIX/drive_c/windows/syswow64/" cp "$WINEPREFIX/drive_c/DMAFix/dswave.dll" "$WINEPREFIX/drive_c/windows/syswow64/" cp "$WINEPREFIX/drive_c/DMAFix/eax.dll" "$WINEPREFIX/drive_c/windows/syswow64/" cp "$WINEPREFIX/drive_c/DMAFix/midimap.dll" "$WINEPREFIX/drive_c/windows/syswow64/" cp "$WINEPREFIX/drive_c/DMAFix/msacm32.dll" "$WINEPREFIX/drive_c/windows/syswow64/" cp "$WINEPREFIX/drive_c/DMAFix/quartz.dll" "$WINEPREFIX/drive_c/windows/syswow64/" cp "$WINEPREFIX/drive_c/DMAFix/streamci.dll" "$WINEPREFIX/drive_c/windows/syswow64/" cp "$WINEPREFIX/drive_c/DMAFix/gm.dls" "$WINEPREFIX/drive_c/windows/syswow64/drivers/" cp "$WINEPREFIX/drive_c/DMAFix/devenum.dll" "$WINEPREFIX/drive_c/windows/system32/" cp "$WINEPREFIX/drive_c/DMAFix/dinput.dll" "$WINEPREFIX/drive_c/windows/system32/" cp "$WINEPREFIX/drive_c/DMAFix/dinput8.dll" "$WINEPREFIX/drive_c/windows/system32/" cp "$WINEPREFIX/drive_c/DMAFix/dmband.dll" "$WINEPREFIX/drive_c/windows/system32/" cp "$WINEPREFIX/drive_c/DMAFix/dmcompos.dll" "$WINEPREFIX/drive_c/windows/system32/" cp "$WINEPREFIX/drive_c/DMAFix/dmime.dll" "$WINEPREFIX/drive_c/windows/system32/" cp "$WINEPREFIX/drive_c/DMAFix/dmloader.dll" "$WINEPREFIX/drive_c/windows/system32/" cp "$WINEPREFIX/drive_c/DMAFix/dmscript.dll" "$WINEPREFIX/drive_c/windows/system32/" cp "$WINEPREFIX/drive_c/DMAFix/dmstyle.dll" "$WINEPREFIX/drive_c/windows/system32/" cp "$WINEPREFIX/drive_c/DMAFix/dmsynth.dll" "$WINEPREFIX/drive_c/windows/system32/" cp "$WINEPREFIX/drive_c/DMAFix/dmusic.dll" "$WINEPREFIX/drive_c/windows/system32/" cp "$WINEPREFIX/drive_c/DMAFix/dsound.dll" "$WINEPREFIX/drive_c/windows/system32/" cp "$WINEPREFIX/drive_c/DMAFix/dswave.dll" "$WINEPREFIX/drive_c/windows/system32/" cp "$WINEPREFIX/drive_c/DMAFix/eax.dll" "$WINEPREFIX/drive_c/windows/system32/" cp "$WINEPREFIX/drive_c/DMAFix/midimap.dll" "$WINEPREFIX/drive_c/windows/system32/" cp "$WINEPREFIX/drive_c/DMAFix/msacm32.dll" "$WINEPREFIX/drive_c/windows/system32/" cp "$WINEPREFIX/drive_c/DMAFix/quartz.dll" "$WINEPREFIX/drive_c/windows/system32/" cp "$WINEPREFIX/drive_c/DMAFix/streamci.dll" "$WINEPREFIX/drive_c/windows/system32/" cp "$WINEPREFIX/drive_c/DMAFix/gm.dls" "$WINEPREFIX/drive_c/windows/system32/drivers/" else rm -rf "$WINEPREFIX/drive_c/windows/system32/devenum.dll" rm -rf "$WINEPREFIX/drive_c/windows/system32/dinput.dll" rm -rf "$WINEPREFIX/drive_c/windows/system32/dinput8.dll" rm -rf "$WINEPREFIX/drive_c/windows/system32/dmband.dll" rm -rf "$WINEPREFIX/drive_c/windows/system32/dmcompos.dll" rm -rf "$WINEPREFIX/drive_c/windows/system32/dmime.dll" rm -rf "$WINEPREFIX/drive_c/windows/system32/dmloader.dll" rm -rf "$WINEPREFIX/drive_c/windows/system32/dmscript.dll" rm -rf "$WINEPREFIX/drive_c/windows/system32/dmstyle.dll" rm -rf "$WINEPREFIX/drive_c/windows/system32/dmsynth.dll" rm -rf "$WINEPREFIX/drive_c/windows/system32/dmusic.dll" rm -rf "$WINEPREFIX/drive_c/windows/system32/dsound.dll" rm -rf "$WINEPREFIX/drive_c/windows/system32/dswave.dll" rm -rf "$WINEPREFIX/drive_c/windows/system32/eax.dll" rm -rf "$WINEPREFIX/drive_c/windows/system32/midimap.dll" rm -rf "$WINEPREFIX/drive_c/windows/system32/msacm32.dll" rm -rf "$WINEPREFIX/drive_c/windows/system32/quartz.dll" rm -rf "$WINEPREFIX/drive_c/windows/system32/streamci.dll" rm -rf "$WINEPREFIX/drive_c/windows/system32/drivers/gm.dls" mkdir -p "$WINEPREFIX/drive_c/windows/system32/drivers/" cp "$WINEPREFIX/drive_c/DMAFix/devenum.dll" "$WINEPREFIX/drive_c/windows/system32/" cp "$WINEPREFIX/drive_c/DMAFix/dinput.dll" "$WINEPREFIX/drive_c/windows/system32/" cp "$WINEPREFIX/drive_c/DMAFix/dinput8.dll" "$WINEPREFIX/drive_c/windows/system32/" cp "$WINEPREFIX/drive_c/DMAFix/dmband.dll" "$WINEPREFIX/drive_c/windows/system32/" cp "$WINEPREFIX/drive_c/DMAFix/dmcompos.dll" "$WINEPREFIX/drive_c/windows/system32/" cp "$WINEPREFIX/drive_c/DMAFix/dmime.dll" "$WINEPREFIX/drive_c/windows/system32/" cp "$WINEPREFIX/drive_c/DMAFix/dmloader.dll" "$WINEPREFIX/drive_c/windows/system32/" cp "$WINEPREFIX/drive_c/DMAFix/dmscript.dll" "$WINEPREFIX/drive_c/windows/system32/" cp "$WINEPREFIX/drive_c/DMAFix/dmstyle.dll" "$WINEPREFIX/drive_c/windows/system32/" cp "$WINEPREFIX/drive_c/DMAFix/dmsynth.dll" "$WINEPREFIX/drive_c/windows/system32/" cp "$WINEPREFIX/drive_c/DMAFix/dmusic.dll" "$WINEPREFIX/drive_c/windows/system32/" cp "$WINEPREFIX/drive_c/DMAFix/dsound.dll" "$WINEPREFIX/drive_c/windows/system32/" cp "$WINEPREFIX/drive_c/DMAFix/dswave.dll" "$WINEPREFIX/drive_c/windows/system32/" cp "$WINEPREFIX/drive_c/DMAFix/eax.dll" "$WINEPREFIX/drive_c/windows/system32/" cp "$WINEPREFIX/drive_c/DMAFix/midimap.dll" "$WINEPREFIX/drive_c/windows/system32/" cp "$WINEPREFIX/drive_c/DMAFix/msacm32.dll" "$WINEPREFIX/drive_c/windows/system32/" cp "$WINEPREFIX/drive_c/DMAFix/quartz.dll" "$WINEPREFIX/drive_c/windows/system32/" cp "$WINEPREFIX/drive_c/DMAFix/streamci.dll" "$WINEPREFIX/drive_c/windows/system32/" cp "$WINEPREFIX/drive_c/DMAFix/gm.dls" "$WINEPREFIX/drive_c/windows/system32/drivers/" fi cd "$WINEPREFIX/drive_c/SuperCrateBox" rm -rf "supercratebox.exe*" rm -rf "downloaddll.dll*" rm -rf "SuperCrateBox.png*" POL_Download "$DOWNLOAD_GAME_EXE" 3123d36f275a94857f8d7bbd4e25133e POL_Download "$DOWNLOAD_GAME_DLL" 495f8f0fc620a174271287ba1ee9ca0f #mv "SuperCrateBox - Wine 1.7.22.reg" "SuperCrateBox.reg" cat << EOF > "$WINEPREFIX/drive_c/DMAFix/SuperCrateBox.reg" REGEDIT 4 [HKEY_CURRENT_USER\\Software\\Wine\\Direct3D] "DirectDrawRenderer"="opengl" "Multisampling"="disabled" "OffscreenRenderingMode"="pbuffer" "StrictDrawOrdering"="enable" "UseGLSL"="disabled" "VideoMemorySize"="64" [HKEY_CURRENT_USER\\Software\\Wine\\DllOverrides] "*devenum"="native" "*dinput"="native" "*dmband"="native" "*dmcompos"="native" "*dmime"="native" "*dmloader"="native" "*dmscript"="native" "*dmstyle"="native" "*dmsynth"="native" "*dmusic"="native" "*dmusic32"="native" "*dsound"="native" "*dswave"="native" "*eax"="native" "*gm.dls"="native" "*midimap"="native" "*quartz"="native" "*streamci"="native" EOF POL_Wine regedit "$WINEPREFIX/drive_c/DMAFix/SuperCrateBox.reg" POL_Shortcut "supercratebox.exe" "$TITLE" rm -rf "$HOME/.PlayOnLinux/icones/full_size/SuperCrateBox" rm -rf "$HOME/.PlayOnLinux/icones/32/SuperCrateBox" POL_Download $DOWNLOAD_ICON_512 c6e3fdcba1a5681c68f03222520ba752 POL_Download $DOWNLOAD_ICON_32 a32b903f8b3e7a4adacef3a081079ac1 mv SuperCrateBox_32.png "$HOME/.PlayOnLinux/icones/32/SuperCrateBox" mv SuperCrateBox_512.png "$HOME/.PlayOnLinux/icones/full_size/SuperCrateBox" rm -rf "$WINEPREFIX/drive_c/DMAFix" POL_SetupWindow_Close exit 0
Edited by inukaze |
petch | Tuesday 2 June 2015 at 21:18 |
petch
|
Ah, I didn't see you submitted your script in the forum too, I made the review as a comment in the repository:
We don't accept scripts that use DropBox (too brittle) rm -rf "$WINEPREFIX/drive_c/DMAFix" Duplicate statement rm -rf "$HOME/.PlayOnLinux/icones/full_size/SuperCrateBox" Don't hardcode the location of PlayOnLinux/PlayOnMac's state, use $POL_USER_ROOT. Anyway, script should avoid tweaking files under icones or shortcuts directly, just use POL_Shortcut. DLLFix="https://dl.dropboxusercontent.com/u/3164499/Linux/Wine/drive_c/windows/system32/devenum.dll" Use provided components (POL_Install_devenum, quartz, directmusic,...) cat << EOF > "$WINEPREFIX/drive_c/DMAFix/SuperCrateBox.reg" REGEDIT 4 [HKEY_CURRENT_USER\\Software\\Wine\\Direct3D] Use provided statements (POL_Wine_Direct3D,...) My scripts wiki: https://github.com/petchema/playonlinux/wiki GOGmix: https://www.gog.com/en/mix/playonlinux_install_scripts |
inukaze | Tuesday 2 June 2015 at 22:13 |
inukaze
|
Hi there , i put here the update for PlayOnLinux Source Code for my script With custom icons:
#!/bin/bash # Fecha : (06 Junio 2015) # Distro : Manjaro Linux 64-bit # Autor : Inukaze ( http://inukaze.wordpress.com / http://www.dailymotion.com/inukaze ) # Licencia : GPLv3 # PlayOnLinux: 4.2.8 [ "$PLAYONLINUX" = "" ] && exit 0 source "$PLAYONLINUX/lib/sources" POL_SetupWindow_Init POL_Debug_Init GAME_VMS="64" AUTHOR="Vlambeer" WINEVERSION="1.7.22" TITLE="Super Crate Box" PREFIX="SuperCrateBox" WORKING_WINE_VERSION="1.7.22" GAME_URL="http://supercratebox.com/" DOWNLOAD_GAME="http://www.supercratebox.com/download/supercratebox.rar" DOWNLOAD_ICON_512="https://dl.dropboxusercontent.com/u/3164499/Linux/Wine/drive_c/icono/SuperCrateBox_512.png" DOWNLOAD_ICON_32="https://dl.dropboxusercontent.com/u/3164499/Linux/Wine/drive_c/icono/SuperCrateBox_32.png" POL_Wine_SelectPrefix "$PREFIX" POL_Wine_PrefixCreate "1.7.22" POL_Call POL_Install_dsound POL_Call POL_Install_dinput POL_Call POL_Install_directmusic rm -rf "$WINEPREFIX/drive_c/SuperCrateBox" mkdir -p "$WINEPREFIX/drive_c/SuperCrateBox" ; cd "$WINEPREFIX/drive_c/SuperCrateBox" POL_Download $DOWNLOAD_GAME 962d90ba1aa0e8095f2cbfd2940c5858 if [ $(which unrar) ];then unrar x supercratebox.rar else POL_SetupWindow_message "$(eval_gettext 'Game Extract failed (Missing unrar).')" "$TITLE" fi POL_SetupWindow_VMS $GAME_VMS POL_Wine_Direct3D "DirectDrawRenderer" "opengl" POL_Wine_Direct3D "Multisampling" "disabled" POL_Wine_Direct3D "OffscreenRenderingMode" "pbuffer" POL_Wine_Direct3D "StrictDrawOrdering" "disabled" POL_Wine_Direct3D "UseGLSL" "disabled" POL_Shortcut "supercratebox.exe" "$TITLE" rm -rf "$POL_USER_ROOT/icones/32/SuperCrateBox" rm -rf "$POL_USER_ROOT/icones/32/Super Crate Box" rm -rf "$POL_USER_ROOT/icones/full_size/SuperCrateBox" rm -rf "$POL_USER_ROOT/icones/full_size/Super Crate Box" POL_Download $DOWNLOAD_ICON_512 c6e3fdcba1a5681c68f03222520ba752 POL_Download $DOWNLOAD_ICON_32 a32b903f8b3e7a4adacef3a081079ac1 mv SuperCrateBox_32.png "$POL_USER_ROOT/icones/32/SuperCrateBox" mv SuperCrateBox_512.png "$POL_USER_ROOT/icones/full_size/SuperCrateBox" POL_SetupWindow_Close exit 0
Without Custom Icons ( i really dont like the icon of the executable )
#!/bin/bash # Fecha : (06 Junio 2015) # Distro : Manjaro Linux 64-bit # Autor : Inukaze ( http://inukaze.wordpress.com / http://www.dailymotion.com/inukaze ) # Licencia : GPLv3 # PlayOnLinux: 4.2.8 [ "$PLAYONLINUX" = "" ] && exit 0 source "$PLAYONLINUX/lib/sources" POL_SetupWindow_Init POL_Debug_Init GAME_VMS="64" AUTHOR="Vlambeer" WINEVERSION="1.7.22" TITLE="Super Crate Box" PREFIX="SuperCrateBox" WORKING_WINE_VERSION="1.7.22" GAME_URL="http://supercratebox.com/" DOWNLOAD_GAME="http://www.supercratebox.com/download/supercratebox.rar" POL_Wine_SelectPrefix "$PREFIX" POL_Wine_PrefixCreate "1.7.22" POL_Call POL_Install_dsound POL_Call POL_Install_dinput POL_Call POL_Install_directmusic rm -rf "$WINEPREFIX/drive_c/SuperCrateBox" rm -rf "$POL_USER_ROOT/icones/32/SuperCrateBox" rm -rf "$POL_USER_ROOT/icones/32/Super Crate Box" rm -rf "$POL_USER_ROOT/icones/full_size/SuperCrateBox" rm -rf "$POL_USER_ROOT/icones/full_size/Super Crate Box" mkdir -p "$WINEPREFIX/drive_c/SuperCrateBox" ; cd "$WINEPREFIX/drive_c/SuperCrateBox" POL_Download $DOWNLOAD_GAME 962d90ba1aa0e8095f2cbfd2940c5858 if [ $(which unrar) ];then unrar x supercratebox.rar else POL_SetupWindow_message "$(eval_gettext 'Game Extract failed (Missing unrar).')" "$TITLE" fi POL_SetupWindow_VMS $GAME_VMS POL_Wine_Direct3D "DirectDrawRenderer" "opengl" POL_Wine_Direct3D "Multisampling" "disabled" POL_Wine_Direct3D "OffscreenRenderingMode" "pbuffer" POL_Wine_Direct3D "StrictDrawOrdering" "disabled" POL_Wine_Direct3D "UseGLSL" "disabled" POL_Shortcut "supercratebox.exe" "$TITLE" rm -rf "$POL_USER_ROOT/icones/32/SuperCrateBox" rm -rf "$POL_USER_ROOT/icones/32/Super Crate Box" rm -rf "$POL_USER_ROOT/icones/full_size/SuperCrateBox" rm -rf "$POL_USER_ROOT/icones/full_size/Super Crate Box" POL_SetupWindow_Close exit 0
Well if you don't like the custom icon download from my dropbox , you can use without that icons XD
Edited by inukaze |
inukaze | Wednesday 3 June 2015 at 2:41 |
inukaze
|
i update the Source Code for Script , someone can test it , please ??? |
petch | Wednesday 3 June 2015 at 3:05 |
petch
|
Hi, That looks way better! POL_Wine_Direct3D "DirectDrawRenderer" "opengl" POL_Wine_Direct3D "StrictDrawOrdering" "disabled" I think those two options are the Wine defaults, are those statements required? For the icon it can be put on the web server so that POL_Shortcut can make use of it, I can probably make final adjustments to the script to do that, I'll need to uploading the icon anyway. if [ $( which unrar) ]; then unrar x supercratebox.rar else POL_SetupWindow_message "$(eval_gettext 'Game Extract failed (Missing unrar).')" "$TITLE" fi I think you should check for unrar as early as possible, right after POL_SetupWindow_Init, and then terminate the script (say using POL_Debug_Fatal) if it's missing. No need to go on if the archive can't be unpacked. And it's too bad they're using some RAR proprietary algorithm, otherwise using 7-zip would have been a better option (p7zip-full is a dependency of PlayOnLinux) :( Edited by petch My scripts wiki: https://github.com/petchema/playonlinux/wiki GOGmix: https://www.gog.com/en/mix/playonlinux_install_scripts |
inukaze | Wednesday 3 June 2015 at 5:00 |
inukaze
|
Ok Updating Source Code :
#!/bin/bash # Fecha : (06 Junio 2015) # Distro : Manjaro Linux 64-bit # Autor : Inukaze ( http://inukaze.wordpress.com / http://www.dailymotion.com/inukaze ) # Licencia : GPLv3 # PlayOnLinux: 4.2.8 [ "$PLAYONLINUX" = "" ] && exit 0 source "$PLAYONLINUX/lib/sources" POL_SetupWindow_Init POL_Debug_Init GAME_VMS="64" AUTHOR="Vlambeer" WINEVERSION="1.7.22" TITLE="Super Crate Box" PREFIX="Super_Crate_Box" WORKING_WINE_VERSION="1.7.22" GAME_URL="http://supercratebox.com/" DOWNLOAD_GAME="http://www.supercratebox.com/download/supercratebox.rar" DOWNLOAD_ICON_512="https://dl.dropboxusercontent.com/u/3164499/Linux/Wine/drive_c/icono/SuperCrateBox_512.png" DOWNLOAD_ICON_32="https://dl.dropboxusercontent.com/u/3164499/Linux/Wine/drive_c/icono/SuperCrateBox_32.png" POL_Wine_SelectPrefix "$PREFIX" POL_Wine_PrefixCreate "1.7.22" POL_Call POL_Install_dsound POL_Call POL_Install_dinput POL_Call POL_Install_directmusic rm -rf "$WINEPREFIX/drive_c/SuperCrateBox" mkdir -p "$WINEPREFIX/drive_c/SuperCrateBox" ; cd "$WINEPREFIX/drive_c/SuperCrateBox" POL_Download $DOWNLOAD_GAME 962d90ba1aa0e8095f2cbfd2940c5858 if [ $(which 7z) ];then 7z x supercratebox.rar &> /dev/null else POL_SetupWindow_message "$(eval_gettext 'Game Extract failed (Missing 7z).')" "$TITLE" fi POL_SetupWindow_VMS $GAME_VMS POL_Wine_Direct3D "OffscreenRenderingMode" "pbuffer" POL_Wine_Direct3D "UseGLSL" "disabled" POL_Shortcut "supercratebox.exe" "$TITLE" rm -rf "$POL_USER_ROOT/icones/32/SuperCrateBox" rm -rf "$POL_USER_ROOT/icones/32/Super Crate Box" rm -rf "$POL_USER_ROOT/icones/full_size/SuperCrateBox" rm -rf "$POL_USER_ROOT/icones/full_size/Super Crate Box" POL_Download $DOWNLOAD_ICON_512 c6e3fdcba1a5681c68f03222520ba752 POL_Download $DOWNLOAD_ICON_32 a32b903f8b3e7a4adacef3a081079ac1 mv SuperCrateBox_32.png "$POL_USER_ROOT/icones/32/$TITLE" mv SuperCrateBox_512.png "$POL_USER_ROOT/icones/full_size/$TITLE" POL_SetupWindow_Close exit 0
=) well i hope this works well XD . |
petch | Wednesday 3 June 2015 at 8:24 |
petch
|
Looks OK to me :) My scripts wiki: https://github.com/petchema/playonlinux/wiki GOGmix: https://www.gog.com/en/mix/playonlinux_install_scripts |
Ronin DUSETTE | Wednesday 3 June 2015 at 16:10 |
Ronin DUSETTE
|
There are a couple of redundant variables (WINEVERSION and WORKING_WINE_VERSION), and neither one is used. You should probably just use WINEVERSION, and change: POL_Wine_PrefixCreate "1.7.22" to
POL_Wine_PrefixCreate "$WINEVERSION" Other than that it looks fine to me, as well. Please: Post debug logs & full computer specs in first post No private messages for general help, use the forums Read the wiki, Report broken scripts |
inukaze | Wednesday 3 June 2015 at 18:15 |
inukaze
|
Thank you , how i tell before , i dont know what are the diferences between that variables , then just WINEVERSION and POL_Wine_PrefixCreate "$WINVERSION" ? Look here ->
#!/bin/bash # Fecha : (06 Junio 2015) # Distro : Manjaro Linux 64-bit # Autor : Inukaze ( http://inukaze.wordpress.com / http://www.dailymotion.com/inukaze ) # Licencia : GPLv3 # PlayOnLinux: 4.2.8 [ "$PLAYONLINUX" = "" ] && exit 0 source "$PLAYONLINUX/lib/sources" POL_SetupWindow_Init POL_Debug_Init GAME_VMS="64" AUTHOR="Vlambeer" WINEVERSION="1.7.22" TITLE="Super Crate Box" PREFIX="Super_Crate_Box" GAME_URL="http://supercratebox.com/" DOWNLOAD_GAME="http://www.supercratebox.com/download/supercratebox.rar" DOWNLOAD_ICON_512="https://dl.dropboxusercontent.com/u/3164499/Linux/Wine/drive_c/icono/SuperCrateBox_512.png" DOWNLOAD_ICON_32="https://dl.dropboxusercontent.com/u/3164499/Linux/Wine/drive_c/icono/SuperCrateBox_32.png" POL_Wine_SelectPrefix "$PREFIX" POL_Wine_PrefixCreate "$WINEVERSION" POL_Call POL_Install_dsound POL_Call POL_Install_dinput POL_Call POL_Install_directmusic rm -rf "$WINEPREFIX/drive_c/SuperCrateBox" mkdir -p "$WINEPREFIX/drive_c/SuperCrateBox" ; cd "$WINEPREFIX/drive_c/SuperCrateBox" POL_Download $DOWNLOAD_GAME 962d90ba1aa0e8095f2cbfd2940c5858 if [ $(which 7z) ];then 7z x supercratebox.rar &> /dev/null else POL_SetupWindow_message "$(eval_gettext 'Game Extract failed (Missing 7z).')" "$TITLE" fi POL_SetupWindow_VMS $GAME_VMS POL_Wine_Direct3D "OffscreenRenderingMode" "pbuffer" POL_Wine_Direct3D "UseGLSL" "disabled" POL_Shortcut "supercratebox.exe" "$TITLE" rm -rf "$POL_USER_ROOT/icones/32/SuperCrateBox" rm -rf "$POL_USER_ROOT/icones/32/Super Crate Box" rm -rf "$POL_USER_ROOT/icones/full_size/SuperCrateBox" rm -rf "$POL_USER_ROOT/icones/full_size/Super Crate Box" POL_Download $DOWNLOAD_ICON_512 c6e3fdcba1a5681c68f03222520ba752 POL_Download $DOWNLOAD_ICON_32 a32b903f8b3e7a4adacef3a081079ac1 mv SuperCrateBox_32.png "$POL_USER_ROOT/icones/32/$TITLE" mv SuperCrateBox_512.png "$POL_USER_ROOT/icones/full_size/$TITLE" POL_SetupWindow_Close exit 0
That source code , are right ??? Edited by inukaze |
Ronin DUSETTE | Wednesday 3 June 2015 at 18:20 |
Ronin DUSETTE
|
Yes. :) That looks much better. Plus, when you need to update a variable, you don't have to hunt them down if they are unique, organized, and at the top. Please: Post debug logs & full computer specs in first post No private messages for general help, use the forums Read the wiki, Report broken scripts |
inukaze | Wednesday 3 June 2015 at 19:31 |
inukaze
|
i ever put the variables on the top , for example , my "Graphical Installer" for Zezenia Online , just bash and external commands #!/bin/bash ThisDIR=(pwd) #CURL=$(whereis -B "/usr/sbin" "/usr/local/sbin" "/sbin" "/usr/bin" "/usr/local/bin" "/bin" -b curl | grep -i "curl" | cut -d " " -f02) #CURL=$(echo $CURL | awk -F'/' '/^/ { print $4 }') WGET=$(whereis -B "/usr/sbin" "/usr/local/sbin" "/sbin" "/usr/bin" "/usr/local/bin" "/bin" -b wget | grep -i "wget" | cut -d " " -f02) WGET=$(echo $WGET | awk -F'/' '/^/ { print $4 }') URLSOFT="http://www.zezeniaonline.com/download/downloadlinux" URLICON="http://s22.postimg.org/rpkttkefl/Zezenia_logo.png" #CURL#if [ "$DOWNLOADER" = "curl" ]; then #CURL# $DOWNLOADER -# -o ZezeniaLinux.zip -O http://www.zezeniaonline.com/download/downloadlinux #CURL# $DOWNLOADER -# -o Zezenia.png -O http://s22.postimg.org/rpkttkefl/Zezenia_logo.png #CURL#else #CURL# "You dont have a downloader tool : curl" #CURL# #CURL#fi #FileList#FILELIST=$(ls /tmp/FileList-$RANDOM) #FileList#if test -f /tmp/FileList-$RANDOM #FileList# then #FileList# rm /tmp/FileList-$RANDOM #FileList# echo "http://s22.postimg.org/rpkttkefl/Zezenia_logo.png #FileList# http://www.zezeniaonline.com/download/downloadlinux"|tee /tmp/FileList-$RANDOM #FileList# FILELIST=$(cat /tmp/FileList-$RANDOM) #FileList#fi # ssft -> Shell Scripts Frontend Tool # python-dialog # kdialog (Package : kdebase-bin / kde-baseapps-bin) # Yad (yet another dialog) is a fork of Zenity with many improvements, such # as custom buttons, additional dialogs, pop-up menu in notification icon # and more. MATE=$(ps -A | grep mate-session | awk '{print $4}') XFCE=$(ps -A | grep xfce-session | awk '{print $4}') XFCE4=$(ps -A | grep xfce4-session | awk '{print $4}') if [ "$MATE" = "mate-session" ];then DESKTOP="$MATE" fi if [ "$XFCE" = "xfce-session" ]; then DESKTOP="$XFCE" fi if [ "$XFCE4" = "xfce4-session" ]; then DESKTOP="$XFCE4" fi MATEDIALOG=$(whereis -B "/usr/sbin" "/usr/local/sbin" "/sbin" "/usr/bin" "/usr/local/bin" "/bin" -b zenity | grep -i "matedialog" | cut -d " " -f02) MATEDIALOG=$(echo $ZENITY | awk -F'/' '/^/ { print $4 }') ZENITY=$(whereis -B "/usr/sbin" "/usr/local/sbin" "/sbin" "/usr/bin" "/usr/local/bin" "/bin" -b zenity | grep -i "zenity" | cut -d " " -f02) ZENITY=$(echo $ZENITY | awk -F'/' '/^/ { print $4 }') KDIALOG=$(whereis -B "/usr/sbin" "/usr/local/sbin" "/sbin" "/usr/bin" "/usr/local/bin" "/bin" -b kdialog | grep -i "kdialog" | cut -d " " -f02) KDIALOG=$(echo $KDIALOG | awk -F'/' '/^/ { print $4 }') if [ "$DESKTOP" = "$XFCE4" ]; then TOOL=$ZENITY CONFIRM_INSTALL=$($TOOL --title "You wanna install?" --question --text "Do you really want to install in this Software?") if [ "$?" = 0 ]; then CONFIRM_INSTALL="Yes" export CONFIRM_INSTALL="Yes" # Falta agregar un "Progreso total" # 1 - Descargar Icono # 2 - Descarga el juego con "wget" si no esta wget usar curl en el directorio seleccionado # 3 - Crear la entrada de Menu del Software en donde fue instalado. # 4 - Finalizar Progreso y mostrar "Instalacion Finalizada" con un boton que diga "Ok" elif [ "$?" = 1 ]; then CONFIRM_INSTALL="No" export CONFIRM_INSTALL="No" echo "You Choose : No" else echo "ERROR" fi if [ "$CONFIRM_INSTALL" = "Yes" ]; then SELECT_DIR=$($TOOL --title "Please Choose a Directory" --file-selection --directory) CONFIRMDIR=$($TOOL --title "Directory Choise" --question --text "Do you really want to install in this directory?") if [ "$?" = 0 ]; then echo "Selected Folder : $SELECT_DIR" SELECT_DIR=$(echo "$SELECT_DIR") cd "$SELECT_DIR" SELECT_DIR=$(pwd) cd "$SELECT_DIR" rm -rf Start .Launch zezenia.gfx zezeniaclient Zezenia.desktop "$HOME/.local/share/applications/Zezenia.desktop" # SELECT_DIR=""$( cd -P "$( dirname "$" )" && pwd )"" # cd "$SELECT_DIR" wget -O .Zezenia.png $URLICON # Begun : Code From -> http://ubuntuforums.org/showthread.php?t=306515&page=2 # Start wget | zenity # Note the & at the end of the pipe, this allows the script to continue with wget running in the background # wget 2>&1 | sed -u 's/.*\ \([0-9]\+%\)\ \+\([0-9.]\+\ [KMB\/s]\+\)$/\1\n# Downloading \2/' | zenity --progress --title="Downloading File..." & wget -O ZezeniaLinux.zip $URLSOFT 2>&1 | sed -u 's/.* \([0-9]\+%\)\ \+\([0-9.]\+.\) \(.*\)/\1\n# Downloading at \2\/s \n ETA \3/' | zenity --progress --title="Installation" --auto-close #Start a loop testing if zenity is running, and if not kill wget RUNNING=0 while [ $RUNNING -eq 0 ] do if [ -z "$(pidof zenity)" ] then pkill wget RUNNING=1 fi done # Finish : Code From -> http://ubuntuforums.org/showthread.php?t=306515&page=2 unzip ZezeniaLinux.zip rm -rf ZezeniaLinux.zip chmod a+o+x zezeniaclient 2>/dev/null 1>/dev/null $(echo '#!/bin/sh # The Function of this script is # Find the real path of a script or program. # The Original Version From This Script Are From : # 17/FEB/2000 - Sam Lantinga, Loki Entertainment Software # This a retranslated version of the Script , i translate first to spanish # Inukaze From Venezuela # Site : http://inukaze.wordpress.com PATH_FINDER() { fullpath=$(echo $1 | grep /) if [ "$fullpath" = "" ]; then oIFS="$IFS" IFS=: for path in $PATH do if [ -x "$path/$1" ]; then if [ "$path" = "" ]; then path="." fi fullpath="$path/$1" break fi done IFS="$oIFS" fi if [ "$fullpath" = "" ]; then fullpath="$1" fi if [ -L "$fullpath" ]; then 'fullpath='$'"(ls -l "'"$fullpath"'" |sed -e 's/.* -> //' |sed -e 's/\*//')"' fi dirname $fullpath } if [ "${PROGRAM_PATH}" = "" ]; then PROGRAM_PATH="`PATH_FINDER $0`" fi LD_LIBRARY_PATH=.:${PROGRAM_PATH}:${LD_LIBRARY_PATH} export LD_LIBRARY_PATH if [ -x "${PROGRAM_PATH}/.Launch" ] then cd "${PROGRAM_PATH}/" exec "./.Launch" "$@" fi echo "'"I can't run this Software. Its the Statup Script written Correctly?"'" exit 1'|tee Start &> /dev/null) 2>/dev/null 1>/dev/null $(echo '#!/bin/bash PATH_TO_PROGRAM=$(pwd) PROGRAM="zezeniaclient" $(cd "$PATH_TO_PROGRAM" ; ./$PROGRAM "$@")'|tee .Launch &> /dev/null) 2>/dev/null 1>/dev/null $(echo '#!/usr/bin/env xdg-open [Desktop Entry] Version=1.0 Name=Zezenia Type=Application Exec=sh '$SELECT_DIR'/Start Icon='$SELECT_DIR/.Zezenia.png' Terminal=false Hidden=false Categories=Game StartupNotify=true X-KDE-SubstituteUID=false'|tee Zezenia.desktop &> /dev/null) chmod a+o+x Start .Launch Zezenia.desktop cp Zezenia.desktop $HOME/.local/share/applications CONFIRMRUN=$($TOOL --title "Run?" --question --text "Would you like to run?") if [ "$?" = 0 ]; then CONFIRMRUN="Yes" export CONFIRMRUN="Yes" elif [ "$?" = 1 ]; then CONFIRMRUN="No" export CONFIRMRUN="No" echo "You Choose : No" else echo "ERROR" fi if [ "$CONFIRMRUN" = "Yes" ]; then cd "$SELECT_DIR" if test -f Start then bash Start fi elif [ "$CONFIRMRUN" = "No" ]; then exit 1 fi # elif [ "$DOWNLOADER" = "curl" ]; then # "$DOWNLOADER" -# -o ZezeniaLinux.zip -O $URL_PROGRAM # else # echo "" # echo "You dont have a downloader tool like : wget or curl" # echo "Please install one downloader tool an try again" # echo "" fi # Falta agregar un "Progreso total" # 1 - Descargar Icono # 2 - Descarga el juego con "wget" si no esta wget usar curl en el directorio seleccionado # 3 - Crear la entrada de Menu del Software en donde fue instalado. # 4 - Finalizar Progreso y mostrar "Instalacion Finalizada" con un boton que diga "Ok" elif [ "$?" = 1 ]; then echo "You Choose Cancel" SELECT_DIR=$(echo "$SELECT_DIR") cd "$SELECT_DIR" SELECT_DIR=$(pwd) cd "$SELECT_DIR" rm -rf Start .Launch zezenia.gfx zezeniaclient Zezenia.desktop killall -9 $DOWNLOADER $TOOL else echo "ERROR" fi fi if [ "$DESKTOP" = "$KDE5" ]; then echo #CONFIRM=$(kdialog --title "" --yesno "Do you really want to install in this directory?") fi if [ "$DESKTOP" = "$KDE4" ]; then echo #CONFIRM=$(kdialog --title "" --yesno "Do you really want to install in this directory?") fi if [ "$DESKTOP" = "$KDE3" ]; then echo #CONFIRM=$(kdialog --title "" --yesno "Do you really want to install in this directory?") fi if [ "$DESKTOP" = "$TRINITY" ]; then echo #CONFIRM=$(kdialog --title "" --yesno "Do you really want to install in this directory?") fi
Well that , but i need test on Trinity for KDE3 , for know if works or not XD
|
Ronin DUSETTE | Wednesday 3 June 2015 at 19:33 |
Ronin DUSETTE
|
Ooo k. lol. Please: Post debug logs & full computer specs in first post No private messages for general help, use the forums Read the wiki, Report broken scripts |
This site allows content generated by members, and we promptly remove any content that infringes copyright according to our Terms of Service. To report copyright infringement, please send a notice to dmca-notice@playonlinux.com