新增投稿器

Signed-off-by: gfdgd_xi <3025613752@qq.com>
This commit is contained in:
2026-06-16 11:53:46 +08:00
parent 3847463b6e
commit 3aa96f27c7
8 changed files with 1884 additions and 19 deletions
+2 -1
View File
@@ -84,7 +84,8 @@ export function handleCommandLine(commandLine: string[]) {
// Handle apt:// protocol: convert to spk://search/pkgname
if (url.protocol === "apt:") {
// Format: apt://pkgname
const pkgname = url.hostname || url.pathname.split("/").filter(Boolean)[0];
const pkgname =
url.hostname || url.pathname.split("/").filter(Boolean)[0];
if (pkgname) {
const query: Query = { pkgname };
logger.info(`Deep link: apt protocol converted to search: ${pkgname}`);