From bf443ed9f59916b9302a11832ef0cfde43e95ef1 Mon Sep 17 00:00:00 2001
From: Justin Clift
Date: Mon, 22 Jul 2024 23:08:59 +1000
Subject: [PATCH] Add the 3.13.0 release and a SHA256 checksum file
---
grab_datafiles.sh | 20 ++++++++
main.go | 14 +++++-
template.html | 121 +++++++++++++++++++++++++++++++++-------------
3 files changed, 120 insertions(+), 35 deletions(-)
diff --git a/grab_datafiles.sh b/grab_datafiles.sh
index 3746592..1c28203 100755
--- a/grab_datafiles.sh
+++ b/grab_datafiles.sh
@@ -9,32 +9,44 @@ set -e
# Download the release files
mkdir data
cd data
+
+# 3.10.1
curl -sSOL https://github.com/sqlitebrowser/sqlitebrowser/releases/download/v3.10.1/DB.Browser.for.SQLite-3.10.1-win32.exe
curl -sSOL https://github.com/sqlitebrowser/sqlitebrowser/releases/download/v3.10.1/DB.Browser.for.SQLite-3.10.1-win64.exe
curl -sSOL https://github.com/sqlitebrowser/sqlitebrowser/releases/download/v3.10.1/DB.Browser.for.SQLite-3.10.1.dmg
curl -sSOL https://github.com/sqlitebrowser/sqlitebrowser/releases/download/v3.10.1/SQLiteDatabaseBrowserPortable_3.10.1_English.paf.exe
+
+# 3.11.0
curl -sSOL https://github.com/sqlitebrowser/sqlitebrowser/releases/download/v3.11.0/DB.Browser.for.SQLite-3.11.0-win32.msi
curl -sSOL https://github.com/sqlitebrowser/sqlitebrowser/releases/download/v3.11.0/DB.Browser.for.SQLite-3.11.0-win32.zip
curl -sSOL https://github.com/sqlitebrowser/sqlitebrowser/releases/download/v3.11.0/DB.Browser.for.SQLite-3.11.0-win64.msi
curl -sSOL https://github.com/sqlitebrowser/sqlitebrowser/releases/download/v3.11.0/DB.Browser.for.SQLite-3.11.0-win64.zip
curl -sSOL https://github.com/sqlitebrowser/sqlitebrowser/releases/download/v3.11.0/DB.Browser.for.SQLite-3.11.0.dmg
+
+# 3.11.1
curl -sSOL https://github.com/sqlitebrowser/sqlitebrowser/releases/download/v3.11.1/DB.Browser.for.SQLite-3.11.1-win32.msi
curl -sSOL https://github.com/sqlitebrowser/sqlitebrowser/releases/download/v3.11.1/DB.Browser.for.SQLite-3.11.1-win32.zip
curl -sSOL https://github.com/sqlitebrowser/sqlitebrowser/releases/download/v3.11.1/DB.Browser.for.SQLite-3.11.1-win64.msi
curl -sSOL https://github.com/sqlitebrowser/sqlitebrowser/releases/download/v3.11.1/DB.Browser.for.SQLite-3.11.1-win64.zip
curl -sSOL https://github.com/sqlitebrowser/sqlitebrowser/releases/download/v3.11.1/DB.Browser.for.SQLite-3.11.1v2.dmg
+
+# 3.11.2
curl -sSOL https://github.com/sqlitebrowser/sqlitebrowser/releases/download/v3.11.2/DB.Browser.for.SQLite-3.11.2-win32.msi
curl -sSOL https://github.com/sqlitebrowser/sqlitebrowser/releases/download/v3.11.2/DB.Browser.for.SQLite-3.11.2-win32.zip
curl -sSOL https://github.com/sqlitebrowser/sqlitebrowser/releases/download/v3.11.2/DB.Browser.for.SQLite-3.11.2-win64.msi
curl -sSOL https://github.com/sqlitebrowser/sqlitebrowser/releases/download/v3.11.2/DB.Browser.for.SQLite-3.11.2-win64.zip
curl -sSOL https://github.com/sqlitebrowser/sqlitebrowser/releases/download/v3.11.2/DB.Browser.for.SQLite-3.11.2.dmg
curl -sSOL https://github.com/sqlitebrowser/sqlitebrowser/releases/download/v3.11.2/SQLiteDatabaseBrowserPortable_3.11.2_Rev_2_English.paf.exe
+
+# 3.12.0
curl -sSOL https://github.com/sqlitebrowser/sqlitebrowser/releases/download/v3.12.0/DB.Browser.for.SQLite-3.12.0-win32.msi
curl -sSOL https://github.com/sqlitebrowser/sqlitebrowser/releases/download/v3.12.0/DB.Browser.for.SQLite-3.12.0-win32.zip
curl -sSOL https://github.com/sqlitebrowser/sqlitebrowser/releases/download/v3.12.0/DB.Browser.for.SQLite-3.12.0-win64.msi
curl -sSOL https://github.com/sqlitebrowser/sqlitebrowser/releases/download/v3.12.0/DB.Browser.for.SQLite-3.12.0-win64.zip
curl -sSOL https://github.com/sqlitebrowser/sqlitebrowser/releases/download/v3.12.0/DB.Browser.for.SQLite-3.12.0.dmg
curl -sSOL https://github.com/sqlitebrowser/sqlitebrowser/releases/download/v3.12.0/SQLiteDatabaseBrowserPortable_3.12.0_English.paf.exe
+
+# 3.12.2
curl -sSOL https://github.com/sqlitebrowser/sqlitebrowser/releases/download/v3.12.2/DB.Browser.for.SQLite-3.12.2-win32.msi
curl -sSOL https://github.com/sqlitebrowser/sqlitebrowser/releases/download/v3.12.2/DB.Browser.for.SQLite-3.12.2-win32.zip
curl -sSOL https://github.com/sqlitebrowser/sqlitebrowser/releases/download/v3.12.2/DB.Browser.for.SQLite-3.12.2-win64.msi
@@ -43,3 +55,11 @@ curl -sSOL https://github.com/sqlitebrowser/sqlitebrowser/releases/download/v3.1
curl -sSOL https://github.com/sqlitebrowser/sqlitebrowser/releases/download/v3.12.2/DB.Browser.for.SQLite-arm64-3.12.2.dmg
curl -sSOL https://github.com/sqlitebrowser/sqlitebrowser/releases/download/v3.12.2/DB_Browser_for_SQLite-v3.12.2-x86_64.AppImage
curl -sSOL https://github.com/sqlitebrowser/sqlitebrowser/releases/download/v3.12.2/SQLiteDatabaseBrowserPortable_3.12.2_English.paf.exe
+
+# 3.13.0
+curl -sSOL https://github.com/sqlitebrowser/sqlitebrowser/releases/download/v3.13.0/DB.Browser.for.SQLite-v3.13.0.dmg
+curl -sSOL https://github.com/sqlitebrowser/sqlitebrowser/releases/download/v3.13.0/DB.Browser.for.SQLite-v3.13.0-win32.msi
+curl -sSOL https://github.com/sqlitebrowser/sqlitebrowser/releases/download/v3.13.0/DB.Browser.for.SQLite-v3.13.0-win32.zip
+curl -sSOL https://github.com/sqlitebrowser/sqlitebrowser/releases/download/v3.13.0/DB.Browser.for.SQLite-v3.13.0-win64.msi
+curl -sSOL https://github.com/sqlitebrowser/sqlitebrowser/releases/download/v3.13.0/DB.Browser.for.SQLite-v3.13.0-win64.zip
+curl -sSOL https://github.com/sqlitebrowser/sqlitebrowser/releases/download/v3.13.0/DB.Browser.for.SQLite-v3.13.0-x86.64.AppImage
diff --git a/main.go b/main.go
index 5f05418..da3fd2e 100644
--- a/main.go
+++ b/main.go
@@ -34,8 +34,12 @@ var (
// SQLite connection, used as fallback if PostgreSQL isn't available
sdb *sqlite.Conn
- // Timestamps for the files. We use hard coded values that match GitHub
+ // Timestamps for the files. Up until the 3.13.0 release we use hard coded values that match GitHub, but don't
+ // bother any more as that's probably not important
timeStamps = map[string]time.Time{
+ // SHA256 checksums
+ "SHA256SUMS.txt": time.Date(2024, time.July, 22, 12, 41, 37, 0, time.UTC),
+
// *** 3.10.1 release ***
"DB.Browser.for.SQLite-3.10.1-win32.exe": time.Date(2017, time.September, 20, 14, 59, 44, 0, time.UTC),
"DB.Browser.for.SQLite-3.10.1-win64.exe": time.Date(2017, time.September, 20, 14, 59, 59, 0, time.UTC),
@@ -83,6 +87,14 @@ var (
"SQLiteDatabaseBrowserPortable_3.12.2_English.paf.exe": time.Date(2021, time.May, 19, 16, 42, 57, 0, time.UTC),
"DB_Browser_for_SQLite-v3.12.2-x86_64.AppImage": time.Date(2021, time.July, 7, 6, 55, 29, 0, time.UTC),
"DB.Browser.for.SQLite-arm64-3.12.2.dmg": time.Date(2022, time.October, 23, 16, 16, 06, 0, time.UTC),
+
+ // *** 3.13.0 release ***
+ "DB.Browser.for.SQLite-v3.13.0.dmg": time.Date(2024, time.July, 22, 12, 41, 37, 0, time.UTC),
+ "DB.Browser.for.SQLite-v3.13.0-win32.msi": time.Date(2024, time.July, 22, 12, 41, 37, 0, time.UTC),
+ "DB.Browser.for.SQLite-v3.13.0-win32.zip": time.Date(2024, time.July, 22, 12, 41, 37, 0, time.UTC),
+ "DB.Browser.for.SQLite-v3.13.0-win64.msi": time.Date(2024, time.July, 22, 12, 41, 37, 0, time.UTC),
+ "DB.Browser.for.SQLite-v3.13.0-win64.zip": time.Date(2024, time.July, 22, 12, 41, 37, 0, time.UTC),
+ "DB.Browser.for.SQLite-v3.13.0-x86.64.AppImage": time.Date(2024, time.July, 22, 12, 41, 37, 0, time.UTC),
}
// RecordDownloadsLocation controls where downloads are recorded
diff --git a/template.html b/template.html
index 650f3a1..bc8e526 100644
--- a/template.html
+++ b/template.html
@@ -10,42 +10,95 @@
Welcome to the DB Browser for SQLite downloads.
Available downloads:
+
+
+
SHA256 checksums
+
+
+
+
version 3.13.0
+
+
+
+
+
version 3.12.2
+
+
+
+
+
version 3.12.0
+
+
+
+
+
version 3.11.2
+
+
+
+
+
version 3.11.1
+
+
+
+
+
version 3.11.0
+
+
+
+
+
version 3.10.1
+
+