Skip to content

Commit

Permalink
chore(release-script): replace hardcoded checksum keys
Browse files Browse the repository at this point in the history
  • Loading branch information
pgmanutd committed Sep 25, 2020
1 parent 4941df3 commit efd51e5
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions scripts/release/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const request = require('request');
const execShPromise = require('exec-sh').promise;
const replace = require('replace-in-file');

const { META_INFO } = require('../../src/constants');
const { CHECKSUMS, META_INFO } = require('../../src/constants');

const oldVersion = META_INFO.version.replace('v', '');

Expand Down Expand Up @@ -143,14 +143,7 @@ const getNextTagName = () => {
const checksumFileContent = await getChecksumFileContent({ tagName });
const checksums = extractChecksumsFromContent({
content: checksumFileContent,
checksumNames: [
'talisman_linux_386',
'talisman_linux_amd64',
'talisman_darwin_386',
'talisman_darwin_amd64',
'talisman_windows_386.exe',
'talisman_windows_amd64.exe',
],
checksumNames: Object.keys(CHECKSUMS),
});

await replaceChecksumsInFiles({ checksums });
Expand Down

0 comments on commit efd51e5

Please sign in to comment.