mirror of
https://gitee.com/spark-store-project/spark-store
synced 2025-07-06 05:35:59 +08:00
修复自提权更新问题
This commit is contained in:
parent
0380bc4a05
commit
9e7e957f4f
debian
pkg/usr/share/polkit-1/actions
tool/update-upgrade
6
debian/changelog
vendored
6
debian/changelog
vendored
@ -1,3 +1,9 @@
|
|||||||
|
spark-store (4.3.1) UNRELEASED; urgency=medium
|
||||||
|
|
||||||
|
* 修复自提权更新问题
|
||||||
|
|
||||||
|
-- shenmo <shenmo@spark-app.store> Tue, 24 Sep 2024 11:27:08 +0800
|
||||||
|
|
||||||
spark-store (4.3.0-fix5) stable; urgency=medium
|
spark-store (4.3.0-fix5) stable; urgency=medium
|
||||||
|
|
||||||
* 支持GXDE,重启空链接清理
|
* 支持GXDE,重启空链接清理
|
||||||
|
3
debian/spark-store.postinst
vendored
3
debian/spark-store.postinst
vendored
@ -42,8 +42,7 @@ case "$1" in
|
|||||||
|
|
||||||
ln -s -f /opt/durapps/spark-store/bin/aptss /usr/bin/aptss
|
ln -s -f /opt/durapps/spark-store/bin/aptss /usr/bin/aptss
|
||||||
|
|
||||||
# Create symbol links for SSINSTALL
|
|
||||||
ln -s -f /opt/durapps/spark-store/bin/auto-install-policy/store.spark-app.ssinstall.policy /usr/share/polkit-1/actions/store.spark-app.ssinstall.policy
|
|
||||||
|
|
||||||
# Install key
|
# Install key
|
||||||
mkdir -p /tmp/spark-store-install/
|
mkdir -p /tmp/spark-store-install/
|
||||||
|
3
debian/spark-store.prerm
vendored
3
debian/spark-store.prerm
vendored
@ -47,8 +47,7 @@ for username in `ls /home`
|
|||||||
# Stop update detect service
|
# Stop update detect service
|
||||||
systemctl disable spark-update-notifier
|
systemctl disable spark-update-notifier
|
||||||
|
|
||||||
# Clean the auto install polkit file if exist
|
|
||||||
rm -f /usr/share/polkit-1/actions/store.spark-app.ssinstall.policy
|
|
||||||
|
|
||||||
# Remove gpg key file
|
# Remove gpg key file
|
||||||
rm -f /etc/apt/trusted.gpg.d/spark-store.gpg
|
rm -f /etc/apt/trusted.gpg.d/spark-store.gpg
|
||||||
|
@ -4,15 +4,15 @@
|
|||||||
<policyconfig>
|
<policyconfig>
|
||||||
<vendor>Spark Store</vendor>
|
<vendor>Spark Store</vendor>
|
||||||
<icon_name>x-package-repository</icon_name>
|
<icon_name>x-package-repository</icon_name>
|
||||||
<action id="store.spark-app.ss-do-upgrade-worker">
|
<action id="store.spark-app.ss-do-upgrade">
|
||||||
<description>运行ss-do-upgrade-worker需要权限</description>
|
<description>运行ss-do-upgrade需要权限</description>
|
||||||
<message>要使用ss-do-upgrade-worker需要权限</message>
|
<message>要使用ss-do-upgrade需要权限</message>
|
||||||
<defaults>
|
<defaults>
|
||||||
<allow_any>yes</allow_any>
|
<allow_any>yes</allow_any>
|
||||||
<allow_inactive>yes</allow_inactive>
|
<allow_inactive>yes</allow_inactive>
|
||||||
<allow_active>yes</allow_active>
|
<allow_active>yes</allow_active>
|
||||||
</defaults>
|
</defaults>
|
||||||
<annotate key="org.freedesktop.policykit.exec.path">/opt/durapps/spark-store/bin/update-upgrade/ss-do-upgrade-worker.sh</annotate>
|
<annotate key="org.freedesktop.policykit.exec.path">/opt/durapps/spark-store/bin/update-upgrade/ss-do-upgrade.sh</annotate>
|
||||||
<annotate key="org.freedesktop.policykit.exec.allow_gui">true</annotate>
|
<annotate key="org.freedesktop.policykit.exec.allow_gui">true</annotate>
|
||||||
</action>
|
</action>
|
||||||
</policyconfig>
|
</policyconfig>
|
@ -1,4 +1,8 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
if [ "$(id -u)" != "0" ] ; then
|
||||||
|
pkexec "$0" "$@"
|
||||||
|
exit
|
||||||
|
fi
|
||||||
trap "rm -f /tmp/spark-store/upgradeStatus.txt" EXIT
|
trap "rm -f /tmp/spark-store/upgradeStatus.txt" EXIT
|
||||||
source /opt/durapps/spark-store/bin/bashimport/transhell.amber
|
source /opt/durapps/spark-store/bin/bashimport/transhell.amber
|
||||||
load_transhell_debug
|
load_transhell_debug
|
||||||
|
Loading…
x
Reference in New Issue
Block a user