Skip to content

Commit bb802fa

Browse files
authored
Initial updates for 3.13.1 release (#3)
1 parent 8a8c80a commit bb802fa

File tree

4 files changed

+181
-47
lines changed

4 files changed

+181
-47
lines changed

grab_datafiles.sh

Lines changed: 123 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -7,59 +7,141 @@
77
set -e
88

99
# Download the release files
10-
mkdir data
10+
mkdir -p data
1111
cd data
1212

13+
OPTIONS="-sSOL"
14+
1315
# 3.10.1
14-
curl -sSOL https://github.com/sqlitebrowser/sqlitebrowser/releases/download/v3.10.1/DB.Browser.for.SQLite-3.10.1-win32.exe
15-
curl -sSOL https://github.com/sqlitebrowser/sqlitebrowser/releases/download/v3.10.1/DB.Browser.for.SQLite-3.10.1-win64.exe
16-
curl -sSOL https://github.com/sqlitebrowser/sqlitebrowser/releases/download/v3.10.1/DB.Browser.for.SQLite-3.10.1.dmg
17-
curl -sSOL https://github.com/sqlitebrowser/sqlitebrowser/releases/download/v3.10.1/SQLiteDatabaseBrowserPortable_3.10.1_English.paf.exe
16+
for file in \
17+
DB.Browser.for.SQLite-3.10.1-win32.exe \
18+
DB.Browser.for.SQLite-3.10.1-win64.exe \
19+
DB.Browser.for.SQLite-3.10.1.dmg \
20+
SQLiteDatabaseBrowserPortable_3.10.1_English.paf.exe; do
21+
if [ ! -s "${file}" ]; then
22+
echo
23+
echo "Downloading ${file}"
24+
curl "${OPTIONS}" "https://github.com/sqlitebrowser/sqlitebrowser/releases/download/v3.10.1/${file}"
25+
else
26+
echo " * ${file} already downloaded"
27+
fi
28+
done
1829

1930
# 3.11.0
20-
curl -sSOL https://github.com/sqlitebrowser/sqlitebrowser/releases/download/v3.11.0/DB.Browser.for.SQLite-3.11.0-win32.msi
21-
curl -sSOL https://github.com/sqlitebrowser/sqlitebrowser/releases/download/v3.11.0/DB.Browser.for.SQLite-3.11.0-win32.zip
22-
curl -sSOL https://github.com/sqlitebrowser/sqlitebrowser/releases/download/v3.11.0/DB.Browser.for.SQLite-3.11.0-win64.msi
23-
curl -sSOL https://github.com/sqlitebrowser/sqlitebrowser/releases/download/v3.11.0/DB.Browser.for.SQLite-3.11.0-win64.zip
24-
curl -sSOL https://github.com/sqlitebrowser/sqlitebrowser/releases/download/v3.11.0/DB.Browser.for.SQLite-3.11.0.dmg
31+
for file in \
32+
DB.Browser.for.SQLite-3.11.0-win32.msi \
33+
DB.Browser.for.SQLite-3.11.0-win32.zip \
34+
DB.Browser.for.SQLite-3.11.0-win64.msi \
35+
DB.Browser.for.SQLite-3.11.0-win64.zip \
36+
DB.Browser.for.SQLite-3.11.0.dmg; do
37+
if [ ! -s "${file}" ]; then
38+
echo
39+
echo "Downloading ${file}"
40+
curl "${OPTIONS}" "https://github.com/sqlitebrowser/sqlitebrowser/releases/download/v3.11.0/${file}"
41+
else
42+
echo " * ${file} already downloaded"
43+
fi
44+
done
2545

2646
# 3.11.1
27-
curl -sSOL https://github.com/sqlitebrowser/sqlitebrowser/releases/download/v3.11.1/DB.Browser.for.SQLite-3.11.1-win32.msi
28-
curl -sSOL https://github.com/sqlitebrowser/sqlitebrowser/releases/download/v3.11.1/DB.Browser.for.SQLite-3.11.1-win32.zip
29-
curl -sSOL https://github.com/sqlitebrowser/sqlitebrowser/releases/download/v3.11.1/DB.Browser.for.SQLite-3.11.1-win64.msi
30-
curl -sSOL https://github.com/sqlitebrowser/sqlitebrowser/releases/download/v3.11.1/DB.Browser.for.SQLite-3.11.1-win64.zip
31-
curl -sSOL https://github.com/sqlitebrowser/sqlitebrowser/releases/download/v3.11.1/DB.Browser.for.SQLite-3.11.1v2.dmg
47+
for file in \
48+
DB.Browser.for.SQLite-3.11.1-win32.msi \
49+
DB.Browser.for.SQLite-3.11.1-win32.zip \
50+
DB.Browser.for.SQLite-3.11.1-win64.msi \
51+
DB.Browser.for.SQLite-3.11.1-win64.zip \
52+
DB.Browser.for.SQLite-3.11.1v2.dmg; do
53+
if [ ! -s "${file}" ]; then
54+
echo
55+
echo "Downloading ${file}"
56+
curl "${OPTIONS}" "https://github.com/sqlitebrowser/sqlitebrowser/releases/download/v3.11.1/${file}"
57+
else
58+
echo " * ${file} already downloaded"
59+
fi
60+
done
3261

3362
# 3.11.2
34-
curl -sSOL https://github.com/sqlitebrowser/sqlitebrowser/releases/download/v3.11.2/DB.Browser.for.SQLite-3.11.2-win32.msi
35-
curl -sSOL https://github.com/sqlitebrowser/sqlitebrowser/releases/download/v3.11.2/DB.Browser.for.SQLite-3.11.2-win32.zip
36-
curl -sSOL https://github.com/sqlitebrowser/sqlitebrowser/releases/download/v3.11.2/DB.Browser.for.SQLite-3.11.2-win64.msi
37-
curl -sSOL https://github.com/sqlitebrowser/sqlitebrowser/releases/download/v3.11.2/DB.Browser.for.SQLite-3.11.2-win64.zip
38-
curl -sSOL https://github.com/sqlitebrowser/sqlitebrowser/releases/download/v3.11.2/DB.Browser.for.SQLite-3.11.2.dmg
39-
curl -sSOL https://github.com/sqlitebrowser/sqlitebrowser/releases/download/v3.11.2/SQLiteDatabaseBrowserPortable_3.11.2_Rev_2_English.paf.exe
63+
for file in \
64+
DB.Browser.for.SQLite-3.11.2-win32.msi \
65+
DB.Browser.for.SQLite-3.11.2-win32.zip \
66+
DB.Browser.for.SQLite-3.11.2-win64.msi \
67+
DB.Browser.for.SQLite-3.11.2-win64.zip \
68+
DB.Browser.for.SQLite-3.11.2.dmg \
69+
SQLiteDatabaseBrowserPortable_3.11.2_Rev_2_English.paf.exe; do
70+
if [ ! -s "${file}" ]; then
71+
echo
72+
echo "Downloading ${file}"
73+
curl "${OPTIONS}" "https://github.com/sqlitebrowser/sqlitebrowser/releases/download/v3.11.2/${file}"
74+
else
75+
echo " * ${file} already downloaded"
76+
fi
77+
done
4078

4179
# 3.12.0
42-
curl -sSOL https://github.com/sqlitebrowser/sqlitebrowser/releases/download/v3.12.0/DB.Browser.for.SQLite-3.12.0-win32.msi
43-
curl -sSOL https://github.com/sqlitebrowser/sqlitebrowser/releases/download/v3.12.0/DB.Browser.for.SQLite-3.12.0-win32.zip
44-
curl -sSOL https://github.com/sqlitebrowser/sqlitebrowser/releases/download/v3.12.0/DB.Browser.for.SQLite-3.12.0-win64.msi
45-
curl -sSOL https://github.com/sqlitebrowser/sqlitebrowser/releases/download/v3.12.0/DB.Browser.for.SQLite-3.12.0-win64.zip
46-
curl -sSOL https://github.com/sqlitebrowser/sqlitebrowser/releases/download/v3.12.0/DB.Browser.for.SQLite-3.12.0.dmg
47-
curl -sSOL https://github.com/sqlitebrowser/sqlitebrowser/releases/download/v3.12.0/SQLiteDatabaseBrowserPortable_3.12.0_English.paf.exe
80+
for file in \
81+
DB.Browser.for.SQLite-3.12.0-win32.msi \
82+
DB.Browser.for.SQLite-3.12.0-win32.zip \
83+
DB.Browser.for.SQLite-3.12.0-win64.msi \
84+
DB.Browser.for.SQLite-3.12.0-win64.zip \
85+
DB.Browser.for.SQLite-3.12.0.dmg \
86+
SQLiteDatabaseBrowserPortable_3.12.0_English.paf.exe; do
87+
if [ ! -s "${file}" ]; then
88+
echo
89+
echo "Downloading ${file}"
90+
curl "${OPTIONS}" "https://github.com/sqlitebrowser/sqlitebrowser/releases/download/v3.12.0/${file}"
91+
else
92+
echo " * ${file} already downloaded"
93+
fi
94+
done
4895

4996
# 3.12.2
50-
curl -sSOL https://github.com/sqlitebrowser/sqlitebrowser/releases/download/v3.12.2/DB.Browser.for.SQLite-3.12.2-win32.msi
51-
curl -sSOL https://github.com/sqlitebrowser/sqlitebrowser/releases/download/v3.12.2/DB.Browser.for.SQLite-3.12.2-win32.zip
52-
curl -sSOL https://github.com/sqlitebrowser/sqlitebrowser/releases/download/v3.12.2/DB.Browser.for.SQLite-3.12.2-win64.msi
53-
curl -sSOL https://github.com/sqlitebrowser/sqlitebrowser/releases/download/v3.12.2/DB.Browser.for.SQLite-3.12.2-win64.zip
54-
curl -sSOL https://github.com/sqlitebrowser/sqlitebrowser/releases/download/v3.12.2/DB.Browser.for.SQLite-3.12.2.dmg
55-
curl -sSOL https://github.com/sqlitebrowser/sqlitebrowser/releases/download/v3.12.2/DB.Browser.for.SQLite-arm64-3.12.2.dmg
56-
curl -sSOL https://github.com/sqlitebrowser/sqlitebrowser/releases/download/v3.12.2/DB_Browser_for_SQLite-v3.12.2-x86_64.AppImage
57-
curl -sSOL https://github.com/sqlitebrowser/sqlitebrowser/releases/download/v3.12.2/SQLiteDatabaseBrowserPortable_3.12.2_English.paf.exe
97+
for file in \
98+
DB.Browser.for.SQLite-3.12.2-win32.msi \
99+
DB.Browser.for.SQLite-3.12.2-win32.zip \
100+
DB.Browser.for.SQLite-3.12.2-win64.msi \
101+
DB.Browser.for.SQLite-3.12.2-win64.zip \
102+
DB.Browser.for.SQLite-3.12.2.dmg \
103+
DB.Browser.for.SQLite-arm64-3.12.2.dmg \
104+
DB_Browser_for_SQLite-v3.12.2-x86_64.AppImage \
105+
SQLiteDatabaseBrowserPortable_3.12.2_English.paf.exe; do
106+
if [ ! -s "${file}" ]; then
107+
echo
108+
echo "Downloading ${file}"
109+
curl "${OPTIONS}" "https://github.com/sqlitebrowser/sqlitebrowser/releases/download/v3.12.2/${file}"
110+
else
111+
echo " * ${file} already downloaded"
112+
fi
113+
done
58114

59115
# 3.13.0
60-
curl -sSOL https://github.com/sqlitebrowser/sqlitebrowser/releases/download/v3.13.0/DB.Browser.for.SQLite-v3.13.0.dmg
61-
curl -sSOL https://github.com/sqlitebrowser/sqlitebrowser/releases/download/v3.13.0/DB.Browser.for.SQLite-v3.13.0-win32.msi
62-
curl -sSOL https://github.com/sqlitebrowser/sqlitebrowser/releases/download/v3.13.0/DB.Browser.for.SQLite-v3.13.0-win32.zip
63-
curl -sSOL https://github.com/sqlitebrowser/sqlitebrowser/releases/download/v3.13.0/DB.Browser.for.SQLite-v3.13.0-win64.msi
64-
curl -sSOL https://github.com/sqlitebrowser/sqlitebrowser/releases/download/v3.13.0/DB.Browser.for.SQLite-v3.13.0-win64.zip
65-
curl -sSOL https://github.com/sqlitebrowser/sqlitebrowser/releases/download/v3.13.0/DB.Browser.for.SQLite-v3.13.0-x86.64.AppImage
116+
for file in \
117+
DB.Browser.for.SQLite-v3.13.0.dmg \
118+
DB.Browser.for.SQLite-v3.13.0-win32.msi \
119+
DB.Browser.for.SQLite-v3.13.0-win32.zip \
120+
DB.Browser.for.SQLite-v3.13.0-win64.msi \
121+
DB.Browser.for.SQLite-v3.13.0-win64.zip \
122+
DB.Browser.for.SQLite-v3.13.0-x86.64.AppImage; do
123+
if [ ! -s "${file}" ]; then
124+
echo
125+
echo "Downloading ${file}"
126+
curl "${OPTIONS}" "https://github.com/sqlitebrowser/sqlitebrowser/releases/download/v3.13.0/${file}"
127+
else
128+
echo " * ${file} already downloaded"
129+
fi
130+
done
131+
132+
# 3.13.1
133+
for file in \
134+
DB.Browser.for.SQLite-v3.13.1.dmg \
135+
DB.Browser.for.SQLite-v3.13.1-win32.msi \
136+
DB.Browser.for.SQLite-v3.13.1-win32.zip \
137+
DB.Browser.for.SQLite-v3.13.1-win64.msi \
138+
DB.Browser.for.SQLite-v3.13.1-win64.zip \
139+
DB.Browser.for.SQLite-v3.13.1-x86.64.AppImage; do
140+
if [ ! -s "${file}" ]; then
141+
echo
142+
echo "Downloading ${file}"
143+
curl "${OPTIONS}" "https://github.com/sqlitebrowser/sqlitebrowser/releases/download/v3.13.1/${file}"
144+
else
145+
echo " * ${file} already downloaded"
146+
fi
147+
done

main.go

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ var (
3838
// bother any more as that's probably not important
3939
timeStamps = map[string]time.Time{
4040
// SHA256 checksums
41-
"SHA256SUMS.txt": time.Date(2024, time.July, 22, 12, 41, 37, 0, time.UTC),
41+
"SHA256SUMS.txt": time.Date(2024, time.October, 16, 07, 48, 52, 0, time.UTC),
4242

4343
// *** 3.10.1 release ***
4444
"DB.Browser.for.SQLite-3.10.1-win32.exe": time.Date(2017, time.September, 20, 14, 59, 44, 0, time.UTC),
@@ -95,6 +95,14 @@ var (
9595
"DB.Browser.for.SQLite-v3.13.0-win64.msi": time.Date(2024, time.July, 22, 12, 41, 37, 0, time.UTC),
9696
"DB.Browser.for.SQLite-v3.13.0-win64.zip": time.Date(2024, time.July, 22, 12, 41, 37, 0, time.UTC),
9797
"DB.Browser.for.SQLite-v3.13.0-x86.64.AppImage": time.Date(2024, time.July, 22, 12, 41, 37, 0, time.UTC),
98+
99+
// *** 3.13.1 release ***
100+
"DB.Browser.for.SQLite-v3.13.1.dmg": time.Date(2024, time.October, 16, 07, 48, 52, 0, time.UTC),
101+
"DB.Browser.for.SQLite-v3.13.1-win32.msi": time.Date(2024, time.October, 16, 07, 48, 52, 0, time.UTC),
102+
"DB.Browser.for.SQLite-v3.13.1-win32.zip": time.Date(2024, time.October, 16, 07, 48, 52, 0, time.UTC),
103+
"DB.Browser.for.SQLite-v3.13.1-win64.msi": time.Date(2024, time.October, 16, 07, 48, 52, 0, time.UTC),
104+
"DB.Browser.for.SQLite-v3.13.1-win64.zip": time.Date(2024, time.October, 16, 07, 48, 52, 0, time.UTC),
105+
"DB.Browser.for.SQLite-v3.13.1-x86.64.AppImage": time.Date(2024, time.October, 16, 07, 48, 52, 0, time.UTC),
98106
}
99107

100108
// RecordDownloadsLocation controls where downloads are recorded
@@ -196,7 +204,7 @@ func connectDatabase() {
196204

197205
// currentReleaseHandler serves the "current release" information to users
198206
func currentReleaseHandler(c *gin.Context) {
199-
resp := "3.13.0\nhttps://sqlitebrowser.org/blog/version-3-13-0-released\n"
207+
resp := "3.13.1\nhttps://sqlitebrowser.org/blog/version-3-13-1-released\n"
200208
c.String(200, resp)
201209
}
202210

@@ -233,8 +241,8 @@ func fileHandler(c *gin.Context) {
233241

234242
// Send the file contents
235243
// We use http.ServeContent() here as it allows setting the desired "last modified" timestamp. The other functions
236-
// we could have used instead - c.File() and http.ServeFile() - don't allow this. Those ones just read the date of
237-
// the file on disk, whereas we want to use timestamp entries matching the GitHub release files
244+
// we could have used instead - c.File() and http.ServeFile() - don't allow this. Those just read the date of the
245+
// file on disk, whereas we want to use timestamp entries matching the GitHub release files
238246
z, err := os.Open(fullPath)
239247
if err != nil {
240248
fmt.Fprintf(c.Writer, "Internal server error")

main_test.go

Lines changed: 34 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ var (
2020
}{
2121
"currentrelease": {
2222
url: "/currentrelease",
23-
expectedData: "3.13.0\nhttps://sqlitebrowser.org/blog/version-3-13-0-released\n",
23+
expectedData: "3.13.1\nhttps://sqlitebrowser.org/blog/version-3-13-1-released\n",
2424
expectedType: "string",
2525
},
2626
"icon": {
@@ -30,12 +30,44 @@ var (
3030
},
3131
"indexpage": {
3232
url: "/",
33-
expectedData: "81d7c94b13324f3f739429799ea1740898411f16916659987378ccf1ece0d2b1",
33+
expectedData: "28e72d910d953f25d0a6a24a70b8aceff30d3422a51d6e1fef3a0702c59da618",
3434
expectedType: "sha256",
3535
},
3636

3737
// DB4S files
3838

39+
// 3.13.1
40+
"DB.Browser.for.SQLite-v3.13.1-win32.msi": {
41+
url: "/DB.Browser.for.SQLite-v3.13.1-win32.msi",
42+
expectedData: "e0b9f86d3da4d8d800e144295487e43de306c1bd27f14dccfe41e904736f25f7",
43+
expectedType: "sha256",
44+
},
45+
"DB.Browser.for.SQLite-v3.13.1-win32.zip": {
46+
url: "/DB.Browser.for.SQLite-v3.13.1-win32.zip",
47+
expectedData: "917ad2fa8d36e3bfa3fc85b11a34a8c18d189fbc2289f5a0d3bf41de8a288edc",
48+
expectedType: "sha256",
49+
},
50+
"DB.Browser.for.SQLite-v3.13.1-win64.msi": {
51+
url: "/DB.Browser.for.SQLite-v3.13.1-win64.msi",
52+
expectedData: "d023d54b3a5db10c7e896089bb3dbe6e7f4bc4eaa9bbecb34ca414be5970f688",
53+
expectedType: "sha256",
54+
},
55+
"DB.Browser.for.SQLite-v3.13.1-win64.zip": {
56+
url: "/DB.Browser.for.SQLite-v3.13.1-win64.zip",
57+
expectedData: "22375e275ec42d96de1d3b8e9ea4ed86d2a3505c4d0ffcbd1af67aa4003e5e4d",
58+
expectedType: "sha256",
59+
},
60+
"DB.Browser.for.SQLite-v3.13.1-x86.64.AppImage": {
61+
url: "/DB.Browser.for.SQLite-v3.13.1-x86.64.AppImage",
62+
expectedData: "d6563c5c211a73192da96e3bb11a3bf83a2f3164aa4db83482c0aecf8b751b77",
63+
expectedType: "sha256",
64+
},
65+
"DB.Browser.for.SQLite-v3.13.1.dmg": {
66+
url: "/DB.Browser.for.SQLite-v3.13.1.dmg",
67+
expectedData: "a641cfbfcc2ce609f07de44a35134dab53485ecc18e6d9afa297b514d74bd75e",
68+
expectedType: "sha256",
69+
},
70+
3971
// 3.13.0
4072
"DB.Browser.for.SQLite-v3.13.0-win32.msi": {
4173
url: "/DB.Browser.for.SQLite-v3.13.0-win32.msi",

template.html

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,18 @@ <h4>SHA256 checksums</h4>
1818
</ul>
1919
</p>
2020

21+
<p>
22+
<h4>version 3.13.1</h4>
23+
<ul>
24+
<li><a href="/DB.Browser.for.SQLite-v3.13.1-win32.msi">DB.Browser.for.SQLite-v3.13.1-win32.msi</a> - For Windows 32-bit</li>
25+
<li><a href="/DB.Browser.for.SQLite-v3.13.1-win32.zip">DB.Browser.for.SQLite-v3.13.1-win32.zip</a> - For Windows 32-bit</li>
26+
<li><a href="/DB.Browser.for.SQLite-v3.13.1-win64.msi">DB.Browser.for.SQLite-v3.13.1-win64.msi</a> - For Windows 64-bit</li>
27+
<li><a href="/DB.Browser.for.SQLite-v3.13.1-win64.zip">DB.Browser.for.SQLite-v3.13.1-win64.zip</a> - For Windows 64-bit</li>
28+
<li><a href="/DB.Browser.for.SQLite-v3.13.1.dmg">DB.Browser.for.SQLite-v3.13.1.dmg</a> - For macOS (both <b>Apple Silicon</b> and <b>Intel</b>)</li>
29+
<li><a href="/DB.Browser.for.SQLite-v3.13.1-x86.64.AppImage">DB.Browser.for.SQLite-v3.13.1-x86.64.AppImage</a> - AppImage for Linux</li>
30+
</ul>
31+
</p>
32+
2133
<p>
2234
<h4>version 3.13.0</h4>
2335
<ul>

0 commit comments

Comments
 (0)