mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-30 14:21:04 +00:00
ci: building rust on dev
This commit is contained in:
@@ -21,7 +21,7 @@
|
|||||||
"typecheck:web": "tsc --noEmit -p tsconfig.web.json --composite false",
|
"typecheck:web": "tsc --noEmit -p tsconfig.web.json --composite false",
|
||||||
"typecheck": "npm run typecheck:node && npm run typecheck:web",
|
"typecheck": "npm run typecheck:node && npm run typecheck:web",
|
||||||
"start": "electron-vite preview",
|
"start": "electron-vite preview",
|
||||||
"dev": "electron-vite dev",
|
"dev": "cargo build --manifest-path=rust_rpc/Cargo.toml && electron-vite dev",
|
||||||
"build": "npm run typecheck && electron-vite build",
|
"build": "npm run typecheck && electron-vite build",
|
||||||
"postinstall": "electron-builder install-app-deps && node ./scripts/postinstall.cjs",
|
"postinstall": "electron-builder install-app-deps && node ./scripts/postinstall.cjs",
|
||||||
"build:unpack": "npm run build && electron-builder --dir",
|
"build:unpack": "npm run build && electron-builder --dir",
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ class HttpDownloader:
|
|||||||
cmd.append(url)
|
cmd.append(url)
|
||||||
|
|
||||||
cmd.extend([
|
cmd.extend([
|
||||||
"--chunk-size", "5",
|
"--chunk-size", "10",
|
||||||
"--buffer-size", "16",
|
"--buffer-size", "16",
|
||||||
"--log",
|
"--log",
|
||||||
"--silent"
|
"--silent"
|
||||||
@@ -24,7 +24,7 @@ class HttpDownloader:
|
|||||||
cmd.extend(["--header", header])
|
cmd.extend(["--header", header])
|
||||||
|
|
||||||
if allow_multiple_connections:
|
if allow_multiple_connections:
|
||||||
cmd.extend(["--connections", "16"])
|
cmd.extend(["--connections", "24"])
|
||||||
else:
|
else:
|
||||||
cmd.extend(["--connections", "1"])
|
cmd.extend(["--connections", "1"])
|
||||||
|
|
||||||
|
|||||||
@@ -75,7 +75,7 @@ struct CliArgs {
|
|||||||
resume_only: bool,
|
resume_only: bool,
|
||||||
|
|
||||||
/// HTTP headers to send with request (format: "Key: Value")
|
/// HTTP headers to send with request (format: "Key: Value")
|
||||||
#[arg(short = 'h', long)]
|
#[arg(short = 'H', long)]
|
||||||
header: Vec<String>,
|
header: Vec<String>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -371,6 +371,7 @@ export class DownloadManager {
|
|||||||
game_id: downloadId,
|
game_id: downloadId,
|
||||||
url: downloadUrl,
|
url: downloadUrl,
|
||||||
save_path: download.downloadPath,
|
save_path: download.downloadPath,
|
||||||
|
allow_multiple_connections: true,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
case Downloader.TorBox: {
|
case Downloader.TorBox: {
|
||||||
@@ -383,6 +384,7 @@ export class DownloadManager {
|
|||||||
url,
|
url,
|
||||||
save_path: download.downloadPath,
|
save_path: download.downloadPath,
|
||||||
out: name,
|
out: name,
|
||||||
|
allow_multiple_connections: true,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -69,7 +69,7 @@ export class PythonRPC {
|
|||||||
"..",
|
"..",
|
||||||
"rust_rpc",
|
"rust_rpc",
|
||||||
"target",
|
"target",
|
||||||
"release",
|
"debug",
|
||||||
rustBinaryNameByPlatform[process.platform]!
|
rustBinaryNameByPlatform[process.platform]!
|
||||||
),
|
),
|
||||||
];
|
];
|
||||||
|
|||||||
Reference in New Issue
Block a user