Add profile photo uploads and custom difficulty support

This commit is contained in:
2026-10-13 20:50:54 +05:00
parent 8c3de302e7
commit de812453ec
37 changed files with 1139 additions and 74 deletions

View File

@@ -234,7 +234,11 @@ export async function deploy(
const files = [];
for (const file of payload.files) {
const data = Buffer.from(file.data || "", "base64");
if (file.encoding !== "base64" || data.length <= 10 * 1024 * 1024) {
const isDesktopReleasePart = file.file.startsWith(".desktop-release/part-");
if (
file.encoding !== "base64" ||
(data.length <= 10 * 1024 * 1024 && !isDesktopReleasePart)
) {
files.push(file);
continue;
}