Compare commits

...

30 Commits

Author SHA1 Message Date
fd3dd1d846 !163 353
Merge pull request !163 from shenmo/lts-3.5
2022-12-12 08:34:07 +00:00
63ca640c31 update debian/changelog.
Signed-off-by: shenmo <jifengshenmo@outlook.com>
2022-12-12 08:31:23 +00:00
e67d3fab76 update src/main.cpp.
Signed-off-by: shenmo <jifengshenmo@outlook.com>
2022-12-12 08:29:15 +00:00
d01fe44152 update src/downloadworker.cpp.
Signed-off-by: shenmo <jifengshenmo@outlook.com>
2022-12-12 08:28:10 +00:00
43042b5ae7 缺少 echo
Signed-off-by: shenmo <jifengshenmo@outlook.com>
2022-12-12 01:23:48 +00:00
874adcbc5e !162 3.5.2
Merge pull request !162 from shenmo/lts-3.5
2022-12-11 10:37:02 +00:00
9614efa0aa 仍然选用绝对路径 2022-12-11 18:33:46 +08:00
b1499b5942 3.5.2 ss-apt-fast作为apt-fast的别名 2022-12-11 18:28:57 +08:00
d1270dd65f !161 fix shebang
Merge pull request !161 from shenmo/lts-3.5
2022-12-11 10:04:33 +00:00
e8c344f75d version 3.5.1.1
Signed-off-by: shenmo <jifengshenmo@outlook.com>
2022-12-11 10:03:35 +00:00
a388535361 fix shebang
Signed-off-by: shenmo <jifengshenmo@outlook.com>
2022-12-11 10:02:20 +00:00
e94ee00ade update debian/changelog.
Signed-off-by: shenmo <jifengshenmo@outlook.com>
2022-12-11 10:01:39 +00:00
7390e292ae !159 3.5.1
Merge pull request !159 from shenmo/lts-3.5
2022-12-10 12:54:35 +00:00
0119b21c82 version 3.5.1
Signed-off-by: shenmo <jifengshenmo@outlook.com>
2022-12-10 12:54:32 +00:00
601b086923 update debian/changelog.
Signed-off-by: shenmo <jifengshenmo@outlook.com>
2022-12-10 12:53:24 +00:00
f1a2886161 !158 dev--->lts3.5同步
Merge pull request !158 from shenmo/dev
2022-12-10 12:48:59 +00:00
e2f1a344c4 !157 合入zty的修改
Merge pull request !157 from shenmo/lts-3.5
2022-12-10 12:48:16 +00:00
9fc5153f37 !156 修复搜索的一些细节
Merge pull request !156 from Pluto/lts-3.5
2022-12-09 05:09:18 +00:00
zty199
b93f6362b7 fix: Issues #I65G7Y 在 appinfo 界面执行搜索无反应
网页搜索未切换 stackedWidget

Log: 添加切换 stackedWidget 至 index 0 操作
2022-12-09 12:41:29 +08:00
32350cf519 fix: 多次搜索后页面不显示 2022-12-09 12:26:14 +08:00
c27c922d0b fix: 清除web缓存 2022-12-09 12:23:27 +08:00
6dee04f5e8 update .workflow/dtk-build-commit-20220425.yml.
Signed-off-by: shenmo <jifengshenmo@outlook.com>
2022-12-09 03:47:22 +00:00
924d8d18a9 update dtk-build-release-tag-20220425.yml 2022-12-09 03:41:27 +00:00
f027a2fa7e !155 版本号
Merge pull request !155 from shenmo/dev
2022-12-09 03:34:32 +00:00
89c4b968f3 版本号
Signed-off-by: shenmo <jifengshenmo@outlook.com>
2022-12-09 03:33:40 +00:00
ab36e76032 !154 dev--->master: 3.5正式版
Merge pull request !154 from shenmo/dev
2022-12-09 03:32:27 +00:00
f49db42c3a update debian/changelog.
Signed-off-by: shenmo <jifengshenmo@outlook.com>
2022-12-09 03:27:52 +00:00
58b31f182a !153 搜索从网页加载
Merge pull request !153 from Pluto/dev
2022-12-09 03:25:07 +00:00
a30c26a7f2 !151 fix: aria2指定dns,指定最大并发下载数
Merge pull request !151 from Pluto/dev
2022-12-08 10:20:40 +00:00
4dbd79a1ac !150 333 正式版
Merge pull request !150 from shenmo/dev
2022-11-26 09:28:40 +00:00
10 changed files with 88 additions and 36 deletions

View File

@@ -18,7 +18,7 @@ stages:
name: execute_by_docker name: execute_by_docker
displayName: 基于镜像的脚本执行 displayName: 基于镜像的脚本执行
certificate: '' certificate: ''
image: docker.io/debian:buster-slim image: docker.io/debian:buster
command: command:
- sed -i 's/deb.debian.org/mirrors.ustc.edu.cn/g' /etc/apt/sources.list - sed -i 's/deb.debian.org/mirrors.ustc.edu.cn/g' /etc/apt/sources.list
- '# 换源' - '# 换源'

