Skip to content

Commit

Permalink
[tools] fixed undefined folder name
Browse files Browse the repository at this point in the history
  • Loading branch information
liplum committed Sep 24, 2024
1 parent 62c17b9 commit 84c2605
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tools/lib/sitmc.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)}`
Expand Down
2 changes: 1 addition & 1 deletion tools/publish-preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const buildVersionInfo = ({ version }) => {
assets: {
Android: {
fileName,
defaultSrc: getArtifactDownloadUrl({ tagName: "mimir-preview", fileName }),
defaultSrc: getArtifactDownloadUrl({ folder: "mimir-preview", fileName }),
}
},
}
Expand Down

0 comments on commit 84c2605

Please sign in to comment.