mirror of
https://gitee.com/spark-store-project/spark-store
synced 2025-12-13 12:22:05 +08:00
修改: debian/changelog
新文件: pkg/usr/share/polkit-1/actions/store.spark-app.ssinstall.policy 修改: spark-store-project.pro 修改: src/main.cpp 修改: tool/ssinstall
This commit is contained in:
@@ -3,6 +3,24 @@
|
||||
|
||||
echo "Spark Store Install script.星火商店安装脚本"
|
||||
|
||||
if [ $# -eq 0 ];then
|
||||
echo "没有接收到参数,退出"
|
||||
echo "用法:$0 deb路径"
|
||||
exit
|
||||
fi
|
||||
|
||||
if [ "$(id -u)" != "0" ]
|
||||
then
|
||||
echo "ssinstall需要在root下运行";
|
||||
exit
|
||||
fi
|
||||
|
||||
if [ ! -f "$1" ]
|
||||
then
|
||||
echo "文件不存在"
|
||||
exit
|
||||
fi
|
||||
|
||||
DEPEND=`which apt-fast`
|
||||
isuos=`cat /etc/os-release | grep UnionTech`
|
||||
#临时提升星火源的优先级
|
||||
@@ -30,4 +48,4 @@ dpkg -i $1 || apt-fast install -yf || dpkg -P $1
|
||||
fi
|
||||
|
||||
sed -i 's/500/400/g' /etc/apt/preferences.d/sparkstore
|
||||
#恢复优先级
|
||||
#恢复优先级
|
||||
|
||||
Reference in New Issue
Block a user