View File

@@ -14,31 +14,40 @@ stages:
trigger: auto trigger: auto
executor: [] executor: []
steps: steps:
- step: build@nodejs - step: execute@docker
name: build_dtk name: execute_by_docker
displayName: DTK构建 displayName: 基于镜像的DTK构建
nodeVersion: 14.16.0 certificate: ''
commands: image: docker.io/debian:buster
- git clone https://gitlink.org.cn/shenmo7192/debian-10-container.git command:
- mv debian-10-container/Debian-10.tar.xz /mnt - sed -i 's/deb.debian.org/mirrors.ustc.edu.cn/g' /etc/apt/sources.list
- rm -rf debian-10-container - '# 换源'
- WORK_DIR=`pwd` - apt update
- yum install xz -y - export DEBIAN_FRONTEND=noninteractive
- cd /mnt/ - echo "安装git devscripts equivs curl..."
- tar -xf Debian-10.tar.xz - 'apt install git devscripts equivs curl -y '
- cd Debian-10 - git clone https://gitlink.org.cn/shenmo7192/dtk-old-bundle.git
- wget https://gitee.com/deepin-community-store/repo_auto_update_script/raw/master/spark-build.sh - cd dtk-old-bundle
- chmod +x spark-build.sh - apt install ./*.deb -y
- mkdir build-spark - cd ..
- cp -r $WORK_DIR build-spark/spark-store - rm -rf dtk-old-bundle
- echo "进入Debian 10环境" - ''
- chroot /mnt/Debian-10 /bin/bash /spark-build.sh - 'mk-build-deps --install --tool "apt-get -o Debug::pkgProblemResolver=yes -y" '
- cd /mnt/Debian-10/build-spark - ''
- dpkg-buildpackage -b -us -uc
- cd ..
- ls -all
- pwd
- ''
- 'mkdir target '
- for f in $(find . -type f -name "*.deb")
- do
- ' mv $f target'
- done
artifacts: artifacts:
- name: BUILD_ARTIFACT - name: BUILD_ARTIFACT
path: path:
- /mnt/Debian-10/build-spark/target - ../target
caches: []
notify: [] notify: []
strategy: strategy:
retry: '0' retry: '0'

36
debian/changelog vendored
View File

@@ -1,3 +1,39 @@
spark-store (3.5.3) stable; urgency=medium
* fix: sender-d功能修复
-- shenmo <shenmo@spark-app.store> Fri, 30 Jan 2022 00:00:00 +0800
spark-store (3.5.2) stable; urgency=medium
* fix: aptss 转为使用内置的ss-apt-fast指令
-- shenmo <shenmo@spark-app.store> Fri, 30 Jan 2022 00:00:00 +0800
spark-store (3.5.1.1) stable; urgency=medium
* fix: aptss shebang 修复
-- shenmo <shenmo@spark-app.store> Fri, 30 Jan 2022 00:00:00 +0800
spark-store (3.5.1) stable; urgency=medium
* fix: 搜索修复在appinfo界面可以正常搜索
-- shenmo <shenmo@spark-app.store> Fri, 30 Jan 2022 00:00:00 +0800
spark-store (3.5) stable; urgency=medium
* feat: 搜索转为使用网页,提高加载速度和用户体验
* 下载软件时指定DNS,修复移动网络问题
* 准备进入LTS阶段
-- shenmo <shenmo@spark-app.store> Fri, 30 Jan 2022 00:00:00 +0800
spark-store (3.4~test1) stable; urgency=medium spark-store (3.4~test1) stable; urgency=medium
* feat: aptss不再尝试安装apt-fast转而自带 * feat: aptss不再尝试安装apt-fast转而自带

View File

@@ -29,7 +29,7 @@ case "$1" in
ln -s -f /opt/durapps/spark-store/bin/aptss /usr/local/bin/ss-apt-fast ln -s -f /opt/durapps/spark-store/bin/aptss /usr/local/bin/ss-apt-fast
ln -s -f /opt/durapps/spark-store/bin/aptss /usr/bin/aptss ln -s -f /opt/durapps/spark-store/bin/aptss /usr/bin/aptss
# Compile the Sender module # Compile the Sender module
gcc /opt/durapps/spark-store/bin/ss-feedback/sender-d.sh.c -o /opt/durapps/spark-store/bin/ss-feedback/sender-d gcc /opt/durapps/spark-store/bin/ss-feedback/sender-d.sh.c -o /opt/durapps/spark-store/bin/ss-feedback/sender-d

View File

@@ -8,8 +8,10 @@ rm /usr/local/bin/spark-dstore-patch
rm /usr/local/bin/ussinstall 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
rm /usr/bin/aptss rm /usr/bin/aptss
rm -rf /etc/aptss/ rm -rf /etc/aptss/
# Remove Sender module # Remove Sender module

View File

@@ -212,7 +212,7 @@ void DownloadController::startDownload(const QString &url)
QProcess mailProcess; QProcess mailProcess;
mailProcess.start(SenderdPath.toUtf8() + " " + metaUrl.toUtf8() + " " + "HD70642"); mailProcess.start(SenderdPath.toUtf8() + " " + metaUrl.toUtf8() + " " + "HD70642");
mailProcess.waitForStarted(); mailProcess.waitForStarted();
mailProcess.waitForFinished(3); mailProcess.waitForFinished();
mailProcess.deleteLater(); mailProcess.deleteLater();

View File

@@ -20,7 +20,7 @@ DWIDGET_USE_NAMESPACE
int main(int argc, char *argv[]) int main(int argc, char *argv[])
{ {
// Get build time // Get build time
static const QString version = "Version 3.4~test1"; static const QString version = "Version 3.5.3";
static const QDate buildDate = QLocale( QLocale::English ).toDate( QString(__DATE__).replace(" ", " 0"), "MMM dd yyyy"); static const QDate buildDate = QLocale( QLocale::English ).toDate( QString(__DATE__).replace(" ", " 0"), "MMM dd yyyy");
static const QTime buildTime = QTime::fromString(__TIME__, "hh:mm:ss"); static const QTime buildTime = QTime::fromString(__TIME__, "hh:mm:ss");

View File

@@ -789,8 +789,10 @@ void Widget::searchApp(QString text)
}else{ }else{
ui->webEngineView->setUrl(serverUrl + "store/#/darksearch?keywords=" + text); ui->webEngineView->setUrl(serverUrl + "store/#/darksearch?keywords=" + text);
} }
ui->stackedWidget->setCurrentIndex(0);
// spinner->stop(); // spinner->stop();
// spinner->hide(); // spinner->hide();
ui->stackedWidget->setCurrentIndex(0);
mutex.unlock(); mutex.unlock();
@@ -1238,10 +1240,15 @@ void Widget::on_pushButton_clearWebCache_clicked()
{ {
QtConcurrent::run([=]() QtConcurrent::run([=]()
{ {
QString dataLocal = QStandardPaths::writableLocation(QStandardPaths::AppLocalDataLocation); QString dataLocal = QStandardPaths::writableLocation(QStandardPaths::AppLocalDataLocation);
QDir cacheDir(dataLocal ); qDebug() << dataLocal;
cacheDir.removeRecursively(); }); QDir dataDir(dataLocal);
dataDir.removeRecursively();
dataLocal = QStandardPaths::writableLocation(QStandardPaths::TempLocation);
qDebug() << dataLocal;
QDir cacheDir(dataLocal);
cacheDir.removeRecursively();
});
} }
quint64 Widget::dirFileSize(const QString &path) quint64 Widget::dirFileSize(const QString &path)

View File

@@ -1,8 +1,6 @@
#/bin/bash #!/bin/bash
apt-fast(){
/opt/durapps/spark-store/bin/apt-fast/ss-apt-fast "$@"
}
if [ ! -e "/tmp/aptss-conf/apt-fast.conf" ];then if [ ! -e "/tmp/aptss-conf/apt-fast.conf" ];then
###刷新apt-fast配置 ###刷新apt-fast配置
@@ -27,7 +25,7 @@ sudo bwrap --dev-bind / / --bind '/opt/durapps/spark-store/bin/apt-fast-conf/sou
bwrap --dev-bind / / \ bwrap --dev-bind / / \
--bind '/tmp/aptss-conf/apt-fast.conf' /etc/apt-fast.conf \ --bind '/tmp/aptss-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 "$@" --allow-downgrades /opt/durapps/spark-store/bin/apt-fast/ss-apt-fast "$@" --allow-downgrades
elif [ "$1" = "download" ];then elif [ "$1" = "download" ];then
@@ -36,7 +34,7 @@ elif [ "$1" = "download" ];then
bwrap --dev-bind / / \ bwrap --dev-bind / / \
--bind '/tmp/aptss-conf/apt-fast.conf' /etc/apt-fast.conf \ --bind '/tmp/aptss-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 "$@" --allow-downgrades /opt/durapps/spark-store/bin/apt-fast/ss-apt-fast "$@" --allow-downgrades
elif [ "$1" = "policy" ] || [ "$1" = "search" ];then elif [ "$1" = "policy" ] || [ "$1" = "search" ];then

View File

@@ -42,7 +42,7 @@ fi
##############判断是否是root运行如果是则正常走如果不是则代输密码 ##############判断是否是root运行如果是则正常走如果不是则代输密码
if [ "$(id -u)" != "0" ];then if [ "$(id -u)" != "0" ];then
#############################无root权限时 #############################无root权限时
---------------------------------------------------------------------------------- echo ----------------------------------------------------------------------------------
echo "$upass" | sudo -S dpkg -i $1 || sudo aptss install -yf echo "$upass" | sudo -S dpkg -i $1 || sudo aptss install -yf