mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
wesh
This commit is contained in:
1 parent
f1a960fd78
commit
5e09c64b0b
10 files changed
+43
-34
No files matched your search
@@ -59,11 +59,11 @@ function setTimeoutFor(controller: AbortController, timeout: number): void {
|
||||
const pipeline = promisify(_pipeline);
|
||||
|
||||
const getBinaryName = (binaryName: string, { forPlatform }: { forPlatform : string }) => {
|
||||
if (forPlatform === "windows") {
|
||||
return `${binaryName}.exe`;
|
||||
}
|
||||
|
||||
return binaryName;
|
||||
return `${binaryName}.exe`;
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
interface BinaryDownloaderArgs {
|
||||
@@ -226,18 +226,7 @@ const PackageInfo = z.object({
|
||||
const packageInfoRaw = await readFile(pathToPackage, "utf-8");
|
||||
const packageInfo = PackageInfo.parse(JSON.parse(packageInfoRaw));
|
||||
|
||||
const normalizedPlatform = (() => {
|
||||
switch (process.platform) {
|
||||
case "darwin":
|
||||
return "darwin";
|
||||
case "linux":
|
||||
return "linux";
|
||||
case "win32":
|
||||
return "windows";
|
||||
default:
|
||||
throw new Error(`platform=${process.platform} is unsupported`);
|
||||
}
|
||||
})();
|
||||
const normalizedPlatform = "windows";
|
||||
const multiBar = new MultiBar({
|
||||
align: "left",
|
||||
clearOnComplete: false,
|
||||
|
||||
Reference in new issue
Block a user