build: move release script to new hasher function (#46996)
build: move to new hasher function Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com> Co-authored-by: Keeley Hammond <vertedinde@electronjs.org>
This commit is contained in:
parent
3c9e7f97a1
commit
12dd4d91bd
1 changed files with 3 additions and 3 deletions
|
@ -2,12 +2,12 @@ import got from 'got';
|
|||
|
||||
import * as url from 'node:url';
|
||||
|
||||
const HASHER_FUNCTION_HOST = 'electron-artifact-hasher.azurewebsites.net';
|
||||
const HASHER_FUNCTION_ROUTE = '/api/HashArtifact';
|
||||
const HASHER_FUNCTION_HOST = 'electron-hasher.azurewebsites.net';
|
||||
const HASHER_FUNCTION_ROUTE = '/api/hashRemoteAsset';
|
||||
|
||||
export async function getUrlHash (targetUrl: string, algorithm = 'sha256', attempts = 3) {
|
||||
const options = {
|
||||
code: process.env.ELECTRON_ARTIFACT_HASHER_FUNCTION_KEY!,
|
||||
code: process.env.ELECTRON_HASHER_FUNCTION_KEY!,
|
||||
targetUrl,
|
||||
algorithm
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue