mirror of
https://gitee.com/spark-store-project/spark-store
synced 2026-04-26 01:10:16 +08:00
feat: enhance application type definitions and improve app management logic
This commit is contained in:
@@ -4,6 +4,8 @@ import readline from 'node:readline';
|
||||
import { promisify } from 'node:util';
|
||||
import pino from 'pino';
|
||||
|
||||
import { InstalledAppInfo } from '../../typedefinition';
|
||||
|
||||
const logger = pino({ 'name': 'install-manager' });
|
||||
|
||||
type InstallTask = {
|
||||
@@ -66,7 +68,7 @@ const runCommandCapture = async (execCommand: string, execParams: string[]) => {
|
||||
};
|
||||
|
||||
const parseInstalledList = (output: string) => {
|
||||
const apps: Array<{ pkgname: string; version: string; arch: string; flags: string; raw: string }> = [];
|
||||
const apps: Array<InstalledAppInfo> = [];
|
||||
const lines = output.split('\n');
|
||||
for (const line of lines) {
|
||||
const trimmed = line.trim();
|
||||
|
||||
Reference in New Issue
Block a user