-
Notifications
You must be signed in to change notification settings - Fork 1
/
grab_datafiles.sh
executable file
·147 lines (135 loc) · 4.39 KB
/
grab_datafiles.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
#!/usr/bin/env sh
# This is a simple script to download the DB4S release files from GitHub, so they're present for the GitHub Actions
# based Go test workflow
# Immediately error out if any of the commands doesn't succeed
set -e
# Download the release files
mkdir -p data
cd data
OPTIONS="-sSOL"
# 3.10.1
for file in \
DB.Browser.for.SQLite-3.10.1-win32.exe \
DB.Browser.for.SQLite-3.10.1-win64.exe \
DB.Browser.for.SQLite-3.10.1.dmg \
SQLiteDatabaseBrowserPortable_3.10.1_English.paf.exe; do
if [ ! -s "${file}" ]; then
echo
echo "Downloading ${file}"
curl "${OPTIONS}" "https://github.com/sqlitebrowser/sqlitebrowser/releases/download/v3.10.1/${file}"
else
echo " * ${file} already downloaded"
fi
done
# 3.11.0
for file in \
DB.Browser.for.SQLite-3.11.0-win32.msi \
DB.Browser.for.SQLite-3.11.0-win32.zip \
DB.Browser.for.SQLite-3.11.0-win64.msi \
DB.Browser.for.SQLite-3.11.0-win64.zip \
DB.Browser.for.SQLite-3.11.0.dmg; do
if [ ! -s "${file}" ]; then
echo
echo "Downloading ${file}"
curl "${OPTIONS}" "https://github.com/sqlitebrowser/sqlitebrowser/releases/download/v3.11.0/${file}"
else
echo " * ${file} already downloaded"
fi
done
# 3.11.1
for file in \
DB.Browser.for.SQLite-3.11.1-win32.msi \
DB.Browser.for.SQLite-3.11.1-win32.zip \
DB.Browser.for.SQLite-3.11.1-win64.msi \
DB.Browser.for.SQLite-3.11.1-win64.zip \
DB.Browser.for.SQLite-3.11.1v2.dmg; do
if [ ! -s "${file}" ]; then
echo
echo "Downloading ${file}"
curl "${OPTIONS}" "https://github.com/sqlitebrowser/sqlitebrowser/releases/download/v3.11.1/${file}"
else
echo " * ${file} already downloaded"
fi
done
# 3.11.2
for file in \
DB.Browser.for.SQLite-3.11.2-win32.msi \
DB.Browser.for.SQLite-3.11.2-win32.zip \
DB.Browser.for.SQLite-3.11.2-win64.msi \
DB.Browser.for.SQLite-3.11.2-win64.zip \
DB.Browser.for.SQLite-3.11.2.dmg \
SQLiteDatabaseBrowserPortable_3.11.2_Rev_2_English.paf.exe; do
if [ ! -s "${file}" ]; then
echo
echo "Downloading ${file}"
curl "${OPTIONS}" "https://github.com/sqlitebrowser/sqlitebrowser/releases/download/v3.11.2/${file}"
else
echo " * ${file} already downloaded"
fi
done
# 3.12.0
for file in \
DB.Browser.for.SQLite-3.12.0-win32.msi \
DB.Browser.for.SQLite-3.12.0-win32.zip \
DB.Browser.for.SQLite-3.12.0-win64.msi \
DB.Browser.for.SQLite-3.12.0-win64.zip \
DB.Browser.for.SQLite-3.12.0.dmg \
SQLiteDatabaseBrowserPortable_3.12.0_English.paf.exe; do
if [ ! -s "${file}" ]; then
echo
echo "Downloading ${file}"
curl "${OPTIONS}" "https://github.com/sqlitebrowser/sqlitebrowser/releases/download/v3.12.0/${file}"
else
echo " * ${file} already downloaded"
fi
done
# 3.12.2
for file in \
DB.Browser.for.SQLite-3.12.2-win32.msi \
DB.Browser.for.SQLite-3.12.2-win32.zip \
DB.Browser.for.SQLite-3.12.2-win64.msi \
DB.Browser.for.SQLite-3.12.2-win64.zip \
DB.Browser.for.SQLite-3.12.2.dmg \
DB.Browser.for.SQLite-arm64-3.12.2.dmg \
DB_Browser_for_SQLite-v3.12.2-x86_64.AppImage \
SQLiteDatabaseBrowserPortable_3.12.2_English.paf.exe; do
if [ ! -s "${file}" ]; then
echo
echo "Downloading ${file}"
curl "${OPTIONS}" "https://github.com/sqlitebrowser/sqlitebrowser/releases/download/v3.12.2/${file}"
else
echo " * ${file} already downloaded"
fi
done
# 3.13.0
for file in \
DB.Browser.for.SQLite-v3.13.0.dmg \
DB.Browser.for.SQLite-v3.13.0-win32.msi \
DB.Browser.for.SQLite-v3.13.0-win32.zip \
DB.Browser.for.SQLite-v3.13.0-win64.msi \
DB.Browser.for.SQLite-v3.13.0-win64.zip \
DB.Browser.for.SQLite-v3.13.0-x86.64.AppImage; do
if [ ! -s "${file}" ]; then
echo
echo "Downloading ${file}"
curl "${OPTIONS}" "https://github.com/sqlitebrowser/sqlitebrowser/releases/download/v3.13.0/${file}"
else
echo " * ${file} already downloaded"
fi
done
# 3.13.1
for file in \
DB.Browser.for.SQLite-v3.13.1.dmg \
DB.Browser.for.SQLite-v3.13.1-win32.msi \
DB.Browser.for.SQLite-v3.13.1-win32.zip \
DB.Browser.for.SQLite-v3.13.1-win64.msi \
DB.Browser.for.SQLite-v3.13.1-win64.zip \
DB.Browser.for.SQLite-v3.13.1-x86.64-v2.AppImage; do
if [ ! -s "${file}" ]; then
echo
echo "Downloading ${file}"
curl "${OPTIONS}" "https://github.com/sqlitebrowser/sqlitebrowser/releases/download/v3.13.1/${file}"
else
echo " * ${file} already downloaded"
fi
done