mirror of
https://gitee.com/spark-store-project/spark-store
synced 2026-04-06 23:50:17 +08:00
fix: Loong64 can not auto install
Signed-off-by: shenmo <jifengshenmo@outlook.com>
This commit is contained in:
2
debian/changelog
vendored
2
debian/changelog
vendored
@@ -1,4 +1,4 @@
|
|||||||
spark-store (4.3.1) UNRELEASED; urgency=medium
|
spark-store (4.3.1-1) UNRELEASED; urgency=medium
|
||||||
|
|
||||||
* 修复自提权更新问题
|
* 修复自提权更新问题
|
||||||
* 提升aptss稳定性
|
* 提升aptss稳定性
|
||||||
|
|||||||
14
debian/spark-store.postinst
vendored
14
debian/spark-store.postinst
vendored
@@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
configure)
|
configure)
|
||||||
|
|
||||||
case `arch` in
|
case `arch` in
|
||||||
x86_64)
|
x86_64)
|
||||||
echo "Enabling i386 arch..."
|
echo "Enabling i386 arch..."
|
||||||
@@ -11,8 +12,7 @@ case "$1" in
|
|||||||
aarch64)
|
aarch64)
|
||||||
echo "Will not enable armhf since 4271"
|
echo "Will not enable armhf since 4271"
|
||||||
;;
|
;;
|
||||||
|
loongarch64)
|
||||||
loongarch64)
|
|
||||||
echo "Nope we DO NOT WANT ABI1 now"
|
echo "Nope we DO NOT WANT ABI1 now"
|
||||||
dpkg --remove-architecture loongarch64
|
dpkg --remove-architecture loongarch64
|
||||||
;;
|
;;
|
||||||
@@ -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/
|
||||||
@@ -52,9 +51,11 @@ case "$1" in
|
|||||||
cp -f /tmp/spark-store-install/spark-store.asc.gpg /etc/apt/trusted.gpg.d/spark-store.gpg
|
cp -f /tmp/spark-store-install/spark-store.asc.gpg /etc/apt/trusted.gpg.d/spark-store.gpg
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Start upgrade detect service
|
# Start upgrade detect service
|
||||||
systemctl daemon-reload
|
systemctl daemon-reload
|
||||||
systemctl enable spark-update-notifier --now || true
|
systemctl enable spark-update-notifier
|
||||||
|
systemctl start spark-update-notifier
|
||||||
|
|
||||||
|
|
||||||
# Update certain caches
|
# Update certain caches
|
||||||
@@ -71,6 +72,7 @@ case "$1" in
|
|||||||
;;
|
;;
|
||||||
|
|
||||||
triggered)
|
triggered)
|
||||||
spark-dstore-patch
|
spark-dstore-patch
|
||||||
|
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|||||||
4
debian/spark-store.preinst
vendored
4
debian/spark-store.preinst
vendored
@@ -1,5 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
#检测网络链接畅通
|
#检测网络链接畅通
|
||||||
function network-check()
|
function network-check()
|
||||||
{
|
{
|
||||||
@@ -24,5 +23,6 @@ function network-check()
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#network-check
|
#network-check
|
||||||
#echo "不再检测网络"
|
echo "不再检测网络"
|
||||||
28
debian/spark-store.prerm
vendored
28
debian/spark-store.prerm
vendored
@@ -12,7 +12,6 @@ function notify-send()
|
|||||||
}
|
}
|
||||||
|
|
||||||
if [ "$1" = "remove" -o "$1" = "purge" ] ; then
|
if [ "$1" = "remove" -o "$1" = "purge" ] ; then
|
||||||
|
|
||||||
echo "$1"
|
echo "$1"
|
||||||
echo "卸载操作,进行配置清理"
|
echo "卸载操作,进行配置清理"
|
||||||
|
|
||||||
@@ -33,30 +32,33 @@ if [ "$1" = "remove" -o "$1" = "purge" ] ; then
|
|||||||
# Remove residual symbol links to stop upgrade detect
|
# Remove residual symbol links to stop upgrade detect
|
||||||
rm -f /etc/xdg/autostart/spark-update-notifier.desktop
|
rm -f /etc/xdg/autostart/spark-update-notifier.desktop
|
||||||
# Remove config files
|
# Remove config files
|
||||||
for username in `ls /home`; do
|
for username in `ls /home`
|
||||||
echo /home/$username
|
do
|
||||||
if [ -d /home/$username/.config/spark-union/spark-store ]; then
|
echo /home/$username
|
||||||
rm -rf /home/$username/.config/spark-union/spark-store
|
if [ -d /home/$username/.config/spark-union/spark-store ]
|
||||||
fi
|
then
|
||||||
done
|
rm -rf /home/$username/.config/spark-union/spark-store
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
|
||||||
# Shutdown services
|
# Shutdown services
|
||||||
systemctl disable spark-update-notifier --now || true
|
systemctl stop spark-update-notifier
|
||||||
|
# Stop update detect service
|
||||||
|
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
|
||||||
apt-key del '9D9A A859 F750 24B1 A1EC E16E 0E41 D354 A29A 440C'
|
apt-key del '9D9A A859 F750 24B1 A1EC E16E 0E41 D354 A29A 440C'
|
||||||
|
|
||||||
else
|
else
|
||||||
|
|
||||||
if [ ! -z "`pidof spark-store`" ] ; then
|
if [ ! -z "`pidof spark-store`" ] ; then
|
||||||
echo "关闭已有 spark-store.."
|
echo "关闭已有 spark-store.."
|
||||||
notify-send "正在升级星火商店" "请在升级结束后重启星火商店" -i spark-store
|
notify-send "正在升级星火商店" "请在升级结束后重启星火商店" -i spark-store
|
||||||
killall spark-store
|
killall spark-store
|
||||||
fi
|
fi
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user