Skip to content

Commit 7525a6a

Browse files
committed
Fix remote icon urls
1 parent 9f73512 commit 7525a6a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

update.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ async function parseRawRepository(repo: string): Promise<ExtensionInfo> {
8080
const extPackageInfo = parsePackageJson(res.data, repo);
8181

8282
if (extPackageInfo.iconUrl) {
83-
extPackageInfo.iconUrl = repo + extPackageInfo.iconUrl;
83+
extPackageInfo.iconUrl = repo + 'static/' + extPackageInfo.iconUrl;
8484
}
8585

8686
return {
@@ -119,7 +119,7 @@ async function parseGithubRepository(repo: string): Promise<ExtensionInfo> {
119119
const extPackageInfo = parsePackageJson(content, repo);
120120
const defaultBranch = await getDefaultBranch(owner, repoName);
121121
if (extPackageInfo.iconUrl) {
122-
extPackageInfo.iconUrl = `https://raw.githubusercontent.com/${owner}/${repoName}/${defaultBranch}/${extPackageInfo.iconUrl}`;
122+
extPackageInfo.iconUrl = `https://raw.githubusercontent.com/${owner}/${repoName}/${defaultBranch}/static/${extPackageInfo.iconUrl}`;
123123
}
124124

125125
const releaseTags = await getGithubReleaseTags(owner, repoName);

0 commit comments

Comments
 (0)