mirror of
https://gitee.com/spark-store-project/spark-store
synced 2026-03-26 07:19:44 +08:00
!126 324t3发版
* 3.2.4~test3 * 修改: debian/changelog * !125 fix: 对oss进行URL转译 * Merge remote-tracking branch 'upstream/dev' into dev * fix: 对oss进行URL转译 * !124 fix: 安装时可能出现的超时错误 * update debian/changelog. * update src/widget.cpp. * Merge remote-tracking branch 'upstream/dev' into dev * update debian/changelog. * Merge remote-tracking branch 'upstream/dev' into dev * fix: 超时错误 * update README.zh.md. * update README.md. * update README.zh.md. * update debian/changelog. * !123 feat: 投稿器 * feat: 投稿器 * !122 fix:gpu 参数 * fix: chrome GPU 参数 * Merge remote-tracking branch 'upstream/dev' into dev * 修复错误的配置文件 * 改为读取/etc * update debian/changelog. * UOS 走普通的aptss,aptss支持UOS源 * 更新时不再清除免密码安装设置 * !121 反向同步 * fix * Merge remote-tracking branch 'upstream/dev' into dev * fix: high CPU usage because futex is still waiting for queue after illegal exit * Merge remote-tracking branch 'upstream/master' into dev * Merge remote-tracking branch 'upstream/dev' into dev * feat: enable GPU * Merge remote-tracking branch 'upstream/dev' into dev * Merge branch 'dev' of gitee.com:uniartisan2018/spark-store into dev * feat: 清除网页缓存 * 文案修改 * update src/widget.ui. * feat: 星火应用商店检测更新
This commit is contained in:
@@ -8,33 +8,6 @@ echo "获取更新列表..."
|
||||
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)"
|
||||
|
||||
|
||||
isuos=`cat /etc/os-release | grep UnionTech`
|
||||
if [ "$isuos" != "" ]; then ###这是确定是否为UOS 如果是
|
||||
echo "UOS中系统依赖无法使用第三方下载工具,使用apt-fast下载本体"
|
||||
|
||||
cd /var/cache/apt/archives
|
||||
for PKG_NAME in $PKG_LIST;
|
||||
do
|
||||
echo "$PKG_NAME 正在下载..."
|
||||
sudo aptss download "$PKG_NAME" -y >/dev/null 2>&1;
|
||||
done
|
||||
|
||||
echo "----开始安装"
|
||||
for PKG_NAME in $PKG_LIST;
|
||||
do
|
||||
echo "$PKG_NAME 正在更新..."
|
||||
if sudo 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 install "$PKG_NAME" -y >/dev/null 2>&1;
|
||||
then
|
||||
echo "$PKG_NAME 已更新"
|
||||
else
|
||||
echo "WARNING: $PKG_NAME 无法更新"
|
||||
fi
|
||||
done
|
||||
|
||||
|
||||
|
||||
else ###这是确定是否为UOS,如果不是
|
||||
|
||||
for PKG_NAME in $PKG_LIST;
|
||||
do
|
||||
echo "$PKG_NAME 正在更新..."
|
||||
@@ -47,6 +20,5 @@ else ###这是确定是否为UOS,如果不是
|
||||
done
|
||||
|
||||
|
||||
fi ###这是确定是否为UOS
|
||||
|
||||
fi ###这是确定是否同意
|
||||
Reference in New Issue
Block a user