update sign script
This commit is contained in:
parent
de5486a466
commit
84676f189d
1 changed files with 5 additions and 4 deletions
|
@ -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}`);
|
||||||
|
|
Loading…
Reference in a new issue