mirror of
https://gitee.com/spark-store-project/spark-store
synced 2026-04-26 09:20:18 +08:00
refactor(install-manager): 更新可升级软件包列表命令路径
This commit is contained in:
@@ -331,8 +331,8 @@ ipcMain.on('remove-installed', async (_event, pkgname: string) => {
|
|||||||
|
|
||||||
ipcMain.handle('list-upgradable', async () => {
|
ipcMain.handle('list-upgradable', async () => {
|
||||||
const { code, stdout, stderr } = await runCommandCapture(
|
const { code, stdout, stderr } = await runCommandCapture(
|
||||||
'/usr/bin/amber-pm-debug',
|
'/opt/apm-app-store/extras/shell-caller.sh',
|
||||||
['aptss', 'list', '--upgradable']);
|
['apm', 'list', '--upgradable']);
|
||||||
if (code !== 0) {
|
if (code !== 0) {
|
||||||
logger.error(`list-upgradable failed: ${stderr || stdout}`);
|
logger.error(`list-upgradable failed: ${stderr || stdout}`);
|
||||||
return {
|
return {
|
||||||
|
|||||||
Reference in New Issue
Block a user