update sign script

This commit is contained in:
Sean Yesmunt 2020-07-13 12:22:49 -04:00
parent de5486a466
commit 84676f189d

View file

@ -126,16 +126,17 @@ function downloadAssets() {
.then(({ data }) => { .then(({ data }) => {
const release_id = data.id; const release_id = data.id;
return octokit.repos.listAssetsForRelease({ return octokit.repos.listReleases({
owner: 'lbryio', owner: 'lbryio',
repo: 'lbry-desktop', repo: 'lbry-desktop',
release_id, release_id,
}); });
}) })
.then(({ data }) => { .then(({ data }) => {
fileCountToDownload = data.length; const releaseToDownload = data.filter(releaseData => releaseData.tag_name === versionToSign)[0];
const assets = releaseToDownload.assets;
data fileCountToDownload = assets.length;
assets
.map(({ browser_download_url, name }) => ({ download_url: browser_download_url, name })) .map(({ browser_download_url, name }) => ({ download_url: browser_download_url, name }))
.forEach(({ name, download_url }) => { .forEach(({ name, download_url }) => {
const fileName = path.resolve(__dirname, `../dist/releaseDownloads/${name}`); const fileName = path.resolve(__dirname, `../dist/releaseDownloads/${name}`);