Added yad dialogues if in GUI session, retains the dialog interface if in console.
This commit is contained in:
@ -37,11 +37,15 @@
|
||||
# Works which are defined in the CPAL as a work which combines Covered Code
|
||||
# or portions thereof with code not governed by the terms of the CPAL.
|
||||
|
||||
|
||||
# Source dialog interface wrapper
|
||||
source "${0%/*}/../.includes/dialog-interface.sh"
|
||||
|
||||
cache="${XDG_CACHE_HOME:-$HOME/.cache}/audiogame-manager"
|
||||
url="https://stevend.net/downloads/scramble_win32.zip"
|
||||
(rm -v "${cache}/scramble_win32.zip"
|
||||
wget -O "${cache}/scramble_win32.zip" "$url" || { echo "Could not download file."; exit 1; }
|
||||
unzip -DDod "$HOME/.local/wine/scramble!/drive_c/Program Files" "${cache}/scramble_win32.zip"
|
||||
find ~/".local/wine/scramble!" -type f -name 'nvdaControllerClient32.dll' -exec cp -v "${cache}/nvdaControllerClient32.dll" "{}" \;) | dialog --progressbox "updating Scramble!, please wait..." -1 -1
|
||||
find ~/".local/wine/scramble!" -type f -name 'nvdaControllerClient32.dll' -exec cp -v "${cache}/nvdaControllerClient32.dll" "{}" \;) | agm_progressbox "Scramble Update" "Updating Scramble!, please wait..."
|
||||
|
||||
exit 0
|
||||
|
Reference in New Issue
Block a user