Skip to content

Commit 679f359

Browse files
committed
fix: build
1 parent 6d22650 commit 679f359

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

scripts/release.mts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ try {
3030

3131
const { stdout: versionListOut } = await $({
3232
preferLocal: true
33-
})`vsce show kokororin.vscode-phpfmt --json`;
33+
})`vsce show ${pkg.publisher}.${pkg.name} --json`;
3434
const versionList = JSON.parse(String(versionListOut));
3535
const latestVersion = versionList.versions[0].version;
3636

@@ -42,12 +42,9 @@ try {
4242

4343
consola.info(`Download url: ${pharUrl}`);
4444

45-
const tmpDir = path.join(os.tmpdir(), 'vscode-phpfmt');
46-
await fs.mkdir(tmpDir, { recursive: true });
47-
4845
consola.info('Downloading vsix...');
4946
const currentVsix = await got(
50-
`https://kokororin.gallery.vsassets.io/_apis/public/gallery/publisher/kokororin/extension/vscode-phpfmt/${latestVersion}/assetbyname/Microsoft.VisualStudio.Services.VSIXPackage`
47+
`https://${pkg.publisher}.gallery.vsassets.io/_apis/public/gallery/publisher/${pkg.publisher}/extension/${pkg.name}/${latestVersion}/assetbyname/Microsoft.VisualStudio.Services.VSIXPackage`
5148
).buffer();
5249

5350
if (currentVsix.byteLength < 10000) {
@@ -127,7 +124,7 @@ ${changelogData}`;
127124
owner: pkg.author,
128125
repo: pkg.name,
129126
tag_name: `v${newVersion}`,
130-
body: `Please refer to [CHANGELOG.md](https://github.com/kokororin/vscode-phpfmt/blob/master/CHANGELOG.md) for details.`, // 可选的 release 描述
127+
body: `Please refer to [CHANGELOG.md](https://github.com/${pkg.author}/${pkg.name}/blob/master/CHANGELOG.md) for details.`,
131128
draft: false,
132129
prerelease: false
133130
});

0 commit comments

Comments
 (0)