Skip to content

Commit

Permalink
Don't include tag into individual files torrents
Browse files Browse the repository at this point in the history
  • Loading branch information
burner1024 committed Aug 23, 2024
1 parent 08cbe59 commit b07aba3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -33814,7 +33814,7 @@ async function processLocalAssets() {
throw new Error(`No files matched the pattern: ${pattern}`);
}
for (const filePath of matchedFiles) {
const outputFileName = `${(0, import_node_path2.basename)(filePath)}-${tagName}.torrent`;
const outputFileName = `${(0, import_node_path2.basename)(filePath)}.torrent`;
const webSeed = `https://github.com/${owner}/${repo}/releases/download/${tagName}/${(0, import_node_path2.basename)(filePath)}`;
await createTorrentFile([filePath], outputFileName, [webSeed]);
}
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ async function processLocalAssets(): Promise<void> {
}

for (const filePath of matchedFiles) {
const outputFileName = `${basename(filePath)}-${tagName}.torrent`;
const outputFileName = `${basename(filePath)}.torrent`;
const webSeed = `https://github.com/${owner}/${repo}/releases/download/${tagName}/${basename(filePath)}`;
await createTorrentFile([filePath], outputFileName, [webSeed]);
}
Expand Down

0 comments on commit b07aba3

Please sign in to comment.