Switch from sha256sum to sha512sum in loader
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
-- https://www.phpmyadmin.net/
|
||||
--
|
||||
-- Host: localhost
|
||||
-- Generation Time: Nov 03, 2025 at 05:06 PM
|
||||
-- Generation Time: Nov 04, 2025 at 02:33 AM
|
||||
-- Server version: 12.0.2-MariaDB
|
||||
-- PHP Version: 8.4.14
|
||||
|
||||
@@ -49,7 +49,7 @@ CREATE TABLE `launcherupdates` (
|
||||
`platforms` text NOT NULL,
|
||||
`hidden` tinyint(1) NOT NULL DEFAULT 1,
|
||||
`place` int(11) NOT NULL DEFAULT 0,
|
||||
`sha256sums` text NOT NULL
|
||||
`sha512sums` text NOT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=COMPRESSED;
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
@@ -30,5 +30,5 @@ export const launcherUpdates = mysqlTable('launcherupdates', {
|
||||
executables: text('executables').notNull(),
|
||||
hidden: boolean('hidden').notNull().default(true),
|
||||
place: int('place').notNull().default(0),
|
||||
sha256sums: text('sha256sums').notNull()
|
||||
sha512sums: text('sha512sums').notNull()
|
||||
})
|
||||
|
||||
@@ -9,7 +9,7 @@ export async function handler(db: MySql2Database) {
|
||||
releaseDate: launcherUpdates.releaseDate,
|
||||
downloadUrls: launcherUpdates.downloadUrls,
|
||||
platforms: launcherUpdates.platforms,
|
||||
sha256sums: launcherUpdates.sha256sums
|
||||
sha512sums: launcherUpdates.sha512sums
|
||||
})
|
||||
.from(launcherUpdates)
|
||||
.where(eq(launcherUpdates.hidden, false))
|
||||
@@ -21,7 +21,7 @@ export async function handler(db: MySql2Database) {
|
||||
...v,
|
||||
downloadUrls: JSON.parse(v.downloadUrls),
|
||||
platforms: JSON.parse(v.platforms),
|
||||
sha256sums: JSON.parse(v.sha256sums)
|
||||
sha512sums: JSON.parse(v.sha512sums)
|
||||
}))
|
||||
|
||||
return jsonResponse(versions[0])
|
||||
|
||||
Reference in New Issue
Block a user