ci: building rust on dev

This commit is contained in:
Chubby Granny Chaser
2025-04-12 18:00:20 +01:00
parent 4d76182f2e
commit ee1dda90d9
5 changed files with 7 additions and 5 deletions

View File

@@ -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",

View File

@@ -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"])

View File

@@ -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>,
} }

View File

@@ -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,
}; };
} }
} }

View File

@@ -69,7 +69,7 @@ export class PythonRPC {
"..", "..",
"rust_rpc", "rust_rpc",
"target", "target",
"release", "debug",
rustBinaryNameByPlatform[process.platform]! rustBinaryNameByPlatform[process.platform]!
), ),
]; ];