mirror of
https://gitee.com/spark-store-project/spark-store
synced 2025-12-16 17:11:37 +08:00
Compare commits
16 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 5220b886de | |||
| 5be7923e60 | |||
| 6ca6f63b1f | |||
| bda0426a3b | |||
| a75b7b1e57 | |||
| 8054f85ada | |||
| bc6584eacc | |||
| c9e01d10fe | |||
| c3b9763aa8 | |||
| 398cd512d7 | |||
| 0c0ff452ae | |||
| e6d3b035db | |||
| 5e88f7c1eb | |||
| b639a9d726 | |||
| e2f6a2b3c2 | |||
| c826a3927c |
32
debian/changelog
vendored
32
debian/changelog
vendored
@@ -1,3 +1,35 @@
|
|||||||
|
spark-store (3.1.5-2) stable; urgency=medium
|
||||||
|
|
||||||
|
* 下载软件时跳过获取大小,修复部分软件无法下载的问题
|
||||||
|
* 修复 获取key时出错,指定使用http1.1
|
||||||
|
|
||||||
|
|
||||||
|
-- shenmo <shenmo@spark-app.store> Fri, 30 Jan 2022 00:00:00 +0800
|
||||||
|
|
||||||
|
spark-store (3.1.5-1) stable; urgency=medium
|
||||||
|
|
||||||
|
* 改变更新策略,UOS也下载加速,但是安装不加速
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
-- shenmo <shenmo@spark-app.store> Fri, 30 Jan 2022 00:00:00 +0800
|
||||||
|
|
||||||
|
spark-store (3.1.5) stable; urgency=medium
|
||||||
|
|
||||||
|
* 改变更新策略,现在支持应用在更新时引入新依赖
|
||||||
|
* ss-apt-fast现在默认允许降级,以与apt使用体验一致
|
||||||
|
|
||||||
|
|
||||||
|
-- shenmo <shenmo@spark-app.store> Fri, 30 Jan 2022 00:00:00 +0800
|
||||||
|
|
||||||
|
spark-store (3.1.4-2) stable; urgency=medium
|
||||||
|
|
||||||
|
* 客户端下载使用metalink来支持bt下载加速
|
||||||
|
* 修复使用更新和安装设置更新商店本体时出错
|
||||||
|
|
||||||
|
|
||||||
|
-- shenmo <shenmo@spark-app.store> Fri, 30 Jan 2022 00:00:00 +0800
|
||||||
|
|
||||||
spark-store (3.1.4-1) stable; urgency=medium
|
spark-store (3.1.4-1) stable; urgency=medium
|
||||||
|
|
||||||
* 安装脚本和检测更新脚本检查网络时间超时时间延长至5s
|
* 安装脚本和检测更新脚本检查网络时间超时时间延长至5s
|
||||||
|
|||||||
2
debian/spark-store.postinst
vendored
2
debian/spark-store.postinst
vendored
@@ -16,7 +16,7 @@ case "$1" in
|
|||||||
|
|
||||||
|
|
||||||
# Download and install key
|
# Download and install key
|
||||||
curl --progress-bar -o /tmp/spark-store-install/spark-store.asc https://d.store.deepinos.org.cn/dcs-repo.gpg-key.asc
|
curl --http1.1 --progress-bar -o /tmp/spark-store-install/spark-store.asc https://d.store.deepinos.org.cn/dcs-repo.gpg-key.asc
|
||||||
gpg --dearmor /tmp/spark-store-install/spark-store.asc
|
gpg --dearmor /tmp/spark-store-install/spark-store.asc
|
||||||
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
|
||||||
|
|
||||||
|
|||||||
1
debian/spark-store.prerm
vendored
1
debian/spark-store.prerm
vendored
@@ -8,6 +8,7 @@ rm /usr/local/bin/ussinstall
|
|||||||
rm /usr/local/bin/ussremove
|
rm /usr/local/bin/ussremove
|
||||||
rm /usr/local/bin/ss-apt-fast
|
rm /usr/local/bin/ss-apt-fast
|
||||||
|
|
||||||
|
|
||||||
# Remove residual symbol links to stop upgrade detect if exist
|
# Remove residual symbol links to stop upgrade detect if exist
|
||||||
if [ -f /etc/xdg/autostart/spark-update-notifier.desktop ];then
|
if [ -f /etc/xdg/autostart/spark-update-notifier.desktop ];then
|
||||||
rm /etc/xdg/autostart/spark-update-notifier.desktop
|
rm /etc/xdg/autostart/spark-update-notifier.desktop
|
||||||
|
|||||||
@@ -1,14 +1,8 @@
|
|||||||
#include "downloadworker.h"
|
#include "downloadworker.h"
|
||||||
#include <QEventLoop>
|
#include <QEventLoop>
|
||||||
#include <QNetworkAccessManager>
|
|
||||||
#include <QNetworkRequest>
|
|
||||||
#include <QNetworkReply>
|
|
||||||
#include <QThread>
|
|
||||||
#include <QProcess>
|
#include <QProcess>
|
||||||
#include <QRegularExpression>
|
#include <QRegularExpression>
|
||||||
#include <QFileInfo>
|
|
||||||
#include <QDir>
|
#include <QDir>
|
||||||
#include <QElapsedTimer>
|
|
||||||
#include <QtConcurrent>
|
#include <QtConcurrent>
|
||||||
|
|
||||||
DownloadController::DownloadController(QObject *parent)
|
DownloadController::DownloadController(QObject *parent)
|
||||||
@@ -36,14 +30,49 @@ void DownloadController::setFilename(QString filename)
|
|||||||
this->filename = filename;
|
this->filename = filename;
|
||||||
}
|
}
|
||||||
|
|
||||||
void timeSleeper(int time)
|
|
||||||
|
bool checkMeatlink(QString metaUrl)
|
||||||
{
|
{
|
||||||
QElapsedTimer t1;
|
QFile metaStatus("/tmp/spark-store/metaStatus.txt");
|
||||||
t1.start();
|
if (metaStatus.exists())
|
||||||
while(t1.elapsed()<time);
|
{
|
||||||
return;
|
metaStatus.remove();
|
||||||
|
}
|
||||||
|
system("curl -I -s --connect-timeout 5 " + metaUrl.toUtf8() + " -w %{http_code} |tail -n1 > /tmp/spark-store/metaStatus.txt");
|
||||||
|
if (metaStatus.open(QFile::ReadOnly) && QString(metaStatus.readAll()).toUtf8() == "200")
|
||||||
|
{
|
||||||
|
metaStatus.remove();
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void gennerateDomain(QVector<QString> &domains)
|
||||||
|
{
|
||||||
|
QFile serverList(QDir::homePath().toUtf8() + "/.config/spark-store/server.list");
|
||||||
|
if (serverList.open(QFile::ReadOnly))
|
||||||
|
{
|
||||||
|
QStringList list = QString(serverList.readAll()).trimmed().split("\n");
|
||||||
|
qDebug() << list << list.size();
|
||||||
|
domains.clear();
|
||||||
|
|
||||||
|
for (int i = 0; i < list.size(); i++)
|
||||||
|
{
|
||||||
|
if (list.at(i).contains("镜像源 Download only") && i + 1 < list.size())
|
||||||
|
{
|
||||||
|
for (int j = i + 1; j < list.size(); j++)
|
||||||
|
{
|
||||||
|
domains.append(list.at(j));
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (domains.size() == 0)
|
||||||
|
{
|
||||||
|
domains.append("d.store.deepinos.org.cn");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief 开始下载
|
* @brief 开始下载
|
||||||
@@ -59,54 +88,37 @@ void DownloadController::startDownload(const QString &url)
|
|||||||
}
|
}
|
||||||
|
|
||||||
QtConcurrent::run([=]()
|
QtConcurrent::run([=]()
|
||||||
{
|
{
|
||||||
QFile serverList(QDir::homePath().toUtf8() + "/.config/spark-store/server.list");
|
QString metaUrl = url + ".metalink";
|
||||||
if (serverList.open(QFile::ReadOnly))
|
qDebug() << "metalink" << metaUrl;
|
||||||
{
|
bool useMetalink = false;
|
||||||
QStringList list = QString(serverList.readAll()).trimmed().split("\n");
|
if (checkMeatlink(metaUrl)){
|
||||||
qDebug() << list << list.size();
|
useMetalink = true;
|
||||||
domains.clear();
|
qDebug() << "useMetalink:" << useMetalink;
|
||||||
|
}else{
|
||||||
for (int i = 0; i < list.size(); i++)
|
gennerateDomain(domains);
|
||||||
{
|
// qDebug() << domains << domains.size();
|
||||||
if (list.at(i).contains("镜像源 Download only") && i + 1 < list.size())
|
|
||||||
{
|
|
||||||
for (int j = i + 1; j < list.size(); j++)
|
|
||||||
{
|
|
||||||
system("curl -I -s --connect-timeout 5 https://" + list.at(j).toUtf8() + "/dcs-repo.gpg-key.asc -w %{http_code} |tail -n1 > /tmp/spark-store/cdnStatus.txt");
|
|
||||||
QFile cdnStatus("/tmp/spark-store/cdnStatus.txt");
|
|
||||||
if (cdnStatus.open(QFile::ReadOnly) && QString(cdnStatus.readAll()).toUtf8() == "200")
|
|
||||||
{
|
|
||||||
qDebug() << list.at(j);
|
|
||||||
domains.append(list.at(j));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (domains.size() == 0)
|
|
||||||
{
|
|
||||||
domains.append("d.store.deepinos.org.cn");
|
|
||||||
}
|
|
||||||
qDebug() << domains << domains.size();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
QDir tmpdir("/tmp/spark-store/");
|
QDir tmpdir("/tmp/spark-store/");
|
||||||
QString aria2Command = "-d";
|
QString aria2Command = "-d";
|
||||||
QString aria2Urls = "";
|
QString aria2Urls = "";
|
||||||
QString aria2Verbose = "--summary-interval=1";
|
QString aria2Verbose = "--summary-interval=1";
|
||||||
QString aria2Threads = "-s " + QString::number(domains.size());
|
QString aria2Threads = "--split=16";
|
||||||
QString aria2NoConfig = "--no-conf";
|
QString aria2NoConfig = "--no-conf";
|
||||||
|
QString aria2NoSeeds = "--seed-time=0";
|
||||||
QStringList command;
|
QStringList command;
|
||||||
QString downloadDir = "/tmp/spark-store/";
|
QString downloadDir = "/tmp/spark-store/";
|
||||||
|
|
||||||
|
if (useMetalink){
|
||||||
for (int i = 0; i < domains.size(); i++)
|
command.append(metaUrl.toUtf8());
|
||||||
{
|
|
||||||
command.append(replaceDomain(url, domains.at(i)).toUtf8());
|
|
||||||
aria2Urls += replaceDomain(url, domains.at(i));
|
|
||||||
aria2Urls += " ";
|
|
||||||
}
|
}
|
||||||
|
else{
|
||||||
|
for (int i = 0; i < domains.size(); i++)
|
||||||
|
{
|
||||||
|
command.append(replaceDomain(url, domains.at(i)).toUtf8());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
qint64 downloadSizeRecord = 0;
|
qint64 downloadSizeRecord = 0;
|
||||||
QString speedInfo = "";
|
QString speedInfo = "";
|
||||||
@@ -114,8 +126,11 @@ void DownloadController::startDownload(const QString &url)
|
|||||||
command.append(aria2Command.toUtf8());
|
command.append(aria2Command.toUtf8());
|
||||||
command.append(downloadDir.toUtf8());
|
command.append(downloadDir.toUtf8());
|
||||||
command.append(aria2Verbose.toUtf8());
|
command.append(aria2Verbose.toUtf8());
|
||||||
command.append(aria2Threads.toUtf8());
|
|
||||||
command.append(aria2NoConfig.toUtf8());
|
command.append(aria2NoConfig.toUtf8());
|
||||||
|
command.append(aria2Threads.toUtf8());
|
||||||
|
if (useMetalink){
|
||||||
|
command.append(aria2NoSeeds.toUtf8());
|
||||||
|
}
|
||||||
qDebug() << command;
|
qDebug() << command;
|
||||||
auto cmd = new QProcess();
|
auto cmd = new QProcess();
|
||||||
cmd->setProcessChannelMode(QProcess::MergedChannels);
|
cmd->setProcessChannelMode(QProcess::MergedChannels);
|
||||||
@@ -128,10 +143,9 @@ void DownloadController::startDownload(const QString &url)
|
|||||||
[&]()
|
[&]()
|
||||||
{
|
{
|
||||||
//通过读取输出计算下载速度
|
//通过读取输出计算下载速度
|
||||||
QFileInfo info(tmpdir.absoluteFilePath(filename));
|
|
||||||
QString message = cmd->readAllStandardOutput().data();
|
QString message = cmd->readAllStandardOutput().data();
|
||||||
message = message.replace(" ", "").replace("\n", "").replace("-", "");
|
// qDebug() << message;
|
||||||
message = message.replace("*", "").replace("=", "");
|
message = message.replace(" ", "");
|
||||||
QStringList list;
|
QStringList list;
|
||||||
qint64 downloadSize = 0;
|
qint64 downloadSize = 0;
|
||||||
int downloadSizePlace1 = message.indexOf("(");
|
int downloadSizePlace1 = message.indexOf("(");
|
||||||
@@ -145,15 +159,15 @@ void DownloadController::startDownload(const QString &url)
|
|||||||
{
|
{
|
||||||
int percentInfoNumber = percentInfo.toUInt();
|
int percentInfoNumber = percentInfo.toUInt();
|
||||||
|
|
||||||
downloadSize = (percentInfoNumber + 1) * fileSize / 100;
|
downloadSize = percentInfoNumber * fileSize / 100;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (speedPlace1 != -1 && speedPlace2 != -1)
|
if (speedPlace1 != -1 && speedPlace2 != -1 && speedPlace2 - speedPlace1 <= 15)
|
||||||
{
|
{
|
||||||
speedInfo = message.mid(speedPlace1 + 3, speedPlace2 - speedPlace1 - 3);
|
speedInfo = message.mid(speedPlace1 + 3, speedPlace2 - speedPlace1 - 3);
|
||||||
speedInfo += "/s";
|
speedInfo += "/s";
|
||||||
}
|
}
|
||||||
qDebug() << percentInfo << speedInfo;
|
// qDebug() << percentInfo << speedInfo;
|
||||||
if (downloadSize >= downloadSizeRecord)
|
if (downloadSize >= downloadSizeRecord)
|
||||||
{
|
{
|
||||||
downloadSizeRecord = downloadSize;
|
downloadSizeRecord = downloadSize;
|
||||||
@@ -182,8 +196,7 @@ void DownloadController::startDownload(const QString &url)
|
|||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
emit downloadFinished();
|
emit downloadFinished(); });
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -199,30 +212,8 @@ void DownloadController::stopDownload()
|
|||||||
|
|
||||||
qint64 DownloadController::getFileSize(const QString &url)
|
qint64 DownloadController::getFileSize(const QString &url)
|
||||||
{
|
{
|
||||||
QEventLoop event;
|
// 已经无需使用 qtnetwork 再获取 filesize,完全交给 aria2 来计算进度。 为保证兼容性,故保留此函数。
|
||||||
QNetworkAccessManager requestManager;
|
qint64 fileSize = 10000;
|
||||||
QNetworkRequest request;
|
|
||||||
request.setUrl(QUrl(url));
|
|
||||||
request.setAttribute(QNetworkRequest::FollowRedirectsAttribute, true);
|
|
||||||
QNetworkReply *reply = requestManager.head(request);
|
|
||||||
connect(reply, static_cast<void (QNetworkReply::*)(QNetworkReply::NetworkError)>(&QNetworkReply::error),
|
|
||||||
[this, reply](QNetworkReply::NetworkError error)
|
|
||||||
{
|
|
||||||
if (error != QNetworkReply::NoError)
|
|
||||||
{
|
|
||||||
emit errorOccur(reply->errorString());
|
|
||||||
}
|
|
||||||
});
|
|
||||||
connect(reply, &QNetworkReply::finished, &event, &QEventLoop::quit);
|
|
||||||
event.exec();
|
|
||||||
|
|
||||||
qint64 fileSize = 0;
|
|
||||||
if (reply->rawHeader("Accept-Ranges") == QByteArrayLiteral("bytes") && reply->hasRawHeader(QString("Content-Length").toLocal8Bit()))
|
|
||||||
{
|
|
||||||
fileSize = reply->header(QNetworkRequest::ContentLengthHeader).toUInt();
|
|
||||||
}
|
|
||||||
qDebug() << "文件大小为:" << fileSize;
|
|
||||||
reply->deleteLater();
|
|
||||||
return fileSize;
|
return fileSize;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ int main(int argc, char *argv[])
|
|||||||
DAboutDialog dialog;
|
DAboutDialog dialog;
|
||||||
a.setAboutDialog(&dialog);
|
a.setAboutDialog(&dialog);
|
||||||
dialog.setLicense(QObject::tr("We publish this program under GPL V3"));
|
dialog.setLicense(QObject::tr("We publish this program under GPL V3"));
|
||||||
dialog.setVersion(DApplication::buildVersion("Version 3.1.4-1"));
|
dialog.setVersion(DApplication::buildVersion("Version 3.1.5-2"));
|
||||||
dialog.setProductIcon(QIcon::fromTheme("spark-store")); // 设置Logo
|
dialog.setProductIcon(QIcon::fromTheme("spark-store")); // 设置Logo
|
||||||
dialog.setProductName(QLabel::tr("Spark Store"));
|
dialog.setProductName(QLabel::tr("Spark Store"));
|
||||||
dialog.setDescription(
|
dialog.setDescription(
|
||||||
@@ -51,7 +51,7 @@ int main(int argc, char *argv[])
|
|||||||
a.setOrganizationName("spark-union");
|
a.setOrganizationName("spark-union");
|
||||||
a.setOrganizationDomain("https://www.deepinos.org/");
|
a.setOrganizationDomain("https://www.deepinos.org/");
|
||||||
a.setApplicationName("Spark Store"); //不需要翻译,否则 ~/.local/share/ 下文件夹名称也被翻译为中文
|
a.setApplicationName("Spark Store"); //不需要翻译,否则 ~/.local/share/ 下文件夹名称也被翻译为中文
|
||||||
a.setApplicationVersion(DApplication::buildVersion("3.1.4-1"));
|
a.setApplicationVersion(DApplication::buildVersion("3.1.5-2"));
|
||||||
a.setApplicationAcknowledgementPage("https://gitee.com/deepin-community-store/spark-store");
|
a.setApplicationAcknowledgementPage("https://gitee.com/deepin-community-store/spark-store");
|
||||||
a.setApplicationDescription(
|
a.setApplicationDescription(
|
||||||
QObject::tr(
|
QObject::tr(
|
||||||
|
|||||||
0
tool/apt-fast-conf/sources.list.d/.keep
Normal file
0
tool/apt-fast-conf/sources.list.d/.keep
Normal file
@@ -1 +0,0 @@
|
|||||||
deb [by-hash=force] https://d.store.deepinos.org.cn /
|
|
||||||
@@ -24,7 +24,7 @@ fi
|
|||||||
bwrap --dev-bind / / \
|
bwrap --dev-bind / / \
|
||||||
--bind '/tmp/ss-apt-fast-conf/apt-fast.conf' /etc/apt-fast.conf \
|
--bind '/tmp/ss-apt-fast-conf/apt-fast.conf' /etc/apt-fast.conf \
|
||||||
--bind '/opt/durapps/spark-store/bin/apt-fast-conf/sources.list.d/sparkstore.list' /etc/apt/sources.list.d/sparkstore.list \
|
--bind '/opt/durapps/spark-store/bin/apt-fast-conf/sources.list.d/sparkstore.list' /etc/apt/sources.list.d/sparkstore.list \
|
||||||
apt-fast "$@"
|
apt-fast "$@" --allow-downgrades
|
||||||
|
|
||||||
rm -rf /tmp/ss-apt-fast-conf
|
rm -rf /tmp/ss-apt-fast-conf
|
||||||
|
|
||||||
|
|||||||
@@ -2,13 +2,51 @@
|
|||||||
|
|
||||||
echo "以上可升级,是否升级?[y/n]"
|
echo "以上可升级,是否升级?[y/n]"
|
||||||
read yes_or_no
|
read yes_or_no
|
||||||
if [ "$yes_or_no" = "y" ];then
|
if [ "$yes_or_no" = "y" ];then ###这是确定是否同意
|
||||||
mkdir -p /tmp/ss-apt-fast-conf/sources.list.d
|
|
||||||
|
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)"
|
||||||
|
|
||||||
|
|
||||||
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 ss-apt-fast upgrade -y -o Dir::Etc::sourcelist="sources.list.d/sparkstore.list" -o Dir::Etc::sourceparts="-" -o APT::Get::List-Cleanup="0"
|
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 /usr/local/bin/ss-apt-fast 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
|
|
||||||
exit
|
else ###这是确定是否为UOS
|
||||||
fi
|
|
||||||
|
for PKG_NAME in $PKG_LIST;
|
||||||
|
do
|
||||||
|
echo "$PKG_NAME 正在准备更新..."
|
||||||
|
if sudo /usr/local/bin/ss-apt-fast install "$PKG_NAME" -y >/dev/null 2>&1;
|
||||||
|
then
|
||||||
|
echo "$PKG_NAME 已更新"
|
||||||
|
else
|
||||||
|
echo "WARNING: $PKG_NAME 无法更新"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
|
||||||
|
fi ###这是确定是否为UOS
|
||||||
|
|
||||||
|
fi ###这是确定是否同意
|
||||||
@@ -71,10 +71,9 @@ case $option in
|
|||||||
;;
|
;;
|
||||||
|
|
||||||
2)
|
2)
|
||||||
echo "请注意:如果有些更新需要从系统获取更多依赖,你将需要手动操作 sudo ss-apt-fast upgrade"
|
|
||||||
echo "执行以下操作需要授权..."
|
echo "执行以下操作需要授权..."
|
||||||
sudo ss-apt-fast ssupdate
|
sudo ss-apt-fast ssupdate
|
||||||
/opt/durapps/spark-store/bin/update-upgrade/ss-upgrade-list.sh
|
/opt/durapps/spark-store/bin/update-upgrade/ss-upgrade-list.sh
|
||||||
/opt/durapps/spark-store/bin/update-upgrade/ss-do-upgrade.sh
|
/opt/durapps/spark-store/bin/update-upgrade/ss-do-upgrade.sh
|
||||||
echo "---请按回车返回"
|
echo "---请按回车返回"
|
||||||
read
|
read
|
||||||
|
|||||||
Reference in New Issue
Block a user