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": "npm run typecheck:node && npm run typecheck:web",
"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",
"postinstall": "electron-builder install-app-deps && node ./scripts/postinstall.cjs",
"build:unpack": "npm run build && electron-builder --dir",

View File

@@ -14,7 +14,7 @@ class HttpDownloader:
cmd.append(url)
cmd.extend([
"--chunk-size", "5",
"--chunk-size", "10",
"--buffer-size", "16",
"--log",
"--silent"
@@ -24,7 +24,7 @@ class HttpDownloader:
cmd.extend(["--header", header])
if allow_multiple_connections:
cmd.extend(["--connections", "16"])
cmd.extend(["--connections", "24"])
else:
cmd.extend(["--connections", "1"])

View File

@@ -75,7 +75,7 @@ struct CliArgs {
resume_only: bool,
/// HTTP headers to send with request (format: "Key: Value")
#[arg(short = 'h', long)]
#[arg(short = 'H', long)]
header: Vec<String>,
}

View File

@@ -371,6 +371,7 @@ export class DownloadManager {
game_id: downloadId,
url: downloadUrl,
save_path: download.downloadPath,
allow_multiple_connections: true,
};
}
case Downloader.TorBox: {
@@ -383,6 +384,7 @@ export class DownloadManager {
url,
save_path: download.downloadPath,
out: name,
allow_multiple_connections: true,
};
}
}

View File

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