Compare commits
2 Commits
master
...
setup-fixe
Author | SHA1 | Date |
---|---|---|
Joshua Ashton | 62c866a229 | |
Joshua Ashton | 30c6605f25 |
|
@ -44,6 +44,9 @@ fi
|
|||
|
||||
# find wine executable
|
||||
export WINEDEBUG=-all
|
||||
# disable mscoree and mshtml to avoid downloading
|
||||
# wine gecko and mono
|
||||
export WINEDLLOVERRIDES="mscoree,mshtml="
|
||||
|
||||
wine="wine"
|
||||
wine64="wine64"
|
||||
|
@ -117,11 +120,10 @@ installFile() {
|
|||
else
|
||||
rm -v "${dstfile}"
|
||||
fi
|
||||
$file_cmd "${srcfile}" "${dstfile}"
|
||||
else
|
||||
echo "${dstfile}: File not found in wine prefix" >&2
|
||||
return 1
|
||||
touch "${dstfile}.old_none"
|
||||
fi
|
||||
$file_cmd "${srcfile}" "${dstfile}"
|
||||
fi
|
||||
return 0
|
||||
}
|
||||
|
@ -145,6 +147,10 @@ uninstallFile() {
|
|||
rm -v "${dstfile}"
|
||||
mv -v "${dstfile}.old" "${dstfile}"
|
||||
return 0
|
||||
elif [ -f "${dstfile}.old_none" ]; then
|
||||
rm -v "${dstfile}.old_none"
|
||||
rm -v "${dstfile}"
|
||||
return 0
|
||||
else
|
||||
return 1
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue