mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Stop using source code in build file
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
parent
18f73d8a39
commit
0c992489bc
@ -15,8 +15,8 @@ import type { SingleBar } from "cli-progress";
|
|||||||
import { MultiBar } from "cli-progress";
|
import { MultiBar } from "cli-progress";
|
||||||
import { extract } from "tar-stream";
|
import { extract } from "tar-stream";
|
||||||
import gunzip from "gunzip-maybe";
|
import gunzip from "gunzip-maybe";
|
||||||
import { getBinaryName } from "../src/common/vars";
|
|
||||||
import { isErrnoException, setTimeoutFor } from "../src/common/utils";
|
import { isErrnoException, setTimeoutFor } from "../src/common/utils";
|
||||||
|
import AbortController from "abort-controller";
|
||||||
|
|
||||||
type Response = FetchModule.Response;
|
type Response = FetchModule.Response;
|
||||||
type RequestInfo = FetchModule.RequestInfo;
|
type RequestInfo = FetchModule.RequestInfo;
|
||||||
@ -24,6 +24,14 @@ type RequestInit = FetchModule.RequestInit;
|
|||||||
|
|
||||||
const pipeline = promisify(_pipeline);
|
const pipeline = promisify(_pipeline);
|
||||||
|
|
||||||
|
const getBinaryName = (binaryName: string, { forPlatform }: { forPlatform : string }) => {
|
||||||
|
if (forPlatform === "windows") {
|
||||||
|
return `${binaryName}.exe`;
|
||||||
|
}
|
||||||
|
|
||||||
|
return binaryName;
|
||||||
|
};
|
||||||
|
|
||||||
interface BinaryDownloaderArgs {
|
interface BinaryDownloaderArgs {
|
||||||
readonly version: string;
|
readonly version: string;
|
||||||
readonly platform: SupportedPlatform;
|
readonly platform: SupportedPlatform;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user