aboutsummarylogtreecommitdiffstats
path: root/run.sh
diff options
context:
space:
mode:
authorCountStarlight2017-12-19 17:19:24 +0800
committerCountStarlight2017-12-19 17:19:24 +0800
commit8333ad8d6944f3593b910d5dddb974a94f4f782a (patch)
treeccc42f7c5f3a0d71adf3231a60ae1784e33effaf /run.sh
parentb0f56840ee0ad3a962a29b01f92b06f35912c921 (diff)
downloadaur-8333ad8d6944f3593b910d5dddb974a94f4f782a.tar.gz
Update run.sh and remove useless scripts.
Signed-off-by: CountStarlight <countstarlight@gmail.com>
Diffstat (limited to 'run.sh')
-rwxr-xr-x[-rw-r--r--]run.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/run.sh b/run.sh
index 2db25c0511b6..760bcd5f7bde 100644..100755
--- a/run.sh
+++ b/run.sh
@@ -81,6 +81,15 @@ RunApp()
CallApp
}
+CreateBottle()
+{
+ if [ -d "$WINEPREFIX" ]; then
+ UpdateApp
+ else
+ DeployApp
+ fi
+}
+
if [ -z $1 ]; then
RunApp
exit 0
@@ -89,9 +98,15 @@ case $1 in
"-r" | "--reset")
ResetApp
;;
+ "-c" | "--create")
+ CreateBottle
+ ;;
"-e" | "--remove")
RemoveApp
;;
+ "-u" | "--uri")
+ RunApp $2
+ ;;
"-h" | "--help")
HelpApp
;;