默认免密码查看可更新应用

This commit is contained in:
2022-10-21 14:56:31 +08:00
parent 8465c9ad2d
commit 5420bad0ee
7 changed files with 32 additions and 7 deletions

View File

@@ -4,7 +4,7 @@
<policyconfig>
<vendor>Spark Store</vendor>
<icon_name>x-package-repository</icon_name>
<action id="org.maicss.dnf">
<action id="store.spark-app.ssinstall">
<description>运行ssinstall需要权限</description>
<message>要使用ssinstall需要权限</message>
<defaults>

View File

@@ -1,3 +1,4 @@
#!/bin/bash
PKG_LIST="$(bwrap --dev-bind / / --bind '/opt/durapps/spark-store/bin/apt-fast-conf/sources.list.d/sparkstore.list' /etc/apt/sources.list.d/sparkstore.list apt list --upgradable -o Dir::Etc::sourcelist="sources.list.d/sparkstore.list" -o Dir::Etc::sourceparts="-" -o APT::Get::List-Cleanup="0" | awk 'BEGIN {FS="/"} {print $1}' | awk NR\>1)"
####如果没更新,就弹出不需要更新
if [ -z "$PKG_LIST" ];then

View File

@@ -40,7 +40,7 @@ case $option in
;;
2)
pkexec bash /opt/durapps/spark-store/bin/update-upgrade/ss-do-upgrade.sh
pkexec /opt/durapps/spark-store/bin/update-upgrade/ss-do-upgrade.sh
;;
3)
if [ -f /usr/share/polkit-1/actions/store.spark-app.ssinstall.policy ];then