From 84c2605d2ae2238e26094d89a69e0172f1fc7673 Mon Sep 17 00:00:00 2001 From: Liplum Date: Tue, 24 Sep 2024 11:11:33 +0800 Subject: [PATCH] [tools] fixed undefined folder name --- tools/lib/sitmc.js | 2 +- tools/publish-preview.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/lib/sitmc.js b/tools/lib/sitmc.js index dbd8bed7..ab7b3c58 100644 --- a/tools/lib/sitmc.js +++ b/tools/lib/sitmc.js @@ -51,7 +51,7 @@ export async function deleteFile({ remotePath }) { /** * - * @param {{tagName:string,fileName:string}} param0 + * @param {{folder:string,fileName:string}} param0 */ export function getArtifactDownloadUrl({ folder, fileName }) { return `https://temp.sitmc.club/prepare-download/${folder}/${sanitizeNameForUri(fileName)}` diff --git a/tools/publish-preview.js b/tools/publish-preview.js index cc5a0e08..8b2a2f5e 100644 --- a/tools/publish-preview.js +++ b/tools/publish-preview.js @@ -34,7 +34,7 @@ const buildVersionInfo = ({ version }) => { assets: { Android: { fileName, - defaultSrc: getArtifactDownloadUrl({ tagName: "mimir-preview", fileName }), + defaultSrc: getArtifactDownloadUrl({ folder: "mimir-preview", fileName }), } }, }