generated from habedi/template-go-project
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsimple_example.sh
40 lines (29 loc) · 1.03 KB
/
simple_example.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/bin/bash
echo "Sample script to demonstrate Gogg's basic functionalities"
sleep 1
# Find the Gogg executable
GOGG=$(command -v bin/gogg || command -v gogg || command -v ./gogg)
echo "Show Gogg's top-level commands"
$GOGG --help
sleep 1
echo "Show the version"
$GOGG version
sleep 1
#echo "Login to GOG.com"
#$GOGG login
#sleep 1
echo "Update game catalogue with the data from GOG.com"
$GOGG catalogue refresh
sleep 1
echo "Search for games with specific terms in their titles"
$GOGG catalogue search "Witcher"
$GOGG catalogue search "mess"
echo "Download a specific game (\"The Messenger\") with the given options"
$GOGG download 1433116924 ./games --platform=all --lang=en --threads=4 \
--dlcs=true --extras=false --resume=true --flatten=true
echo "Show the downloaded game files"
tree ./games
echo "Display hash values of the downloaded game files"
$GOGG file hash ./games --algo=md5
echo "Calculate the total size of (\"The Messenger\") game files in MB"
$GOGG file size 1433116924 --platform=windows --lang=en --dlcs=true --extras=false