Compare commits

..

114 Commits

Author SHA1 Message Date
6a83cc3d46 !52 使用aria2替换原本的多线程下载
* update debian/control.
* fix: readme
* change: 切换到 aria2
* Download: 初步完成对 axel 的适配工作
* README: 英文修正 ubuntu22 的依赖问题
* Merge remote-tracking branch 'upstream/master'
* widget: 检查cdn状况在下载开始前检测,不堵塞ui线程
* Merge remote-tracking branch 'upstream/master'
* readme: 修正 ubuntu 的编译说明
* download: 检查软件源的有效性
2022-06-30 15:26:13 +00:00
ce5cbc1619 !51 read -e
* update tool/update-upgrade/ss-update-controler.sh.
* update tool/ussinstall.
* update tool/ssinstall.
2022-06-30 01:44:52 +00:00
ff7c73277b !49 ss-apt-fast需要加入sudo
* update tool/ssinstall.
2022-06-28 08:20:31 +00:00
e2c9e8d9c7 !48 widget: 检查cdn状况在下载开始前检测,不堵塞ui线程
* widget: 检查cdn状况在下载开始前检测,不堵塞ui线程
* Merge remote-tracking branch 'upstream/master'
* readme: 修正 ubuntu 的编译说明
* download: 检查软件源的有效性
2022-06-27 15:52:27 +00:00
4b3a673b29 !47 文案和显示效果修改
* update tool/ss-apt-fast.
* update tool/ss-apt-fast.
2022-06-27 10:16:40 +00:00
71212e39f3 !46 fix !44
* readme: 修正 ubuntu 的编译说明
* download: 检查软件源的有效性
2022-06-27 10:11:41 +00:00
RigoLigo
33742f96de !45 添加下载量显示
* 添加下载量显示
2022-06-26 12:10:10 +00:00
ac0a38e670 !44 多线程下载前验证源的有效性
* readme: 修正 ubuntu 的编译说明
* download: 检查软件源的有效性/异步
* download: 检查软件源的有效性
2022-06-26 12:09:16 +00:00
af7990e069 !43 ss-apt-fast相关改动:先行获取mirror和自动安装apt-fast
* 修复 多位数无法显示
* 	modified:   tool/update-upgrade/ss-do-upgrade.sh
* 	modified:   tool/update-upgrade/ss-do-upgrade.sh
* 更改依赖判断方法
* 	modified:   debian/changelog
* * 新增:ssinstall现在会在没有apt-fast的时候自动安装
2022-06-26 06:21:19 +00:00
f8dbca8f6f !42 3.1.2
Merge pull request !42 from shenmo/master
2022-06-21 14:58:37 +00:00
a064b7b534 修改: debian/changelog
修改:     debian/control
	修改:     debian/spark-store.postinst
	修改:     debian/spark-store.prerm
	修改:     spark-store-project.pro
	修改:     src/main.cpp
	新文件:   tool/apt-fast-conf/apt-fast.conf
	新文件:   tool/ss-apt-fast
	修改:     tool/ssinstall
	修改:     tool/update-upgrade/ss-do-upgrade.sh
	修改:     tool/update-upgrade/ss-update-controler.sh
2022-06-21 22:37:39 +08:00
289f3020fe !41 不再case yoyo
Merge pull request !41 from shenmo/master
2022-06-16 05:31:51 +00:00
9cd974fed9 不再case yoyo 2022-06-16 05:31:05 +00:00
4d97a1e87b !40 检测yoyo-daemon
Merge pull request !40 from 柚子/N/A
2022-06-10 10:33:15 +00:00
柚子
d326e8919f 检测yoyo-daemon 2022-06-10 10:32:33 +00:00
Jerry
1828a60ff1 !39 update img url
* fix: update img url
2022-06-07 10:54:26 +00:00
865322c85f !37 修改controler的文案
Merge pull request !37 from shenmo/master
2022-05-15 02:46:38 +00:00
c22c76efc2 update tool/update-upgrade/ss-update-controler.sh. 2022-05-15 02:45:19 +00:00
415dd1a63c !36 update tool/update-upgrade/ss-upgrade-list.sh.
Merge pull request !36 from lv36/N/A
2022-05-15 02:40:01 +00:00
lv36
7e105b59b0 update tool/update-upgrade/ss-upgrade-list.sh.
接对ss-update-controler.sh的修改,
微调了输出的显示,个人认为这样可加强字符显示的对比,增强显示的对比、提醒(自己看着更舒服)
2022-05-14 15:06:41 +00:00
84b3340687 update README.md. 2022-05-11 14:43:24 +00:00
2da576aeab update README.zh.md. 2022-05-11 14:38:51 +00:00
fb94448692 update README.zh.md. 2022-05-11 14:38:29 +00:00
6ba7601efa update README.zh.md. 2022-05-11 14:37:49 +00:00
4ea6c90e78 update README.md. 2022-05-11 14:37:03 +00:00
f3633bb19d add README.md. 2022-05-11 14:36:14 +00:00
090b9a279f 重命名 README.md 为 README.zh.md 2022-05-11 14:25:08 +00:00
1bf8a57802 3.1.1 2022-05-10 12:19:16 +00:00
01f2610e0a update debian/changelog. 2022-05-10 12:18:36 +00:00
3e3c3140d0 update tool/update-upgrade/ss-update-controler.sh. 2022-05-10 12:16:34 +00:00
6ca024b6f3 清理policy和update number文件 2022-05-09 16:42:13 +00:00
c0ea5824b1 修改: debian/changelog 2022-05-09 18:37:08 +08:00
ee60b2e7f6 修改: debian/changelog 2022-05-09 18:36:49 +08:00
53ae863823 修改: tool/password-check/ss-certificate-passwd 2022-05-09 01:00:11 +08:00
3dae7db89a 修复UOS且apt-fast下的提权错误 2022-05-08 15:40:15 +00:00
3b3bf8f0de 修改: src/downloadlist.cpp
修改:     src/widget.cpp
	重命名:   pkg/usr/share/polkit-1/actions/store.spark-app.ssinstall.policy -> tool/auto-install-policy/store.spark-app.ssinstall.policy
	修改:     tool/update-upgrade/ss-update-controler.sh
	修改:     translations/spark-store_en.ts
	修改:     translations/spark-store_fr.ts
	修改:     translations/spark-store_zh_CN.ts
2022-05-08 23:11:42 +08:00
00f9b62b80 修改: debian/changelog 2022-05-08 22:24:03 +08:00
0916a0a97e !34 修改control/修改logo
* 	删除:     assets/Logo-Spark.png
* update src/main.cpp.
* The font used for new logo
* new logo file
* update debian/control.
2022-05-08 14:21:50 +00:00
Jerry
c6505c1c14 update readme 2022-05-03 09:13:29 +00:00
4f600f3ec7 update .workflow/master-pipeline.yml. 2022-04-28 14:35:45 +00:00
bf5d0cb75f update master-pipeline.yml for Gitee Go updated_at:2022-04-28 11:03:54 2022-04-28 11:03:54 +00:00
4ca292bd34 删除文件 target 2022-04-28 10:57:30 +00:00
12cf0a3515 新建 deb 2022-04-27 15:05:16 +00:00
18279ec00d 新建 build 2022-04-27 15:05:06 +00:00
e415798ee0 新建 target 2022-04-27 15:04:58 +00:00
89740ad953 update master-pipeline.yml for Gitee Go updated_at:2022-04-27 15:00:34 2022-04-27 15:00:35 +00:00
3eddb4ce71 update master-pipeline.yml for Gitee Go updated_at:2022-04-27 15:00:31 2022-04-27 15:00:31 +00:00
239a788019 update tool/update-upgrade/ss-update-controler.sh. 2022-04-26 10:23:17 +00:00
dc6210b545 update tool/update-upgrade/ss-update-controler.sh. 2022-04-26 10:19:31 +00:00
94d6a566ca update tool/update-upgrade/ss-do-upgrade.sh. 2022-04-26 10:17:19 +00:00
c66c5c6ca3 114514. 2022-04-26 07:58:07 +00:00
c974349c9f update tool/update-upgrade/ss-do-upgrade.sh. 2022-04-26 06:08:30 +00:00
42362fd0ca update .gitee/Dockerfile. 2022-04-26 06:06:59 +00:00
63bc01c43d update .gitee/Dockerfile. 2022-04-26 05:02:00 +00:00
280cd983cb update master-pipeline.yml for Gitee Go updated_at:2022-04-26 04:23:16 2022-04-26 04:23:17 +00:00
05e95b42e0 update .workflow/master-pipeline.yml. 2022-04-26 04:18:05 +00:00
2614b4ae05 update .gitee/Dockerfile. 2022-04-26 03:37:17 +00:00
e8d55cadb6 update master-pipeline.yml for Gitee Go updated_at:2022-04-26 03:14:38 2022-04-26 03:14:38 +00:00
3534b815cc update master-pipeline.yml for Gitee Go updated_at:2022-04-26 03:11:57 2022-04-26 03:11:58 +00:00
ef75e89916 update master-pipeline.yml for Gitee Go updated_at:2022-04-26 03:11:55 2022-04-26 03:11:55 +00:00
e4daffd052 update master-pipeline.yml for Gitee Go updated_at:2022-04-26 03:11:16 2022-04-26 03:11:16 +00:00
9c29ca2e38 update master-pipeline.yml for Gitee Go updated_at:2022-04-26 02:55:13 2022-04-26 02:55:13 +00:00
733751db8e 干完这一票咱就3.1了 2022-04-26 02:53:26 +00:00
db739181f2 update master-pipeline.yml for Gitee Go updated_at:2022-04-26 02:51:49 2022-04-26 02:51:49 +00:00
0bd87eb100 update master-pipeline.yml for Gitee Go updated_at:2022-04-26 02:51:00 2022-04-26 02:51:01 +00:00
8b690e8dea update master-pipeline.yml for Gitee Go updated_at:2022-04-26 02:50:58 2022-04-26 02:50:58 +00:00
9329c939d7 update .gitee/Dockerfile. 2022-04-26 02:38:36 +00:00
232fe777e5 新文件: tool/password-check/ss-certificate-passwd
修改:     tool/ssinstall
2022-04-26 10:33:37 +08:00
000fcf8c9d update spark-store-project.pro. 2022-04-25 14:17:24 +00:00
30bc12a8b6 update master-pipeline.yml for Gitee Go updated_at:2022-04-25 12:51:44 2022-04-25 12:51:44 +00:00
a7385aff1e update master-pipeline.yml for Gitee Go updated_at:2022-04-25 12:07:43 2022-04-25 12:07:43 +00:00
c5b786d9e6 update master-pipeline.yml for Gitee Go updated_at:2022-04-25 12:06:39 2022-04-25 12:06:39 +00:00
55d254e147 update master-pipeline.yml for Gitee Go updated_at:2022-04-25 11:58:00 2022-04-25 11:58:00 +00:00
cccad380a4 update master-pipeline.yml for Gitee Go updated_at:2022-04-25 11:51:03 2022-04-25 11:51:03 +00:00
afe5c00af7 update master-pipeline.yml for Gitee Go updated_at:2022-04-25 11:44:09 2022-04-25 11:44:09 +00:00
55e7fd836c update .workflow/master-pipeline.yml. 2022-04-25 11:35:47 +00:00
2959d72d1c update .workflow/master-pipeline.yml. 2022-04-25 11:31:33 +00:00
95b4608e82 update .workflow/master-pipeline.yml. 2022-04-25 11:30:00 +00:00
edef44eea8 update master-pipeline.yml for Gitee Go updated_at:2022-04-25 11:10:01 2022-04-25 11:10:02 +00:00
a4b9bd6a17 update master-pipeline.yml for Gitee Go updated_at:2022-04-25 11:09:59 2022-04-25 11:09:59 +00:00
a165cd7d67 update master-pipeline.yml for Gitee Go updated_at:2022-04-25 11:08:06 2022-04-25 11:08:06 +00:00
387d21b29f update master-pipeline.yml for Gitee Go updated_at:2022-04-25 11:08:02 2022-04-25 11:08:02 +00:00
63b8ae5ae7 update master-pipeline.yml for Gitee Go updated_at:2022-04-25 11:03:59 2022-04-25 11:04:00 +00:00
9ae4fa8372 update master-pipeline.yml for Gitee Go updated_at:2022-04-25 11:03:56 2022-04-25 11:03:56 +00:00
1eb2f8df91 update master-pipeline.yml for Gitee Go updated_at:2022-04-25 11:02:40 2022-04-25 11:02:40 +00:00
ce1de9c367 update .gitee/Dockerfile. 2022-04-25 11:00:44 +00:00
80284b22cb update master-pipeline.yml for Gitee Go updated_at:2022-04-25 09:37:09 2022-04-25 09:37:09 +00:00
ad1b69493a add master-pipeline.yml for Gitee Go created_at:2022-04-25 08:58:29 2022-04-25 08:58:29 +00:00
7ca5e9b0d0 修改: spark-store-project.pro 2022-04-25 13:35:57 +08:00
873a83e6b9 修改: debian/changelog
新文件:   pkg/usr/share/polkit-1/actions/store.spark-app.ssinstall.policy
	修改:     spark-store-project.pro
	修改:     src/main.cpp
	修改:     tool/ssinstall
2022-04-25 13:34:25 +08:00
da8ee30fbd update README.md. 2022-04-25 03:33:33 +00:00
6d84fa0fe5 add DOCS/code-analyze.md. 2022-04-25 03:22:03 +00:00
41d6272526 删除文件 code-analyze.md 2022-04-25 03:21:46 +00:00
0f7bdf484f update README.md. 2022-04-25 03:21:09 +00:00
bc67bcb6f0 update code-analyze.md. 2022-04-25 03:18:07 +00:00
134586b580 add DOCS/spk-doc.md. 2022-04-25 03:17:36 +00:00
d645b26c62 新建 DOCS 2022-04-25 03:17:02 +00:00
fdc818cdb4 update code-analyze.md. 2022-04-25 03:16:55 +00:00
1f493a8aca add code-analyze.md. 2022-04-25 03:16:11 +00:00
463a8d0c04 update README.md. 2022-04-25 03:15:17 +00:00
932bbd7995 update debian/changelog. 2022-04-24 08:17:12 +00:00
5f45abc484 update tool/ssinstall. 2022-04-24 08:12:34 +00:00
820ad08bf4 修改: debian/changelog
修改:     添加了Recommends
	修改:     更新版本号,使用自定义DAboutDialog
	修改:     translations/spark-store_en.ts
	修改:     translations/spark-store_fr.ts
	修改:     translations/spark-store_zh_CN.ts
2022-04-24 16:00:37 +08:00
2ddfb3f192 !31 兼容改动改变文案+ssinstall临时提升优先级
* update tool/ssinstall.
* update tool/ssinstall.
* update tool/ssinstall.
* update tool/ssinstall.
* update tool/ssinstall.
* update tool/ssinstall.
* update translations/spark-store_zh_CN.ts.
* update src/widget.ui.
2022-04-24 07:33:47 +00:00
b3ca6878ec update debian/control. 2022-04-23 02:44:50 +00:00
ae6f2354bb update debian/control. 2022-04-23 02:41:15 +00:00
591556a7c8 update debian/changelog. 2022-04-22 09:06:12 +00:00
0bcf8a1ee9 版本号到30312 2022-04-22 09:05:00 +00:00
15b6a22f49 !30 标题栏处理
Merge pull request !30 from shenmo/master
2022-04-22 09:03:47 +00:00
7f1f5528ef update src/main.cpp. 2022-04-22 09:02:46 +00:00
158ba884b1 update debian/control. 2022-04-14 12:57:48 +00:00
d9a50e7b44 修改: 多了单引号 2022-04-14 17:31:56 +08:00
72019f7cce 修改: 现在只检测星火源的更新,避免出现问题
新文件:   检测网络环境,没网就退出
2022-04-14 17:26:54 +08:00
c4b26045d9 update tool/update-upgrade/ss-update-controler.sh. 2022-04-11 08:19:27 +00:00
43 changed files with 1991 additions and 1145 deletions

View File

@@ -1,2 +1,4 @@
FROM python:3 FROM shenmo7192/uos-21-dtk5.4:1.0
RUN pip3 install requests ADD . /root/workdir
WORKDIR /root/workdir
RUN dpkg-buildpackage

1
.gitignore vendored
View File

@@ -51,3 +51,4 @@ debian/*.debhelper*
debian/files debian/files
debian/*.substvars debian/*.substvars
debian/spark-store debian/spark-store

View File

@@ -0,0 +1,35 @@
version: '1.0'
name: dtk-build-commit-20220425
displayName: dtk-build-commit
triggers:
trigger: manual
push:
branches:
prefix:
- master
tags:
prefix:
- ''
stages:
- name: stage-4e566164
displayName: build
strategy: naturally
trigger: auto
executor: []
steps:
- step: execute@docker
name: execute_by_docker
displayName: 基于镜像的脚本执行
certificate: d3a72e50-a6b5-013a-3031-5e77c3ac149e
image: hub.docker.com/r/shenmo7192/uos-21-dtk5.4
command:
- git clone https://gitee.com/deepin-community-store/spark-store
- mkdir debs
- cd spark-store
- dpkg-buildpackage
- mv *.deb ../debs
- cd ../debs
- curl -s --url "smtp://smtp.163.com" --mail-from "sparkstorefeedback@163.com" --mail-rcpt "shenmo@spark-app.store" --upload-file ./*.deb --user "sparkstorefeedback@163.com:YWYGLQNOPLWNNJJY"
permissions:
- role: admin
members: []

0
DOCS/.keep Normal file
View File

328
DOCS/code-analyze.md Normal file
View File

@@ -0,0 +1,328 @@
#### 说明
当前服务器线路列表(项目中包含):
```
https://d.store.deepinos.org.cn/
https://store.deepinos.org.cn/
```
# 星火应用商店文档
# 目录结构
几个目录结构
```
/
/icons 图标文件夹
/tags 首页图标
/tras 多语言翻译
```
主要的文件分析
```js
spark-store.pro Qt工程配置文件
ssinstall 调用包安装器的脚本
icons.qrc 图标资源文件
main.cpp 入口文件
widget.h widget.cpp widget.ui 主要窗口控件
downloadlist.h downloadlist.cpp downloadlist.ui 单个软件的下载安装展示控件
progressload.h progressload.cpp 网页加载显示 得在deepin上编译运行才能搞清楚
workerthreads.h workerthreads.cpp 应用信息加载线程
image_show.h image_show.cpp 应用页面截图预览控件
big_image.h big_image.cpp 大图查看控件
```
# 使用的开源库及第三方工具
* GDebi 一个 Ubuntu 软件中心的轻量级替代品 https://linux.cn/article-4982-1.html
* libnotify 系统通知 https://developer.gnome.org/libnotify/unstable/
# 源码分析
## 应用的组成部分
左侧应用分类菜单
主窗口的下拉菜单
应用列表页面
应用详情页面
应用首页,有几个链接跳转
商店设置页面
下载列表页面
## 应用初始化,及主控件加载
初始化 `DApplication` 进入事件循环。
设置关于我们弹窗 `DAboutDialog`
主控件 Widget 根据不同屏幕大小自适应。
首页打开webview页面如果传入了`spk://`参数,会打开应用详情页。
```cpp
// main.cpp
QString arg1=argv[1];
if(arg1.left(6)=="spk://"){
w.openUrl(QUrl(argv[1]));
}
// widget.cpp
void Widget::openUrl(QUrl u)
{
QString app=serverUrl + "store"+u.path()+"/app.json";
ui->webEngineView->setUrl(app); // 会触发 webEngineView 的
}
```
## Tags处理方式
**Tags处理方式**
```cpp
// widget.cpp
QString tags=json["Tags"].toString(); //Read the Tags
QStringList tagList=tags.split(";");
for (int i=0;i<tagList.size();i++) {
if(tagList[i]=="community")
ui->tag_community->show();//Tags icon shows like this
if(tagList[i]=="ubuntu")
ui->tag_ubuntu->show();
if(tagList[i]=="deepin")
ui->tag_deepin->show();
if(tagList[i]=="uos")
ui->tag_uos->show();
if(tagList[i]=="dtk5")
ui->tag_dtk5->show();
if(tagList[i]=="dwine2")
ui->tag_dwine2->show();
if(tagList[i]=="dwine5")
ui->tag_dwine5->show();
if(tagList[i]=="a2d")
ui->tag_a2d->show();
}
```
**Widget 初始化**
```cpp
void Widget::initConfig()
{
...
// 读取服务器URL并初始化菜单项的链接
QSettings readConfig(QDir::homePath()+"/.config/spark-store/config.ini",QSettings::IniFormat);
if(readConfig.value("server/choose").toString()!=""){
ui->comboBox_server->setCurrentText(readConfig.value("server/choose").toString());
appinfoLoadThread.setServer(serverUrl=readConfig.value("server/choose").toString());
}else {
appinfoLoadThread.setServer(serverUrl="http://sucdn.jerrywang.top/"); // 默认URL
}
configCanSave=true; // 防止触发保存配置信号
menuUrl[0]=serverUrl + "store/#/"; // 首页
// 下面是各个应用分类页面直接加载的webview的
// 每个连接对应一个左侧的菜单项,在构造函数用连接到 chooseLeftMenu 槽函数
menuUrl[1]=serverUrl + "store/#/network";
...
menuUrl[12]=serverUrl + "store/#/others";
...
ui->webfoot->hide();
//初始化首页
ui->webEngineView->setUrl(menuUrl[0]);
}
/**
* 菜单切换逻辑
*
*/
void Widget::chooseLeftMenu(int index)
{
nowMenu=index;
updateUI();
left_list[index]->setStyleSheet("color:#FFFFFF;background-color:"+main_color.name()+";border-radius:8;border:0px");
// index <=12 加载某个分类的应用列表的webviejw
// index == 13 加载下载列表页面
if(index<=12){
if(themeIsDark){
darkurl = URL
ui->webEngineView->setUrl(darkurl);
}else {
ui->webEngineView->setUrl(menuUrl[index]);
}
ui->stackedWidget->setCurrentIndex(0);
}else if (index==13) {
ui->stackedWidget->setCurrentIndex(1);
}
}
```
## 应用下载安装卸载分析
**应用详情页面加载**
```cpp
/**
* 加载单个应用的信息
*/
void Widget::on_webEngineView_urlChanged(const QUrl &arg1)
{
//分析出服务器中的分类名称
...
//如果是app.json就打开详情页
if(arg1.path().right(8)=="app.json"){
...
// 读取相应的应用信息
appinfoLoadThread.requestInterruption();
appinfoLoadThread.wait(100);
appinfoLoadThread.setUrl(arg1);
appinfoLoadThread.start();
}
}
// 设置详情页的APP信息
SpkAppInfoLoaderThread::requestSetAppInformation() -> Widget::sltAppinfoDetails()
// 设置详情页的APP图标
SpkAppInfoLoaderThread::finishedIconLoad() -> Widget::sltAppinfoIcon()
// 设置详情页的APP截图
SpkAppInfoLoaderThread::finishedScreenshotLoad() -> Widget::sltAppinfoScreenshot()
// 下载APP详情信息线程
void SpkAppInfoLoaderThread::run()
{
QProcess get_json;
get_json.start("curl -o app.json " + targetUrl.toString());
QFile app_json("app.json");
app.json
}
```
**应用下载**
Widget::on_pushButton_download_clicked() 是点击下载的安装方法。
最终使用的是 `QNetwrokAccessManager` 进行GET请求获取数据写入文件。
```cpp
void Widget::on_pushButton_download_clicked()
{
if(!isBusy){
file = new QFile(fileName);
...
nowDownload+=1;
startRequest(urList.at(nowDownload-1)); // 进行链接请求
}
}
void Widget::startRequest(QUrl url)
{
reply = manager->get(QNetworkRequest(url));
// 请求响应完成,关闭文件,清理下载队列
connect(reply,SIGNAL(finished()),this,SLOT(httpFinished()));
// 接收应用下载数据
connect(reply,SIGNAL(readyRead()),this,SLOT(httpReadyRead()));
// 更新应用下载进度
connect(reply,SIGNAL(downloadProgress(qint64,qint64)),this,SLOT(updateDataReadProgress(qint64,qint64)));
}
```
使用 QSettings 来读取配置,更换服务源
```cpp
void Widget::on_comboBox_server_currentIndexChanged(const QString &arg1)
{
appinfoLoadThread.setServer(arg1); // 服务器信息更新
if(configCanSave){
ui->label_setting1->show();
QSettings *setConfig=new QSettings(QDir::homePath()+"/.config/spark-store/config.ini",QSettings::IniFormat);
setConfig->setValue("server/choose",arg1);
}
}
```
使用 `QProcess` 来调用各种小文件下载、包安装卸载的命令。
**应用安装**
```cpp
void Widget::httpFinished() // 完成下载
{
...
download_list[nowDownload-1].readyInstall();
download_list[nowDownload-1].free=true;
if(nowDownload<allDownload){ // 如果有排队则下载下一个
...
}
}
void downloadlist::readyInstall()
{
...
ui->pushButton_install->setEnabled(true);
ui->pushButton_install->show();
ui->pushButton_2->hide();
Widget::sendNotification(tr("Finished downloading %1, awaiting to install").arg(ui->label->text()), 5000,
"/tmp/spark-store/icon_"+QString::number(num).toUtf8()+".png");
}
void downloadlist::on_pushButton_install_clicked()
{
//弹出菜单
menu_install->exec(cursor().pos());
}
downloadlist menu_install
downloadlist::install()
gdebi, dpkg, deepin-deb-installer
void downloadlist::install(int t)
{
QtConcurrent::run([=](){
QProcess installer;
installer.start("pkexec gdebi -n /tmp/spark-store/"+ui->label_filename->text().toUtf8());
installer.start("pkexec ssinstall /tmp/spark-store/"+ui->label_filename->text().toUtf8());
installer.start("deepin-deb-installer /tmp/spark-store/"+ui->label_filename->text().toUtf8());
});
}
```
**应用卸载**
```cpp
void Widget::on_pushButton_uninstall_clicked()
{
QtConcurrent::run([=](){
uninstall.start("pkexec apt purge -y "+pkgName);
});
}
```
**仓库源更新**
```cpp
// 更新源列表
void Widget::on_pushButton_updateServer_clicked()
{
QtConcurrent::run([=](){
...
QFile::remove(QDir::homePath().toUtf8()+"/.config/spark-store/server.list");
system("curl -o "+QDir::homePath().toUtf8()+"/.config/spark-store/server.list http://dcstore.shenmo.tech/store/server.list");
server.open(QDir::homePath().toUtf8()+"/.config/spark-store/server.list",std::ios::in);
...
while (getline(server,lineTmp)) {
ui->comboBox_server->addItem(QString::fromStdString(lineTmp));
}
});
}
// 更新星火商店apt源
void Widget::on_pushButton_updateApt_clicked()
{
QtConcurrent::run([=](){
comboBox_server /tmp/spark-store/sparkstore.list
bash脚本 sparkstore.list /etc/apt/sources.list.d/
使QProcess pkexec update.sh
}):
}
```
## 发送系统通知
```cpp
#include <libnotify/notify.h>
static NotifyNotification *_notify = nullptr; // 初始化
notify_init(tr("Spark\\ Store").toLocal8Bit()); // 构造函数初始化
notify_uninit(); // 析构函数调用
void Widget::sendNotification(const QString &message, const int msTimeout, const QString &icon)
{
if(_notify == nullptr)
{
_notify = notify_notification_new(tr("Spark\\ Store").toLocal8Bit(), message.toLocal8Bit(), icon.toLocal8Bit());
notify_notification_set_timeout(_notify, msTimeout);
}
else
notify_notification_update(_notify, tr("Spark\\ Store").toLocal8Bit(), message.toLocal8Bit(), icon.toLocal8Bit());
notify_notification_show(_notify, nullptr);
}
```

25
DOCS/spk-doc.md Normal file
View File

@@ -0,0 +1,25 @@
#### 调用参数(spk规则)
参数只有一个Url该url应当遵循这种格式`spk://<任意合法字符>/web分类/包名`
例如:
[spk://abcdefg/games/store.spark-app.hmcl](spk://abcdefg/games/store.spark-app.hmcl)
可选的web分类
| 分类名称 | web分类   |
| -------- | -------------- |
| 网络应用 | network |
| 社交沟通 | chat |
| 音乐欣赏 | music |
| 视频播放 | video |
| 图形图像 | graphics |
| 游戏娱乐 | games |
| 办公学习 | office |
| 阅读翻译 | reading |
| 编程开发 | development |
| 系统工具 | tools |
| 主题美化 | beautify |
| 其他应用 | others |

402
README.md
View File

@@ -1,388 +1,58 @@
# 星火应用商店 # Spark App Store
[![star](https://gitee.com/deepin-community-store/spark-store/badge/star.svg?theme=gvp)](https://gitee.com/deepin-community-store/spark-store/stargazers) [![fork](https://gitee.com/deepin-community-store/spark-store/badge/fork.svg?theme=gvp)](https://gitee.com/deepin-community-store/spark-store/members)
Spark Store aims to collect Linux apps for the convieniece of Linux new comers
众所周知国内的Linux应用比较少wine应用难以获取优质工具分散在民间各大论坛无法形成合力难以改善生态 The collecting process needs everyone's help
生态构建需要的不是某一方的单打独斗,而是人人行动起来,汇聚星火,产生燎原之势 We set up this APP Store and collect APPs/tools that everyone need widely. Also we pack Windows apps with wine.
我们创建了这个应用商店广泛收录大家需要的软件包搜集优质小工具主动适配wine应用存放到储存库供大家获取 All packages will be shared in our repository for users to get freely.
我们支持Deepin 20 ; Ubuntu 20.04 LTS ; UOS Home 20 Distrobution supportedDeepin 20 ; Ubuntu 22.04 LTS / Ubuntu 20.04 LTS(May stop support in the future ; UniontechOS Home 21
希望看到这里的人也可以加入我们的队伍开发或者投递应用都很欢迎共同构建Linux应用生态
### [在这里投稿](https://upload.deepinos.org/index)
web页面部分正在开发当中详情请见[web仓库](https://gitee.com/deepin-community-store/DCSAPP_WEB)
#### 说明
当前服务器线路列表(项目中包含):
```
https://d.store.deepinos.org.cn/
https://store.deepinos.org.cn/
```
#### 调用参数(spk规则)
参数只有一个Url该url应当遵循这种格式`spk://<任意合法字符>/web分类/包名`
例如:
[spk://abcdefg/games/store.spark-app.hmcl](spk://abcdefg/games/store.spark-app.hmcl)
可选的web分类
| 分类名称 | web分类   |
| -------- | -------------- |
| 网络应用 | network |
| 社交沟通 | chat |
| 音乐欣赏 | music |
| 视频播放 | video |
| 图形图像 | graphics |
| 游戏娱乐 | games |
| 办公学习 | office |
| 阅读翻译 | reading |
| 编程开发 | development |
| 系统工具 | tools |
| 主题美化 | beautify |
| 其他应用 | others |
#### 如何编译 I hope people who see here can also join our teamdevelopment help or submit applications are welcomed
Deepin V20/UOS 系统下, 安装依赖 If you want to submit an APP to share with othersPlease [Click here](https://upload.deepinos.org/index)
## 🙌 A simple start
If you simply want to install the Spark Store,just enter the [Release] page, find the version you want and install.
If you are using Debian11/Ubuntu 20.04, you will need extra dependency package. Available [here](https://d.store.deepinos.org.cn/spark-store-dependencies-kylin.zip)
---
#### Compile and developement
For Deepin V20/UOS 21/ Debian 11
```shell ```shell
sudo apt install qt5-default libdtkcore-dev libdtkgui-dev libdtkwidget-dev qtwebengine5-dev libnotify-dev sudo apt install git qt5-default debhelper pkg-config qtchooser libqt5core5a libqt5gui5 libqt5widgets5 libqt5network5 libqt5concurrent5 libdtkcore-dev libdtkgui-dev libdtkwidget-dev qttools5-private-dev libnotify-dev qtwebengine5-dev
``` ```
Ubuntu 22.04
```shell
sudo apt install git qtbase5-dev debhelper pkg-config qtchooser libqt5core5a libqt5gui5 libqt5widgets5 libqt5network5 libqt5concurrent5 libdtkcore-dev libdtkgui-dev libdtkwidget-dev qttools5-private-dev libnotify-dev qtwebengine5-dev
```
Then
```shell ```shell
git clone https://gitee.com/deepin-community-store/spark-store.git git clone https://gitee.com/deepin-community-store/spark-store.git
cd spark-store cd spark-store
mkdir build && cd build dpkg-buildpackage
qmake ..
make -j
```
./build 文件夹下的 spark-store 即为可执行文件
P.S. 安装依赖后直接运行 build.sh 即可编译并打包
# 星火应用商店文档
# 目录结构
几个目录结构
```
/
/icons 图标文件夹
/tags 首页图标
/tras 多语言翻译
```
主要的文件分析
```js
spark-store.pro Qt工程配置文件
ssinstall 调用包安装器的脚本
icons.qrc 图标资源文件
main.cpp 入口文件
widget.h widget.cpp widget.ui 主要窗口控件
downloadlist.h downloadlist.cpp downloadlist.ui 单个软件的下载安装展示控件
progressload.h progressload.cpp 网页加载显示 得在deepin上编译运行才能搞清楚
workerthreads.h workerthreads.cpp 应用信息加载线程
image_show.h image_show.cpp 应用页面截图预览控件
big_image.h big_image.cpp 大图查看控件
```
# 使用的开源库及第三方工具
* GDebi 一个 Ubuntu 软件中心的轻量级替代品 https://linux.cn/article-4982-1.html
* libnotify 系统通知 https://developer.gnome.org/libnotify/unstable/
# 源码分析
## 应用的组成部分
左侧应用分类菜单
主窗口的下拉菜单
应用列表页面
应用详情页面
应用首页,有几个链接跳转
商店设置页面
下载列表页面
## 应用初始化,及主控件加载
初始化 `DApplication` 进入事件循环。
设置关于我们弹窗 `DAboutDialog`
主控件 Widget 根据不同屏幕大小自适应。
首页打开webview页面如果传入了`spk://`参数,会打开应用详情页。
```cpp
// main.cpp
QString arg1=argv[1];
if(arg1.left(6)=="spk://"){
w.openUrl(QUrl(argv[1]));
}
// widget.cpp
void Widget::openUrl(QUrl u)
{
QString app=serverUrl + "store"+u.path()+"/app.json";
ui->webEngineView->setUrl(app); // 会触发 webEngineView 的
}
```
## Tags处理方式
**Tags处理方式**
```cpp
// widget.cpp
QString tags=json["Tags"].toString(); //Read the Tags
QStringList tagList=tags.split(";");
for (int i=0;i<tagList.size();i++) {
if(tagList[i]=="community")
ui->tag_community->show();//Tags icon shows like this
if(tagList[i]=="ubuntu")
ui->tag_ubuntu->show();
if(tagList[i]=="deepin")
ui->tag_deepin->show();
if(tagList[i]=="uos")
ui->tag_uos->show();
if(tagList[i]=="dtk5")
ui->tag_dtk5->show();
if(tagList[i]=="dwine2")
ui->tag_dwine2->show();
if(tagList[i]=="dwine5")
ui->tag_dwine5->show();
if(tagList[i]=="a2d")
ui->tag_a2d->show();
}
```
**Widget 初始化**
```cpp
void Widget::initConfig()
{
...
// 读取服务器URL并初始化菜单项的链接
QSettings readConfig(QDir::homePath()+"/.config/spark-store/config.ini",QSettings::IniFormat);
if(readConfig.value("server/choose").toString()!=""){
ui->comboBox_server->setCurrentText(readConfig.value("server/choose").toString());
appinfoLoadThread.setServer(serverUrl=readConfig.value("server/choose").toString());
}else {
appinfoLoadThread.setServer(serverUrl="http://sucdn.jerrywang.top/"); // 默认URL
}
configCanSave=true; // 防止触发保存配置信号
menuUrl[0]=serverUrl + "store/#/"; // 首页
// 下面是各个应用分类页面直接加载的webview的
// 每个连接对应一个左侧的菜单项,在构造函数用连接到 chooseLeftMenu 槽函数
menuUrl[1]=serverUrl + "store/#/network";
...
menuUrl[12]=serverUrl + "store/#/others";
...
ui->webfoot->hide();
//初始化首页
ui->webEngineView->setUrl(menuUrl[0]);
}
/**
* 菜单切换逻辑
*
*/
void Widget::chooseLeftMenu(int index)
{
nowMenu=index;
updateUI();
left_list[index]->setStyleSheet("color:#FFFFFF;background-color:"+main_color.name()+";border-radius:8;border:0px");
// index <=12 加载某个分类的应用列表的webviejw
// index == 13 加载下载列表页面
if(index<=12){
if(themeIsDark){
darkurl = URL
ui->webEngineView->setUrl(darkurl);
}else {
ui->webEngineView->setUrl(menuUrl[index]);
}
ui->stackedWidget->setCurrentIndex(0);
}else if (index==13) {
ui->stackedWidget->setCurrentIndex(1);
}
}
```
## 应用下载安装卸载分析
**应用详情页面加载**
```cpp
/**
* 加载单个应用的信息
*/
void Widget::on_webEngineView_urlChanged(const QUrl &arg1)
{
//分析出服务器中的分类名称
...
//如果是app.json就打开详情页
if(arg1.path().right(8)=="app.json"){
...
// 读取相应的应用信息
appinfoLoadThread.requestInterruption();
appinfoLoadThread.wait(100);
appinfoLoadThread.setUrl(arg1);
appinfoLoadThread.start();
}
}
// 设置详情页的APP信息
SpkAppInfoLoaderThread::requestSetAppInformation() -> Widget::sltAppinfoDetails()
// 设置详情页的APP图标
SpkAppInfoLoaderThread::finishedIconLoad() -> Widget::sltAppinfoIcon()
// 设置详情页的APP截图
SpkAppInfoLoaderThread::finishedScreenshotLoad() -> Widget::sltAppinfoScreenshot()
// 下载APP详情信息线程
void SpkAppInfoLoaderThread::run()
{
QProcess get_json;
get_json.start("curl -o app.json " + targetUrl.toString());
QFile app_json("app.json");
app.json
}
``` ```
**应用下载**
Widget::on_pushButton_download_clicked() 是点击下载的安装方法。
最终使用的是 `QNetwrokAccessManager` 进行GET请求获取数据写入文件。
```cpp
void Widget::on_pushButton_download_clicked()
{
if(!isBusy){
file = new QFile(fileName);
...
nowDownload+=1;
startRequest(urList.at(nowDownload-1)); // 进行链接请求
}
}
void Widget::startRequest(QUrl url)
{
reply = manager->get(QNetworkRequest(url));
// 请求响应完成,关闭文件,清理下载队列
connect(reply,SIGNAL(finished()),this,SLOT(httpFinished()));
// 接收应用下载数据
connect(reply,SIGNAL(readyRead()),this,SLOT(httpReadyRead()));
// 更新应用下载进度
connect(reply,SIGNAL(downloadProgress(qint64,qint64)),this,SLOT(updateDataReadProgress(qint64,qint64)));
}
```
使用 QSettings 来读取配置,更换服务源 ## 🚀 Coorperation
```cpp
void Widget::on_comboBox_server_currentIndexChanged(const QString &arg1)
{
appinfoLoadThread.setServer(arg1); // 服务器信息更新
if(configCanSave){
ui->label_setting1->show();
QSettings *setConfig=new QSettings(QDir::homePath()+"/.config/spark-store/config.ini",QSettings::IniFormat);
setConfig->setValue("server/choose",arg1);
}
}
```
使用 `QProcess` 来调用各种小文件下载、包安装卸载的命令。
**应用安装** We use Gitee as our code hosting platform. Please click here to contact us.
```cpp
void Widget::httpFinished() // 完成下载
{
...
download_list[nowDownload-1].readyInstall();
download_list[nowDownload-1].free=true;
if(nowDownload<allDownload){ // 如果有排队则下载下一个
...
}
}
void downloadlist::readyInstall()
{
...
ui->pushButton_install->setEnabled(true);
ui->pushButton_install->show();
ui->pushButton_2->hide();
Widget::sendNotification(tr("Finished downloading %1, awaiting to install").arg(ui->label->text()), 5000,
"/tmp/spark-store/icon_"+QString::number(num).toUtf8()+".png");
}
void downloadlist::on_pushButton_install_clicked()
{
//弹出菜单
menu_install->exec(cursor().pos());
}
downloadlist menu_install
downloadlist::install()
gdebi, dpkg, deepin-deb-installer
void downloadlist::install(int t)
{
QtConcurrent::run([=](){
QProcess installer;
installer.start("pkexec gdebi -n /tmp/spark-store/"+ui->label_filename->text().toUtf8());
installer.start("pkexec ssinstall /tmp/spark-store/"+ui->label_filename->text().toUtf8());
installer.start("deepin-deb-installer /tmp/spark-store/"+ui->label_filename->text().toUtf8());
});
}
```
**应用卸载** https://gitee.com/deepin-community-store/spark-store
```cpp
void Widget::on_pushButton_uninstall_clicked()
{
QtConcurrent::run([=](){
uninstall.start("pkexec apt purge -y "+pkgName);
});
}
```
**仓库源更新**
```cpp
// 更新源列表
void Widget::on_pushButton_updateServer_clicked()
{
QtConcurrent::run([=](){
...
QFile::remove(QDir::homePath().toUtf8()+"/.config/spark-store/server.list");
system("curl -o "+QDir::homePath().toUtf8()+"/.config/spark-store/server.list http://dcstore.shenmo.tech/store/server.list");
server.open(QDir::homePath().toUtf8()+"/.config/spark-store/server.list",std::ios::in);
...
while (getline(server,lineTmp)) {
ui->comboBox_server->addItem(QString::fromStdString(lineTmp));
}
});
}
// 更新星火商店apt源
void Widget::on_pushButton_updateApt_clicked()
{
QtConcurrent::run([=](){
comboBox_server /tmp/spark-store/sparkstore.list
bash脚本 sparkstore.list /etc/apt/sources.list.d/
使QProcess pkexec update.sh
}):
}
```
## 发送系统通知
```cpp
#include <libnotify/notify.h>
static NotifyNotification *_notify = nullptr; // 初始化
notify_init(tr("Spark\\ Store").toLocal8Bit()); // 构造函数初始化
notify_uninit(); // 析构函数调用
void Widget::sendNotification(const QString &message, const int msTimeout, const QString &icon)
{
if(_notify == nullptr)
{
_notify = notify_notification_new(tr("Spark\\ Store").toLocal8Bit(), message.toLocal8Bit(), icon.toLocal8Bit());
notify_notification_set_timeout(_notify, msTimeout);
}
else
notify_notification_update(_notify, tr("Spark\\ Store").toLocal8Bit(), message.toLocal8Bit(), icon.toLocal8Bit());
notify_notification_show(_notify, nullptr);
}
```

50
README.zh.md Normal file
View File

@@ -0,0 +1,50 @@
# 星火应用商店
[![star](https://gitee.com/deepin-community-store/spark-store/badge/star.svg?theme=gvp)](https://gitee.com/deepin-community-store/spark-store/stargazers) [![fork](https://gitee.com/deepin-community-store/spark-store/badge/fork.svg?theme=gvp)](https://gitee.com/deepin-community-store/spark-store/members)
众所周知国内的Linux应用比较少wine应用难以获取优质工具分散在民间各大论坛无法形成合力难以改善生态
生态构建需要的不是某一方的单打独斗,而是人人行动起来,汇聚星火,产生燎原之势
我们创建了这个应用商店广泛收录大家需要的软件包搜集优质小工具主动适配wine应用存放到储存库供大家获取
我们支持Deepin 20 ; Ubuntu 22.04 LTS / Ubuntu 20.04 LTS(将会逐渐停止支持) ; UOS Home 21
希望看到这里的人也可以加入我们的队伍开发或者投递应用都很欢迎共同构建Linux应用生态
如果有想要提交的软件包,请 [在这里投稿](https://upload.deepinos.org/index)
## 🙌 简单的开始
如果想安装 `星火应用商店` ,请打开右侧的 [Release] 页面,找到最新版本,并选择适用于当前系统的安装包下载。
如果你在使用 `Debian 11/Ubuntu 20.04`,你需要额外下载[依赖补充包](https://d.store.deepinos.org.cn/spark-store-dependencies-kylin.zip)
---
#### 编译安装
Deepin V20/UOS 21 系统下, 安装依赖
```shell
sudo apt install git qt5-default debhelper pkg-config qtchooser libqt5core5a libqt5gui5 libqt5widgets5 libqt5network5 libqt5concurrent5 libdtkcore-dev libdtkgui-dev libdtkwidget-dev qttools5-private-dev libnotify-dev qtwebengine5-dev
```
Ubuntu 22.04 系统下, 安装依赖
```shell
sudo apt install git qtbase5-dev debhelper pkg-config qtchooser libqt5core5a libqt5gui5 libqt5widgets5 libqt5network5 libqt5concurrent5 libdtkcore-dev libdtkgui-dev libdtkwidget-dev qttools5-private-dev libnotify-dev qtwebengine5-dev
```
然后
```shell
git clone https://gitee.com/deepin-community-store/spark-store.git
cd spark-store
dpkg-buildpackage
```
## 🚀 协作
非常感谢有兴趣的开发者或爱好者参与 `星火应用商店` 项目,分享你的见解与思路。

Binary file not shown.

Before

Width:  |  Height:  |  Size: 46 KiB

Binary file not shown.

View File

@@ -34,7 +34,6 @@
<file>icons/refresh-page.svg</file> <file>icons/refresh-page.svg</file>
</qresource> </qresource>
<qresource prefix="/"> <qresource prefix="/">
<file>Logo-Spark.png</file>
<file>tags/a2d.png</file> <file>tags/a2d.png</file>
<file>tags/community.svg</file> <file>tags/community.svg</file>
<file>tags/deepin.svg</file> <file>tags/deepin.svg</file>
@@ -51,6 +50,8 @@
<file>tags/dwine5-small.png</file> <file>tags/dwine5-small.png</file>
<file>tags/dwine5.svg</file> <file>tags/dwine5.svg</file>
<file>tags/dwine2-small.png</file> <file>tags/dwine2-small.png</file>
<file>spark-store.png</file>
<file>spark-logo.svg</file>
</qresource> </qresource>
<qresource prefix="/fonts"> <qresource prefix="/fonts">
<file>fonts/hksnzt.ttf</file> <file>fonts/hksnzt.ttf</file>

253
assets/spark-logo.svg Normal file
View File

@@ -0,0 +1,253 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
sodipodi:docname="spark-logo.svg"
inkscape:version="1.1 (c4e8f9e, 2021-05-24)"
id="svg8"
version="1.1"
viewBox="0 0 180.00012 48.251057"
height="48.251057mm"
width="180.00012mm"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:dc="http://purl.org/dc/elements/1.1/">
<defs
id="defs2">
<linearGradient
id="linearGradient1200"
inkscape:collect="always">
<stop
id="stop1196"
offset="0"
style="stop-color:#000000;stop-opacity:0.1299435" />
<stop
id="stop1198"
offset="1"
style="stop-color:#dadada;stop-opacity:0.81960785" />
</linearGradient>
<linearGradient
inkscape:collect="always"
id="linearGradient1138">
<stop
style="stop-color:#99e7ea;stop-opacity:1"
offset="0"
id="stop1134" />
<stop
style="stop-color:#007ffc;stop-opacity:1"
offset="1"
id="stop1136" />
</linearGradient>
<linearGradient
id="linearGradient1128"
inkscape:collect="always">
<stop
id="stop1124"
offset="0"
style="stop-color:#99e7ea;stop-opacity:1" />
<stop
id="stop1126"
offset="1"
style="stop-color:#007ffc;stop-opacity:1" />
</linearGradient>
<inkscape:path-effect
only_selected="false"
apply_with_weight="true"
apply_no_weight="true"
helper_size="0"
steps="2"
weight="33.333333"
is_visible="true"
id="path-effect960"
effect="bspline"
lpeversion="0" />
<radialGradient
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(1,0,0,0.98112945,0,3.7714702)"
r="90.135414"
fy="199.86011"
fx="100.35268"
cy="199.86011"
cx="100.35268"
id="radialGradient1130"
xlink:href="#linearGradient1128"
inkscape:collect="always" />
<radialGradient
r="90.135414"
fy="199.86011"
fx="100.35268"
cy="199.86011"
cx="100.35268"
gradientTransform="matrix(1,0,0,0.98112945,0,3.7714702)"
gradientUnits="userSpaceOnUse"
id="radialGradient1132"
xlink:href="#linearGradient1138"
inkscape:collect="always" />
<radialGradient
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(1,0,0,0.98112945,0,3.7714702)"
r="90.135414"
fy="199.86011"
fx="100.35268"
cy="199.86011"
cx="100.35268"
id="radialGradient1202"
xlink:href="#linearGradient1200"
inkscape:collect="always" />
<filter
id="filter1448"
inkscape:label="Drop Shadow"
style="color-interpolation-filters:sRGB">
<feFlood
id="feFlood1438"
result="flood"
flood-color="rgb(145,145,145)"
flood-opacity="0.372549" />
<feComposite
id="feComposite1440"
result="composite1"
operator="in"
in2="SourceGraphic"
in="flood" />
<feGaussianBlur
id="feGaussianBlur1442"
result="blur"
stdDeviation="5.2918"
in="composite1" />
<feOffset
id="feOffset1444"
result="offset"
dy="0"
dx="0" />
<feComposite
id="feComposite1446"
result="composite2"
operator="over"
in2="offset"
in="SourceGraphic" />
</filter>
<filter
id="filter2201"
inkscape:label="Drop Shadow"
style="color-interpolation-filters:sRGB">
<feFlood
id="feFlood2191"
result="flood"
flood-color="rgb(145,145,145)"
flood-opacity="0.372549" />
<feComposite
id="feComposite2193"
result="composite1"
operator="in"
in2="SourceGraphic"
in="flood" />
<feGaussianBlur
id="feGaussianBlur2195"
result="blur"
stdDeviation="3.76995"
in="composite1" />
<feOffset
id="feOffset2197"
result="offset"
dy="0"
dx="0" />
<feComposite
id="feComposite2199"
result="composite2"
operator="over"
in2="offset"
in="SourceGraphic" />
</filter>
</defs>
<sodipodi:namedview
inkscape:document-rotation="0"
inkscape:window-maximized="1"
inkscape:window-y="0"
inkscape:window-x="0"
inkscape:window-height="946"
inkscape:window-width="1920"
showgrid="false"
inkscape:current-layer="layer2"
inkscape:document-units="mm"
inkscape:cy="332.14286"
inkscape:cx="520.71429"
inkscape:zoom="0.7"
inkscape:pageshadow="2"
inkscape:pageopacity="0.0"
borderopacity="1.0"
bordercolor="#666666"
pagecolor="#ffffff"
id="base"
inkscape:pagecheckerboard="0" />
<metadata
id="metadata5">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
</cc:Work>
</rdf:RDF>
</metadata>
<g
transform="translate(-34.291348,-63.035531)"
id="layer1"
inkscape:groupmode="layer"
inkscape:label="Layer 1" />
<g
inkscape:label="Layer 2"
id="layer2"
inkscape:groupmode="layer"
transform="translate(-34.291348,33.964469)">
<path
inkscape:connector-curvature="0"
id="path1002"
d="m 50.895965,-25.80076 c 0,0 3.210258,-0.04536 6.509677,1.995776 3.299426,2.041135 5.216663,3.991553 5.840878,5.261592 0.624212,1.270041 2.67521,3.492613 2.630628,7.574884 -0.04461,4.0822665 -0.98091,6.8037874 -2.586039,9.0717077 -1.605128,2.26792732 -4.503272,3.9915518 -7.981044,4.0822737 -3.477778,0.090717 -5.707121,-2.17720666 -6.465096,-3.4472534 -0.757975,-1.270036 -1.070084,-3.9915518 -0.133761,-5.9419619 0.936325,-1.9504282 2.40769,-1.9504282 2.898147,-1.7689877 0.490455,0.181438 0.624213,0.4535811 0.891735,0.9525256 0.26752,0.4989447 0.44587,0.4082311 0.847161,0.1360795 0.401275,-0.2721541 0.535033,-0.5896654 0.445866,-0.9978916 -0.08917,-0.408231 -0.62422,-0.9071732 -1.070092,-1.0432502 -0.445865,-0.1360747 -1.070085,-0.5443017 -1.961822,-0.4082167 -0.891736,0.136065 -2.630623,0.5896548 -4.101988,2.585427 -1.471365,1.9957744 -1.29302,5.0801606 -0.401281,6.5316309 0.891737,1.45147531 2.586035,4.1729873 6.331332,5.1255217 3.745301,0.9525364 9.809105,-1.8597006 11.904684,-6.2141209 2.095577,-4.3544229 2.140168,-6.3955562 2.051001,-9.9788777 -0.08917,-3.583335 -3.254842,-8.935643 -6.777199,-10.886061 -3.522357,-1.950419 -6.152982,-3.084383 -8.872787,-2.630797 z"
style="fill:#ffc344;fill-opacity:1;stroke:none;stroke-width:0.0890379px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
<path
inkscape:connector-curvature="0"
id="path1012"
d="m 52.759546,-7.6807986 c 0,0 -0.882776,-0.833911 -1.670967,0.6414663 -0.788192,1.4753675 -1.166523,2.790373 -0.378332,4.3940472 0.78819,1.6036647 2.427624,2.56586017 4.949854,2.53379165 2.522203,-0.0321084 4.382334,-0.64146726 5.485801,-2.46964635 1.103472,-1.8281836 1.954712,-3.1752577 2.049297,-3.8487984 0.09459,-0.6735444 0.599029,0.096216 0.441394,0.6735407 -0.15764,0.5773125 -0.126112,1.6998816 0.315273,1.4753653 0.441388,-0.2245063 0.788195,-0.5773163 0.851243,-0.4169509 0.06306,0.1603616 -0.50444,1.154644 -0.772422,1.6517766 -0.267993,0.4971326 -1.103472,1.699893 -1.592156,2.16494892 -0.488669,0.46506666 -1.166517,1.1225704 -1.970475,1.6036691 C 59.664103,1.2035109 58.418766,1.7647989 57.725156,1.893092 57.031546,2.0213857 55.644328,2.2940039 54.856131,2.2619316 54.067946,2.2298548 53.059055,2.0855246 51.939826,1.5242442 50.820592,0.96296626 49.606778,0.0969782 49.133864,-0.76900099 48.66095,-1.6349808 47.935815,-2.4207789 48.093452,-4.6017617 c 0.15764,-2.1809854 0.86701,-3.3035574 1.40298,-3.8167243 0.53597,-0.5131766 1.32416,-0.7376922 1.844369,-0.6254295 0.520205,0.1122529 0.851246,0.4169555 0.977357,0.6414613 0.126107,0.224512 0.331042,0.6414675 0.441388,0.7216556 z"
style="fill:#f06767;fill-opacity:1;stroke:none;stroke-width:0.0890379px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
<path
inkscape:connector-curvature="0"
id="path1014"
d="m 60.767575,3.8655962 c 0,0 3.783317,-2.2130621 5.548864,-5.7090499 1.765551,-3.4959942 2.522214,-5.7411261 2.30152,-9.1729813 -0.220695,-3.431843 -0.756663,-1.731959 -0.157641,-3.207334 0.599026,-1.475377 -0.378328,-4.394049 0.03152,-4.586488 0.409861,-0.19244 1.292637,1.282934 1.544859,2.469649 0.252214,1.186712 1.355684,4.843067 0.472911,9.4937107 -0.882773,4.6506303 -2.963589,6.51088559 -4.350812,7.76175223 C 64.77157,2.1657114 61.618812,4.3467019 61.145898,4.314627 60.67298,4.2825186 60.609928,4.2825186 60.76756,3.8655962 Z"
style="fill:#3f62eb;fill-opacity:1;stroke:none;stroke-width:0.0890379px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
<path
inkscape:connector-curvature="0"
id="path1016"
d="m 53.957602,-2.8698091 c 0,0 2.017773,0.4490302 3.562621,-0.5131634 1.544859,-0.9622063 2.742913,-2.5337986 2.932073,-3.1431917 0.189165,-0.6093954 0.220697,0.5452465 0.441386,-0.032045 0.220692,-0.5773293 1.10347,-1.7319649 0.662081,-4.4261318 -0.441389,-2.694157 -0.472916,-2.822457 -1.292627,-4.265758 -0.819727,-1.443301 -2.774446,-3.431845 -3.972493,-4.073313 -1.198047,-0.641466 -2.86901,-1.603666 -5.170538,-1.53952 -2.301517,0.06415 -1.544853,-0.09622 -3.751788,0.288661 -2.206938,0.384879 -4.193179,1.4433 -4.855258,2.02062 -0.66208,0.577321 -2.427629,2.148917 -3.058183,3.014896 -0.630554,0.865981 -2.364573,2.822454 -3.278875,5.5486918 -0.914302,2.7262327 -1.292635,3.0148925 -1.35569,4.8109998 -0.06306,1.7961094 0.157637,2.2772018 -0.220692,2.4375779 -0.378332,0.1603616 -0.315277,-1.3470823 -0.283751,-2.4055093 0.03153,-1.0584128 0.03153,-3.8167249 1.418745,-6.8957642 1.387216,-3.079043 3.846373,-5.644912 5.23359,-6.575039 1.387216,-0.930126 2.995127,-2.180987 5.485811,-2.790382 2.490685,-0.609392 4.981368,-0.513172 6.526228,-0.224513 1.544859,0.288661 3.94096,1.282935 5.23359,2.277208 1.292636,0.994275 2.711385,2.213062 3.78332,4.20161 1.07194,1.988545 1.355684,4.522341 1.324159,5.5807587 -0.03152,1.0584266 -0.567498,3.4960027 -1.387216,4.6827127 -0.819721,1.186715 -1.923185,2.597942 -3.05818,3.1111149 -1.135,0.5131697 -2.522222,0.6735396 -3.657204,0.1603641 C 54.08371,-2.132102 54.146768,-2.3245385 53.957602,-2.869785 Z"
style="fill:#fce102;fill-opacity:1;stroke:none;stroke-width:0.0890379px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
<path
inkscape:connector-curvature="0"
id="path1018"
d="m 53.957602,-2.8698091 c 0,0 1.597697,0.4513829 2.946439,-0.1609516 1.348754,-0.6123403 1.850358,-1.2020043 2.173613,-1.5535277 0.323251,-0.3515343 0.936324,-1.0092338 1.103526,-1.3154017 0.167198,-0.3061663 0.345542,-0.4876031 0.345542,-0.6009978 0,-0.1133983 -0.312104,-0.3855536 -0.01112,-1.043249 0.300955,-0.6576966 0.568485,-2.1658733 0.434721,-2.8462471 -0.133762,-0.680377 -0.445868,-4.456482 -3.121079,-6.973885 -2.675203,-2.517401 -5.328127,-2.81223 -5.328127,-2.81223 0,0 4.235756,1.338077 6.219869,5.397669 1.984117,4.059596 1.337601,6.66771 0.06688,8.2552586 -1.270724,1.5875487 -3.076491,1.7689868 -3.566953,1.3607558 -0.490444,-0.4082292 -1.501077,1.8641068 -1.26328,2.2928065 z"
style="fill:#5ed938;fill-opacity:1;stroke:none;stroke-width:0.0890379px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
<path
inkscape:connector-curvature="0"
id="path1020"
d="m 48.800383,-17.432105 c 0,0 -2.853557,-0.02267 -5.01602,1.406112 -2.16246,1.428797 -3.210252,2.585441 -3.812175,3.492612 -0.601919,0.907174 -1.293016,2.154531 -1.203842,2.131854 0.08917,-0.0227 2.60833,-3.53797 4.57015,-4.445139 1.961822,-0.907173 3.923641,-2.177213 6.621146,-1.247366 2.697505,0.929857 3.968232,2.222571 4.547859,1.905065 0.579629,-0.31751 0.691101,-0.70306 0.356697,-1.133966 -0.334399,-0.430906 -2.697508,-2.540081 -6.063815,-2.109172 z"
style="fill:#8fdbe9;fill-opacity:1;stroke:none;stroke-width:0.0890379px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
<path
inkscape:connector-curvature="0"
id="path1022"
d="m 44.530829,0.69033794 c 0.189165,0.0962163 1.607908,2.56586906 2.742905,2.98282056 1.134994,0.4169541 1.891657,0.4490201 2.017767,0.6414685 0.126111,0.192439 0.09459,1.1546409 1.103469,1.5716019 1.008886,0.4169522 5.738036,1.7319552 7.09372,1.8602476 1.355695,0.1282956 0.2207,0.9301201 1.040416,1.2187811 0.819723,0.2886654 4.319291,0.4490282 5.170539,0.096218 0.851247,-0.3528 0.851247,0.3207371 -0.630553,0.8980604 -1.481799,0.577316 -5.391228,1.956476 -7.944967,1.635743 C 52.570379,11.274546 49.543723,10.729296 47.84123,9.5105098 46.138737,8.2917237 45.413601,7.7464765 46.044154,7.6502577 c 0.630553,-0.096225 2.30152,1.6998841 3.026654,1.8923257 0.725137,0.1924358 1.324162,0.1924358 0.882773,-0.2565932 C 49.512197,8.8369677 46.64318,6.8484212 46.359433,6.9446376 46.075682,7.0408596 45.476656,7.1050004 44.972214,6.4314646 44.467772,5.7579276 41.819449,2.0374171 41.977086,0.04887194 42.134727,-1.9396732 42.63917,-1.4265066 43.238195,-0.6888129 c 0.599024,0.73768484 1.292634,1.37915084 1.292634,1.37915084 z"
style="fill:#fd7aff;fill-opacity:1;stroke:none;stroke-width:0.0890379px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
<text
xml:space="preserve"
style="font-style:normal;font-weight:normal;font-size:1.28957px;line-height:1.25;font-family:sans-serif;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.0322394"
x="80.617455"
y="4.5832744"
id="text24207"><tspan
sodipodi:role="line"
id="tspan24205"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:49.4338px;font-family:Yukarimobile;-inkscape-font-specification:'Yukarimobile, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-east-asian:normal;fill:#1d2129;fill-opacity:1;stroke-width:0.0322394"
x="80.617455"
y="4.5832744">spark</tspan></text>
</g>
</svg>

After

Width:  |  Height:  |  Size: 14 KiB

BIN
assets/spark-store.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.5 KiB

BIN
assets/spark-store.xcf Normal file

Binary file not shown.

61
debian/changelog vendored
View File

@@ -1,3 +1,64 @@
spark-store (3.1.3) stable; urgency=medium
* Now uses aria2 to download softwares form all mirrors
* 新增ssinstall现在会在没有apt-fast的时候自动安装
* 新增ss-apt-fast现在会在没有apt-fast的时候自动安装
* 修改删除ssinstall中无用的 || dpkg -P $1
* 新增ss-apt-fast会先下载云上的conf以确保mirror是最新的
* 修复去除wget指令
-- shenmo <shenmo@spark-app.store> Fri, 30 Jan 2022 00:00:00 +0800
spark-store (3.1.2) stable; urgency=medium
* Now let apt-fast method support all mirrors
* Now will download dependencies and upgrade with all mirrors
-- shenmo <shenmo@spark-app.store> Mon, 17 Jan 2022 00:00:00 +0800
spark-store (3.1.1) stable; urgency=medium
* Now will delete the link of policy file after uninstall or upgrade
* Now ss-update-controler will create symbol link instead of hard link
-- shenmo <shenmo@spark-app.store> Mon, 17 Jan 2022 00:00:00 +0800
spark-store (3.1.0) stable; urgency=medium
* Add pkexec policy: ssinstall. Only will be enabled after permitted.
* Modify ssinistall script: Now will ask for password when not run as root
-- shenmo <shenmo@spark-app.store> Mon, 17 Jan 2022 00:00:00 +0800
spark-store (3.0.3-13) stable; urgency=medium
* Update the ssinstall script. Now support apt-fast and will temporarily increase the spark store source priority to 500 to make depends install correctly
* Change the style of About Dialog
* Modified depends to avoid Deb installers can not handle "Provides"
-- shenmo <shenmo@spark-app.store> Mon, 17 Jan 2022 00:00:00 +0800
spark-store (3.0.3-12) stable; urgency=medium
* Rollback to use DApplication::loadDXcbPlugin() to make titlebar behave normally in ubuntu
* Now can run on Debian 11
* Now can run on Ubuntu 22.04
-- shenmo <shenmo@spark-app.store> Mon, 17 Jan 2022 00:00:00 +0800
spark-store (3.0.3-11) stable; urgency=medium spark-store (3.0.3-11) stable; urgency=medium
* Now support autoupdate * Now support autoupdate

19
debian/control vendored
View File

@@ -11,9 +11,9 @@ Build-Depends:
libqt5widgets5, libqt5widgets5,
libqt5network5, libqt5network5,
libqt5concurrent5, libqt5concurrent5,
libdtkcore-dev(>=5.4), libdtkcore-dev(>=5.2),
libdtkgui-dev(>=5.4), libdtkgui-dev(>=5.2),
libdtkwidget-dev(>=5.4), libdtkwidget-dev(>=5.2),
qttools5-private-dev, qttools5-private-dev,
libnotify-dev, libnotify-dev,
qtwebengine5-dev qtwebengine5-dev
@@ -29,9 +29,14 @@ Depends:${shlibs:Depends}, ${misc:Depends},
libqt5widgets5, libqt5widgets5,
libqt5network5, libqt5network5,
libqt5concurrent5, libqt5concurrent5,
libdtkcore5(>=5.4), libdtkcore5,
libdtkgui5(>=5.4), libdtkgui5,
libdtkwidget5(>=5.4), libdtkwidget5,
libnotify4 libnotify4,
curl,
dde-qt5integration,
bubblewrap,
aria2
Description: Spark Store Description: Spark Store
A community powered app store, based on DTK. A community powered app store, based on DTK.
Recommends: apt-fast

2
debian/rules vendored
View File

@@ -22,6 +22,7 @@ override_dh_auto_configure:
-spec linux-g++ CONFIG+=qtquickcompiler \ -spec linux-g++ CONFIG+=qtquickcompiler \
-o $(CURDIR)/build/ -o $(CURDIR)/build/
override_dh_auto_build: override_dh_auto_build:
make -C $(CURDIR)/build -j$(JOBS) make -C $(CURDIR)/build -j$(JOBS)
@@ -29,6 +30,7 @@ override_dh_auto_install:
make -C $(CURDIR)/build install \ make -C $(CURDIR)/build install \
INSTALL_ROOT=$(CURDIR)/debian/spark-store INSTALL_ROOT=$(CURDIR)/debian/spark-store
# Ignore the dpkg-shlibdeps: warning (it uses none of the library's symbols) # Ignore the dpkg-shlibdeps: warning (it uses none of the library's symbols)
# Qt Mutidedia lib will ref to network libraray. # Qt Mutidedia lib will ref to network libraray.
override_dh_shlibdeps: override_dh_shlibdeps:

View File

@@ -11,6 +11,7 @@ case "$1" in
ln -s -f /opt/durapps/spark-store/bin/spark-store /usr/local/bin/spark-store ln -s -f /opt/durapps/spark-store/bin/spark-store /usr/local/bin/spark-store
ln -s -f /opt/durapps/spark-store/bin/ssinstall /usr/local/bin/ssinstall ln -s -f /opt/durapps/spark-store/bin/ssinstall /usr/local/bin/ssinstall
ln -s -f /opt/durapps/spark-store/bin/spark-dstore-patch /usr/local/bin/spark-dstore-patch ln -s -f /opt/durapps/spark-store/bin/spark-dstore-patch /usr/local/bin/spark-dstore-patch
ln -s -f /opt/durapps/spark-store/bin/ss-apt-fast /usr/local/bin/ss-apt-fast
@@ -20,7 +21,7 @@ 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
# Run apt update to avoid users being fucked up by the non-exist dependency problem # Run apt update to avoid users being fucked up by the non-exist dependency problem
apt update apt update -o Dir::Etc::sourcelist="sources.list.d/sparkstore.list" -o Dir::Etc::sourceparts="-" -o APT::Get::List-Cleanup="0"
# Create symbo links to start upgrade detect # Create symbo links to start upgrade detect
ln -s /opt/durapps/spark-store/bin/update-upgrade/autostart/spark-update-notifier.desktop /etc/xdg/autostart/spark-update-notifier.desktop ln -s /opt/durapps/spark-store/bin/update-upgrade/autostart/spark-update-notifier.desktop /etc/xdg/autostart/spark-update-notifier.desktop

27
debian/spark-store.preinst vendored Executable file
View File

@@ -0,0 +1,27 @@
#!/bin/bash
#检测网络链接畅通
function network-check()
{
#超时时间
local timeout=1
#目标网站
local target=www.baidu.com
#获取响应状态码
local ret_code=`curl -I -s --connect-timeout ${timeout} ${target} -w %{http_code} | tail -n1`
if [ "x$ret_code" = "x200" ]; then
echo "Network Checked successful ! Continue..."
echo "网络通畅,继续安装"
else
#网络不畅通
echo "Network failed ! Cancel the installation"
echo "网络不畅,终止安装"
exit -1
fi
}
network-check

View File

@@ -6,6 +6,7 @@ rm /usr/local/bin/ssinstall
rm /usr/local/bin/spark-dstore-patch 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
# 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
@@ -20,9 +21,14 @@ systemctl disable spark-update-notifier
# Clean the service place file # Clean the update-number service place file if exist
if [ -d "/tmp/spark-store-updatenum/" ] ; then if [ -d "/tmp/spark-store-updatenum/" ] ; then
rm -rf /tmp/spark-store-updatenum/s rm -rf /tmp/spark-store-updatenum/
fi
# Clean the auto install polkit file if exist
if [ -f "/usr/share/polkit-1/actions/store.spark-app.ssinstall.policy" ] ; then
rm /usr/share/polkit-1/actions/store.spark-app.ssinstall.policy
fi fi
# Remove gpg key file # Remove gpg key file

View File

@@ -33,6 +33,10 @@ desktop.path = /usr/share/applications
service.files += pkg/usr/lib/systemd/system/spark-update-notifier.service service.files += pkg/usr/lib/systemd/system/spark-update-notifier.service
service.path = /usr/lib/systemd/system/ service.path = /usr/lib/systemd/system/
polkit-1.files +=pkg/usr/share/polkit-1/actions/store.spark-app.ssinstall.policy
polkit-1.path = /usr/share/polkit-1/actions/
icon.files += pkg/usr/share/icons/hicolor/scalable/apps/spark-store.svg icon.files += pkg/usr/share/icons/hicolor/scalable/apps/spark-store.svg
icon.path = /usr/share/icons/hicolor/scalable/apps icon.path = /usr/share/icons/hicolor/scalable/apps
@@ -49,3 +53,5 @@ INSTALLS += \
preferences \ preferences \
tmp \ tmp \
service service
# polkit-1
# 暂时不添加

View File

@@ -71,7 +71,7 @@ void downloadlist::setValue(qint64 value)
ui->label_2->setText(QString::number(double(value) / 100) + "% (" + speed + ")"); ui->label_2->setText(QString::number(double(value) / 100) + "% (" + speed + ")");
if(ui->label_2->text().left(4) == "100%") if(ui->label_2->text().left(4) == "100%")
{ {
ui->label_2->setText(tr("Downloaded, waiting to install")); ui->label_2->setText(tr("Downloaded. Open APP Upgrade and Install Settings to enable password-free installation"));
} }
} }
@@ -92,19 +92,6 @@ QString downloadlist::getName()
void downloadlist::readyInstall() void downloadlist::readyInstall()
{ {
if(ui->progressBar->value() != ui->progressBar->maximum() && !close)
{
ui->progressBar->hide();
ui->pushButton_install->show();
ui->pushButton_2->hide();
Widget::sendNotification(tr("Failed to download %1").arg(ui->label->text()), 5000,
"/tmp/spark-store/icon_" + QString::number(num).toUtf8() + ".png");
ui->label_2->setText(tr("Download FailedCheck Your Connection"));
ui->pushButton_install->setEnabled(false);
return;
}
if(!close) if(!close)
{ {
ui->progressBar->hide(); ui->progressBar->hide();

View File

@@ -1,93 +1,15 @@
#include "downloadworker.h" #include "downloadworker.h"
#include <QEventLoop> #include <QEventLoop>
#include <QNetworkAccessManager> #include <QNetworkAccessManager>
#include <QNetworkRequest> #include <QNetworkRequest>
#include <QNetworkReply> #include <QNetworkReply>
#include <QThread> #include <QThread>
#include <QProcess>
#include <QRegularExpression> #include <QRegularExpression>
#include <QFileInfo> #include <QFileInfo>
#include <QDir> #include <QDir>
#include <QElapsedTimer>
DownloadWorker::DownloadWorker(QObject *parent) #include <QtConcurrent>
{
Q_UNUSED(parent)
}
void DownloadWorker::setIdentifier(int identifier)
{
this->identifier = identifier;
}
void DownloadWorker::setParamter(const QString &url, QPair<qint64, qint64> range, QFile *file)
{
this->url = url;
this->startPos = range.first;
this->endPos = range.second;
this->file = file;
}
qint64 DownloadWorker::getReceivedPos()
{
return receivedPos;
}
void DownloadWorker::doWork()
{
mgr = new QNetworkAccessManager(this);
QNetworkRequest request;
request.setUrl(url);
request.setAttribute(QNetworkRequest::FollowRedirectsAttribute, true);
request.setRawHeader("Range", QString("bytes=%1-%2").arg(startPos).arg(endPos).toLocal8Bit());
reply = mgr->get(request);
qDebug() << "开始下载数据:" << QString(" %1~%2 -> writePos Start %3").arg(startPos).arg(endPos).arg(receivedPos);
connect(reply, static_cast<void(QNetworkReply::*)(QNetworkReply::NetworkError) > (&QNetworkReply::error),
[this](QNetworkReply::NetworkError error)
{
if(error != QNetworkReply::NoError)
{
qDebug() << "出错了:" << reply->errorString();
}
});
connect(reply, &QNetworkReply::finished, mgr, &QNetworkAccessManager::deleteLater);
connect(reply, &QNetworkReply::readyRead, this, &DownloadWorker::dataReady);
connect(reply, &QNetworkReply::finished, this, &DownloadWorker::slotFinish);
connect(reply, &QNetworkReply::downloadProgress, this, &DownloadWorker::handleProcess);
// connect(reply, &QNetworkReply::finished, reply, &QNetworkReply::deleteLater);
connect(reply, &QNetworkReply::finished, this, &DownloadWorker::doStop);
}
void DownloadWorker::doStop()
{
if (reply) {
reply->disconnect();
reply->aboutToClose();
reply->deleteLater();
reply = nullptr;
}
}
void DownloadWorker::dataReady()
{
QByteArray data = reply->readAll();
file->seek(startPos + receivedPos);
file->write(data);
receivedPos += data.size();
}
void DownloadWorker::slotFinish()
{
file->flush();
qDebug() << "数据块下载完毕:" << QString(" %1~%2 -> writePos Start %3").arg(startPos).arg(endPos).arg(receivedPos);
emit workFinished();
}
void DownloadWorker::handleProcess(qint64, qint64)
{
emit this->downloadProcess();
}
DownloadController::DownloadController(QObject *parent) DownloadController::DownloadController(QObject *parent)
{ {
@@ -97,22 +19,7 @@ DownloadController::DownloadController(QObject *parent)
domains.clear(); domains.clear();
domains.append("d.store.deepinos.org.cn"); domains.append("d.store.deepinos.org.cn");
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();
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;
}
}
}
qDebug() << domains.size();
/* /*
domains = { domains = {
@@ -126,38 +33,41 @@ DownloadController::DownloadController(QObject *parent)
this->threadNum = domains.size(); this->threadNum = domains.size();
} }
DownloadController::~DownloadController()
{
if(workers.size() > 0)
{
for(int i = 0; i < workers.size(); i++)
{
workers.at(i)->doStop();
workers.at(i)->disconnect();
workers.at(i)->deleteLater();
}
workers.clear();
}
}
void DownloadController::setFilename(QString filename) void DownloadController::setFilename(QString filename)
{ {
this->filename = filename; this->filename = filename;
} }
void DownloadController::setThreadNum(int threadNum)
void timeSleeper(int time)
{ {
this->threadNum = threadNum; QElapsedTimer t1;
t1.start();
while(t1.elapsed()<time);
return;
} }
//int checkPID(QString pidCommand){
// system(pidCommand.toUtf8());
// timeSleeper(10);
// QFile downloadStatus("/tmp/spark-store/downloadStatus.txt");
// downloadStatus.open(QFile::ReadOnly);
// auto temp = QString(downloadStatus.readAll()).toUtf8();
// downloadStatus.close();
// if (temp!=""){
// return 1;
// }
// return 0;
//}
/** /**
* @brief 开始下载 * @brief 开始下载
*/ */
void DownloadController::startDownload(const QString &url) void DownloadController::startDownload(const QString &url)
{ {
finish = 0; // 获取下载任务信息
// 下载任务等分,计算每个线程的下载数据
fileSize = getFileSize(url); fileSize = getFileSize(url);
if(fileSize == 0) if(fileSize == 0)
{ {
@@ -165,55 +75,120 @@ void DownloadController::startDownload(const QString &url)
return; return;
} }
qint64 segmentSize = fileSize / threadNum;
ranges.resize(threadNum);
QVector<qint64> receivedBytes;
receivedBytes.resize(threadNum);
for(int i = 0; i < threadNum; i++)
{
ranges[i].first = i * segmentSize;
ranges[i].second = i * segmentSize + segmentSize - 1;
receivedBytes[i] = 0;
}
ranges[threadNum - 1].second = fileSize; // 余数部分加入最后一个
// 打开文件 QtConcurrent::run([=](){
QDir tmpdir("/tmp/spark-store"); QFile serverList(QDir::homePath().toUtf8() + "/.config/spark-store/server.list");
file = new QFile; if(serverList.open(QFile::ReadOnly))
file->setFileName(tmpdir.absoluteFilePath(filename)); {
QStringList list = QString(serverList.readAll()).trimmed().split("\n");
qDebug() << list << list.size();
if(file->exists()) for (int i = 0; i < list.size(); i++) {
{ if (list.at(i).contains("镜像源 Download only") && i + 1 < list.size()) {
file->remove(); 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;
}
}
}
qDebug() << domains << domains.size();
QDir tmpdir("/tmp/spark-store/");
QString aria2Command = "-d";
QString aria2Urls = "";
QString aria2Verbose = "--summary-interval=1";
QString aria2Threads = "-s " + QString::number(domains.size());
QStringList command;
QString downloadDir = "/tmp/spark-store/";
for(int i = 0; i < domains.size(); i ++)
{
command.append(replaceDomain(url, domains.at(i)).toUtf8());
aria2Urls += replaceDomain(url, domains.at(i));
aria2Urls += " ";
}
if(!file->open(QIODevice::WriteOnly)) qint64 downloadSizeRecord = 0;
{ QString speedInfo = "";
delete file; QString percentInfo = "";
file = nullptr; command.append(aria2Command.toUtf8());
emit errorOccur(file->errorString()); command.append(downloadDir.toUtf8());
return; command.append(aria2Verbose.toUtf8());
} command.append(aria2Threads.toUtf8());
qDebug() << command;
auto cmd = new QProcess();
cmd->setProcessChannelMode(QProcess::MergedChannels);
cmd->setProgram("aria2c");
cmd->setArguments(command);
cmd->start();
cmd->waitForStarted(); //等待启动完成
file->resize(fileSize); QObject::connect(cmd,&QProcess::readyReadStandardOutput,
[&](){
//通过读取输出计算下载速度
QFileInfo info(tmpdir.absoluteFilePath(filename));
QString message = cmd->readAllStandardOutput().data();
message = message.replace(" ","").replace("\n","").replace("-","");
message = message.replace("*","").replace("=","");
QStringList list;
qint64 downloadSize = 0;
int downloadSizePlace1 = message.indexOf("(");
int downloadSizePlace2 = message.indexOf(")");
int speedPlace1 = message.indexOf("DL:");
int speedPlace2 = message.indexOf("ETA");
if (downloadSizePlace1 != -1 && downloadSizePlace2 != -1){
percentInfo = message.mid(downloadSizePlace1+1, downloadSizePlace2-downloadSizePlace1-1).replace("%","");
if (percentInfo != "s"){
int percentInfoNumber = percentInfo.toUInt();
// 创建下载线程 downloadSize = (percentInfoNumber+1) * fileSize / 100;
workers.clear(); }
for(int i = 0; i < ranges.size(); i++) }
{ if (speedPlace1 != -1 && speedPlace2 != -1){
qDebug() << QString("第%1个下载请求%2-%3").arg(i).arg(ranges.at(i).first).arg(ranges.at(i).second); speedInfo = message.mid(speedPlace1+3, speedPlace2-speedPlace1-3);
auto worker = new DownloadWorker(this); speedInfo += "/s";
auto range = ranges.at(i);
QString chunkUrl = replaceDomain(url, domains.at(i));
worker->setIdentifier(i);
worker->setParamter(chunkUrl, range, file);
workers.append(worker);
connect(worker, &DownloadWorker::downloadProcess, this, &DownloadController::handleProcess); }
connect(worker, &DownloadWorker::workFinished, this, &DownloadController::chunkDownloadFinish); qDebug() << percentInfo << speedInfo;
if(downloadSize >= downloadSizeRecord)
{
downloadSizeRecord = downloadSize;
}
if(percentInfo=="OK"){
finished = true;
emit downloadProcess("", fileSize, fileSize);
qDebug() <<"finished:"<< finished;
}
else{
emit downloadProcess(speedInfo, downloadSizeRecord, fileSize);
}
});
QObject::connect(cmd,&QProcess::readyReadStandardError,
[&](){
emit errorOccur(cmd->readAllStandardError().data());
return;
});
auto pidNumber = cmd->processId();
this->pidNumber = pidNumber;
int statusSum = 0;
while(statusSum > -20)
{
auto status = cmd->waitForFinished() - 1;
statusSum += status;
}
emit downloadFinished();
});
worker->doWork();
}
} }
/** /**
@@ -221,44 +196,14 @@ void DownloadController::startDownload(const QString &url)
*/ */
void DownloadController::stopDownload() void DownloadController::stopDownload()
{ {
for(int i = 0; i < workers.size(); i++) // 实现下载进程退出
{ QString killCmd = QString("kill -9 %1").arg(pidNumber);
workers.at(i)->doStop(); system(killCmd.toUtf8());
workers.at(i)->disconnect(); qDebug()<<"kill aria2!";
workers.at(i)->deleteLater();
}
workers.clear();
qDebug() << "文件下载路径:" << QFileInfo(file->fileName()).absoluteFilePath();
file->flush();
file->close();
delete file;
file = nullptr;
} }
void DownloadController::handleProcess()
{
qint64 bytesReceived = 0;
for(int i = 0; i < workers.size(); i++)
{
bytesReceived += workers.at(i)->getReceivedPos();
}
qDebug() << QString("下载进度 %1-%2").arg(bytesReceived).arg(fileSize);
emit downloadProcess(bytesReceived, fileSize);
}
void DownloadController::chunkDownloadFinish()
{
finish++;
qDebug() << QString("已下载了%1块共%2块").arg(finish).arg(threadNum);
if(finish == threadNum)
{
stopDownload();
emit downloadFinished();
}
}
qint64 DownloadController::getFileSize(const QString& url) qint64 DownloadController::getFileSize(const QString& url)
{ {
QEventLoop event; QEventLoop event;

View File

@@ -6,52 +6,14 @@
#include <QFile> #include <QFile>
#include <QNetworkReply> #include <QNetworkReply>
class DownloadWorker : public QObject
{
Q_OBJECT
public:
explicit DownloadWorker(QObject *parent = nullptr);
void setIdentifier(int identifier);
void setParamter(const QString &url, QPair<qint64, qint64> range, QFile *flle);
qint64 getReceivedPos();
public slots:
void doWork();
void doStop();
void dataReady();
void slotFinish();
void handleProcess(qint64, qint64);
private:
int identifier;
QString url;
qint64 startPos;
qint64 endPos;
qint64 receivedPos = 0;
QNetworkReply *reply;
QNetworkAccessManager *mgr;
QFile *file;
signals:
void resultReady(int identifier, QByteArray data);
void testSignals();
void workFinished();
void downloadProcess();
};
class DownloadController : public QObject class DownloadController : public QObject
{ {
Q_OBJECT Q_OBJECT
public: public:
explicit DownloadController(QObject *parent = nullptr); explicit DownloadController(QObject *parent = nullptr);
~DownloadController();
void setFilename(QString filename); void setFilename(QString filename);
void setThreadNum(int threadNum);
void startDownload(const QString &url); void startDownload(const QString &url);
void stopDownload(); void stopDownload();
qint64 getFileSize(const QString& url); qint64 getFileSize(const QString& url);
@@ -59,21 +21,19 @@ public:
private: private:
int threadNum; int threadNum;
int pidNumber;
QString filename; QString filename;
qint64 fileSize; qint64 fileSize;
QVector<QPair<qint64, qint64>> ranges; QVector<QPair<qint64, qint64>> ranges;
QFile *file; QFile *file;
QList<DownloadWorker*> workers; bool finished = false;
int finish = 0;
QVector<QString> domains; QVector<QString> domains;
public slots:
void handleProcess();
void chunkDownloadFinish();
signals: signals:
void errorOccur(const QString& msg); void errorOccur(const QString& msg);
void downloadProcess(qint64, qint64); void downloadProcess(QString, qint64, qint64);
void downloadFinished(); void downloadFinished();
}; };

View File

@@ -1,7 +1,7 @@
#include <DApplication> #include <DApplication>
#include <DApplicationSettings> #include <DApplicationSettings>
#include <DWidgetUtil> // Dtk::Widget::moveToCenter(&w); 要调用它,就得引用 DWidgetUtil #include <DWidgetUtil> // Dtk::Widget::moveToCenter(&w); 要调用它,就得引用 DWidgetUtil
#include <DAboutDialog>
#include <QVector> #include <QVector>
#include <QScreen> #include <QScreen>
@@ -10,7 +10,7 @@
DWIDGET_USE_NAMESPACE DWIDGET_USE_NAMESPACE
int main(int argc, char *argv[]) int main(int argc, char *argv[])
{ {
//DApplication::loadDXcbPlugin(); // 已废弃 DApplication::loadDXcbPlugin(); // 已废弃但是对于非deepin桌面可以正常使用标题栏
DApplication::setAttribute(Qt::AA_EnableHighDpiScaling); // 开启 Hidpi 支持 DApplication::setAttribute(Qt::AA_EnableHighDpiScaling); // 开启 Hidpi 支持
// 程序内强制添加"-platformtheme deepin"参数喂给Qt让Qt正确使用Deepin主题修复各种奇怪样式问题 // 程序内强制添加"-platformtheme deepin"参数喂给Qt让Qt正确使用Deepin主题修复各种奇怪样式问题
QVector<char*> fakeArgs(argc + 2); QVector<char*> fakeArgs(argc + 2);
@@ -21,36 +21,37 @@ int main(int argc, char *argv[])
int fakeArgc = argc + 2; // 为啥DApplication的argc要用引用啊 int fakeArgc = argc + 2; // 为啥DApplication的argc要用引用啊
DApplication a(fakeArgc, fakeArgs.data()); DApplication a(fakeArgc, fakeArgs.data());
a.setAttribute(Qt::AA_UseHighDpiPixmaps); a.setAttribute(Qt::AA_UseHighDpiPixmaps);
a.loadTranslator(); // 载入翻译 a.loadTranslator(); // 载入翻译
/* Customized DAboutDialog (Can't work on other distro like Ubuntu...) //Customized DAboutDialog
*
* 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 2.0.2.5")); dialog.setVersion(DApplication::buildVersion("Version 3.1.3"));
* 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(
* QObject::tr( QObject::tr(
* "<span style=' font-size:10pt;font-weight:60;'>An appstore powered by deepin community</span><br/>" "<span style=' font-size:10pt;font-weight:60;'>An appstore powered by community</span><br/>"
* "<a href='https://www.spark-app.store/'>https://www.spark-app.store</a><br/>" "<a href='https://www.spark-app.store/'>https://www.spark-app.store</a><br/>"
* "<span style=' font-size:12pt;'>Spark developers</span>" "<span style=' font-size:12pt;'>Spark developers</span>"
* ) )
* ); );
* dialog.setProductName(QLabel::tr("Spark Store")); dialog.setProductName(QLabel::tr("Spark Store"));
* dialog.setCompanyLogo(QPixmap(":/Logo-Spark.png")); dialog.setCompanyLogo(QPixmap(":/spark-store.png"));
* dialog.setWebsiteName(QObject::tr("The Spark Project")); dialog.setWebsiteName(QObject::tr("The Spark Project"));
* dialog.setWebsiteLink("https://gitee.com/deepin-community-store"); dialog.setWebsiteLink("https://gitee.com/deepin-community-store");
*/
a.setProductName(QLabel::tr("Spark Store")); a.setProductName(QLabel::tr("Spark Store"));
a.setProductIcon(QIcon::fromTheme("spark-store")); //设置Logo a.setProductIcon(QIcon::fromTheme("spark-store")); //设置Logo
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.0.3-11")); a.setApplicationVersion(DApplication::buildVersion("3.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(

View File

@@ -46,7 +46,7 @@ Widget::Widget(DBlurEffectWidget *parent) :
manager = new QNetworkAccessManager(this); // 下载管理 manager = new QNetworkAccessManager(this); // 下载管理
httpClient = new AeaQt::HttpClient; httpClient = new AeaQt::HttpClient;
downloadController = new DownloadController(this); // 并发下载
connect(ui->menu_main, &QPushButton::clicked, this, [=](){Widget::chooseLeftMenu(0);}); connect(ui->menu_main, &QPushButton::clicked, this, [=](){Widget::chooseLeftMenu(0);});
connect(ui->menu_network, &QPushButton::clicked, this, [=](){Widget::chooseLeftMenu(1);}); connect(ui->menu_network, &QPushButton::clicked, this, [=](){Widget::chooseLeftMenu(1);});
@@ -108,10 +108,9 @@ Widget::Widget(DBlurEffectWidget *parent) :
download_speed.start(); download_speed.start();
connect(&download_speed,&QTimer::timeout,[=]() connect(&download_speed,&QTimer::timeout,[=]()
{ {
if(isdownload) if(isdownload && theSpeed == "")
{ {
size1 = download_size; size1 = download_size;
QString theSpeed;
double bspeed; double bspeed;
bspeed = size1 - size2; bspeed = size1 - size2;
if(bspeed < 1024) if(bspeed < 1024)
@@ -130,9 +129,11 @@ Widget::Widget(DBlurEffectWidget *parent) :
{ {
theSpeed = QString::number(0.01 * int(100 * (bspeed / (1024 * 1024 * 1024)))) + "GB/s"; theSpeed = QString::number(0.01 * int(100 * (bspeed / (1024 * 1024 * 1024)))) + "GB/s";
} }
download_list[nowDownload - 1].setSpeed(theSpeed);
size2 = download_size; size2 = download_size;
} }
if(isdownload){
download_list[nowDownload - 1].setSpeed(theSpeed);
}
}); });
notify_init(tr("Spark\\ Store").toLocal8Bit()); notify_init(tr("Spark\\ Store").toLocal8Bit());
@@ -192,7 +193,7 @@ void Widget::initUI()
// 添加菜单项 // 添加菜单项
QAction *actionSubmission = new QAction(tr("Submit App"), this); QAction *actionSubmission = new QAction(tr("Submit App"), this);
QAction *setting = new QAction(tr("Settings")); QAction *setting = new QAction(tr("Settings"));
QAction *upgrade = new QAction(tr("App Upgrade")); QAction *upgrade = new QAction(tr("APP Upgrade and Install Settings"));
QMenu *menu = new QMenu; QMenu *menu = new QMenu;
menu->addAction(setting); menu->addAction(setting);
@@ -667,6 +668,7 @@ void Widget::startRequest(QUrl url, QString fileName)
isdownload = true; isdownload = true;
download_list[allDownload - 1].free = false; download_list[allDownload - 1].free = false;
downloadController = new DownloadController(this); // 并发下载,在点击下载按钮的时候才会初始化
connect(downloadController, &DownloadController::downloadProcess, this, &Widget::updateDataReadProgress); connect(downloadController, &DownloadController::downloadProcess, this, &Widget::updateDataReadProgress);
connect(downloadController, &DownloadController::downloadFinished, this, &Widget::httpFinished); connect(downloadController, &DownloadController::downloadFinished, this, &Widget::httpFinished);
connect(downloadController, &DownloadController::errorOccur, this, [=](QString msg){this->sendNotification(msg);}); connect(downloadController, &DownloadController::errorOccur, this, [=](QString msg){this->sendNotification(msg);});
@@ -787,15 +789,15 @@ void Widget::httpReadyRead()
} }
} }
void Widget::updateDataReadProgress(qint64 bytesRead, qint64 totalBytes) void Widget::updateDataReadProgress(QString speedInfo, qint64 bytesRead, qint64 totalBytes)
{ {
if(totalBytes <= 0) if(totalBytes <= 0)
{ {
return; return;
} }
theSpeed = speedInfo;
download_list[nowDownload - 1].setMax(10000); // 最大值 download_list[nowDownload - 1].setMax(10000); // 最大值
download_list[nowDownload - 1].setValue((bytesRead * 10000) / totalBytes); // 当前值 download_list[nowDownload - 1].setValue(int(bytesRead * 100 / totalBytes) * 100); // 当前值
download_size = bytesRead; download_size = bytesRead;
if(download_list[nowDownload - 1].close) if(download_list[nowDownload - 1].close)
{ {
@@ -832,6 +834,7 @@ void Widget::sltAppinfoResetUi()
ui->pushButton_update->setEnabled(false); ui->pushButton_update->setEnabled(false);
ui->label_show->setText("Loading..."); ui->label_show->setText("Loading...");
ui->label_show->show(); ui->label_show->show();
ui->label_downloadCount->clear();
} }
void Widget::sltAppinfoTags(QStringList *tagList) void Widget::sltAppinfoTags(QStringList *tagList)
@@ -875,7 +878,7 @@ void Widget::sltAppinfoTags(QStringList *tagList)
void Widget::sltAppinfoDetails(QString *name, QString *details, QString *info, void Widget::sltAppinfoDetails(QString *name, QString *details, QString *info,
QString *website, QString *packageName, QUrl *fileUrl, QString *website, QString *packageName, QUrl *fileUrl,
bool isInstalled, bool isUpdated) int downloadCount, bool isInstalled, bool isUpdated)
{ {
ui->label_appname->setText(appName = *name); ui->label_appname->setText(appName = *name);
ui->label_appname->show(); ui->label_appname->show();
@@ -883,6 +886,7 @@ void Widget::sltAppinfoDetails(QString *name, QString *details, QString *info,
ui->label_info->show(); ui->label_info->show();
ui->label_more->setText(*info); ui->label_more->setText(*info);
ui->label_more->show(); ui->label_more->show();
ui->label_downloadCount->setText(tr("Total downloads: %1").arg(downloadCount));
pkgName = *packageName; pkgName = *packageName;
url = *fileUrl; url = *fileUrl;
@@ -954,7 +958,9 @@ void Widget::httpFinished() // 完成下载
download_list[nowDownload - 1].free = true; download_list[nowDownload - 1].free = true;
if(nowDownload < allDownload) if(nowDownload < allDownload)
{ {
// 如果有排队则下载下一个 // 如果有排队则下载下一个
qDebug() << "切换下一个下载...";
nowDownload += 1; nowDownload += 1;
while(download_list[nowDownload - 1].close) while(download_list[nowDownload - 1].close)
{ {
@@ -1038,7 +1044,7 @@ void Widget::on_pushButton_updateServer_clicked()
ui->comboBox_server->clear(); ui->comboBox_server->clear();
QFile::remove(QDir::homePath().toUtf8() + "/.config/spark-store/server.list"); QFile::remove(QDir::homePath().toUtf8() + "/.config/spark-store/server.list");
system("curl -o " + QDir::homePath().toUtf8() + "/.config/spark-store/server.list https://d.store.deepinos.org.cn/store/server.list"); system("curl -o " + QDir::homePath().toUtf8() + "/.config/spark-store/server.list https://d.store.deepinos.org.cn/store/server-and-mirror.list");
std::fstream server; std::fstream server;
server.open(QDir::homePath().toUtf8() + "/.config/spark-store/server.list", std::ios::in); server.open(QDir::homePath().toUtf8() + "/.config/spark-store/server.list", std::ios::in);
std::string lineTmp; std::string lineTmp;
@@ -1324,7 +1330,7 @@ void Widget::on_webEngineView_urlChanged(const QUrl &arg1)
ui->label_appname->clear(); ui->label_appname->clear();
ui->pushButton_download->setEnabled(false); ui->pushButton_download->setEnabled(false);
ui->stackedWidget->setCurrentIndex(2); ui->stackedWidget->setCurrentIndex(2);
qDebug() << "https://demo-one-vert.vercel.app/" + type_name + "/" + pname; qDebug() << "https://d.store.deepinos.org.cn/" + type_name + "/" + pname;
qDebug() << "链接地址:" << arg1; qDebug() << "链接地址:" << arg1;
/* /*

View File

@@ -69,14 +69,14 @@ private slots:
void httpFinished(); void httpFinished();
void httpReadyRead(); void httpReadyRead();
void updateDataReadProgress(qint64,qint64); void updateDataReadProgress(QString, qint64, qint64);
// SpkAppInfoLoaderThread的槽函数 // SpkAppInfoLoaderThread的槽函数
void sltAppinfoResetUi(); void sltAppinfoResetUi();
void sltAppinfoTags(QStringList *tagList); void sltAppinfoTags(QStringList *tagList);
void sltAppinfoDetails(QString *name, QString *details, QString *info, void sltAppinfoDetails(QString *name, QString *details, QString *info,
QString *website, QString *packageName, QString *website, QString *packageName,
QUrl *fileUrl, bool isInstalled, QUrl *fileUrl, int downloadCount, bool isInstalled,
bool isUpdated); bool isUpdated);
void sltAppinfoIcon(QPixmap *icon); void sltAppinfoIcon(QPixmap *icon);
void sltAppinfoScreenshot(QPixmap *picture, int index); void sltAppinfoScreenshot(QPixmap *picture, int index);
@@ -147,6 +147,7 @@ private:
QFuture<void> load; QFuture<void> load;
QFutureWatcher<void> watchScreenshotLoad; QFutureWatcher<void> watchScreenshotLoad;
QTimer download_speed; QTimer download_speed;
QString theSpeed;
QString type_name; QString type_name;
QColor main_color; QColor main_color;
int foot; int foot;

View File

@@ -489,8 +489,8 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>903</width> <width>889</width>
<height>849</height> <height>846</height>
</rect> </rect>
</property> </property>
<layout class="QVBoxLayout" name="verticalLayout_17"> <layout class="QVBoxLayout" name="verticalLayout_17">
@@ -509,23 +509,7 @@
<bool>true</bool> <bool>true</bool>
</property> </property>
<layout class="QGridLayout" name="gridLayout"> <layout class="QGridLayout" name="gridLayout">
<item row="3" column="0"> <item row="4" column="2">
<spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Maximum</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>70</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item row="3" column="2">
<spacer name="horizontalSpacer_2"> <spacer name="horizontalSpacer_2">
<property name="orientation"> <property name="orientation">
<enum>Qt::Horizontal</enum> <enum>Qt::Horizontal</enum>
@@ -541,30 +525,7 @@
</property> </property>
</spacer> </spacer>
</item> </item>
<item row="5" column="1"> <item row="4" column="3" rowspan="5" colspan="8">
<widget class="QPushButton" name="pushButton_download">
<property name="text">
<string>Install</string>
</property>
</widget>
</item>
<item row="0" column="3" colspan="2">
<widget class="QLabel" name="label_appname">
<property name="font">
<font>
<family>Bitstream Charter</family>
<pointsize>22</pointsize>
</font>
</property>
<property name="text">
<string>Name</string>
</property>
<property name="textInteractionFlags">
<set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByMouse</set>
</property>
</widget>
</item>
<item row="3" column="3" rowspan="5" colspan="8">
<widget class="QLabel" name="label_info"> <widget class="QLabel" name="label_info">
<property name="font"> <property name="font">
<font> <font>
@@ -585,7 +546,76 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="3" column="1"> <item row="4" column="0">
<spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Maximum</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>70</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item row="0" column="6">
<widget class="QPushButton" name="pushButton_website">
<property name="maximumSize">
<size>
<width>70</width>
<height>16777215</height>
</size>
</property>
<property name="styleSheet">
<string notr="true"/>
</property>
<property name="text">
<string>Site</string>
</property>
</widget>
</item>
<item row="6" column="1">
<widget class="QPushButton" name="pushButton_download">
<property name="text">
<string>Install</string>
</property>
</widget>
</item>
<item row="7" column="1">
<widget class="QPushButton" name="pushButton_uninstall">
<property name="text">
<string>Uninstall</string>
</property>
</widget>
</item>
<item row="3" column="3">
<spacer name="verticalSpacer_6">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Fixed</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item row="0" column="8">
<widget class="QPushButton" name="pushButton">
<property name="text">
<string>Share</string>
</property>
</widget>
</item>
<item row="4" column="1">
<widget class="QLabel" name="label_appicon"> <widget class="QLabel" name="label_appicon">
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
@@ -613,6 +643,19 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="8" column="1" rowspan="2">
<spacer name="verticalSpacer_2">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
<item row="0" column="10"> <item row="0" column="10">
<spacer name="horizontalSpacer_6"> <spacer name="horizontalSpacer_6">
<property name="orientation"> <property name="orientation">
@@ -626,94 +669,19 @@
</property> </property>
</spacer> </spacer>
</item> </item>
<item row="7" column="1" rowspan="2"> <item row="0" column="3" colspan="2">
<spacer name="verticalSpacer_2"> <widget class="QLabel" name="label_appname">
<property name="orientation"> <property name="font">
<enum>Qt::Vertical</enum> <font>
</property> <family>Bitstream Charter</family>
<property name="sizeHint" stdset="0"> <pointsize>22</pointsize>
<size> </font>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
<item row="4" column="1">
<spacer name="verticalSpacer_3">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Fixed</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item row="6" column="1">
<widget class="QPushButton" name="pushButton_uninstall">
<property name="text">
<string>Uninstall</string>
</property>
</widget>
</item>
<item row="0" column="6">
<widget class="QPushButton" name="pushButton_website">
<property name="maximumSize">
<size>
<width>70</width>
<height>16777215</height>
</size>
</property>
<property name="styleSheet">
<string notr="true"/>
</property> </property>
<property name="text"> <property name="text">
<string>Site</string> <string>Name</string>
</property> </property>
</widget> <property name="textInteractionFlags">
</item> <set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByMouse</set>
<item row="2" column="3">
<spacer name="verticalSpacer_6">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Fixed</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item row="0" column="5">
<spacer name="horizontalSpacer_7">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Fixed</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>10</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item row="0" column="8">
<widget class="QPushButton" name="pushButton">
<property name="text">
<string>Share</string>
</property> </property>
</widget> </widget>
</item> </item>
@@ -766,10 +734,10 @@
</size> </size>
</property> </property>
<property name="toolTip"> <property name="toolTip">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Capable to Ubuntu 20.04&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string> <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Capable to Ubuntu 22.04&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property> </property>
<property name="whatsThis"> <property name="whatsThis">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Capable to Ubuntu 20.04&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string> <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Capable to Ubuntu 22.04&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property> </property>
<property name="text"> <property name="text">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;img src=&quot;:/tags/ubuntu-small.png&quot;/&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string> <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;img src=&quot;:/tags/ubuntu-small.png&quot;/&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
@@ -913,6 +881,45 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="0" column="5">
<spacer name="horizontalSpacer_7">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Fixed</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>10</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item row="5" column="1">
<spacer name="verticalSpacer_3">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Fixed</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item row="2" column="3">
<widget class="QLabel" name="label_downloadCount">
<property name="text">
<string>Total downloads</string>
</property>
</widget>
</item>
</layout> </layout>
</widget> </widget>
</item> </item>
@@ -993,8 +1000,8 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>869</width> <width>851</width>
<height>325</height> <height>327</height>
</rect> </rect>
</property> </property>
<layout class="QHBoxLayout" name="horizontalLayout_4"> <layout class="QHBoxLayout" name="horizontalLayout_4">
@@ -1123,8 +1130,8 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>738</width> <width>697</width>
<height>886</height> <height>805</height>
</rect> </rect>
</property> </property>
<layout class="QVBoxLayout" name="verticalLayout_23"> <layout class="QVBoxLayout" name="verticalLayout_23">

View File

@@ -11,12 +11,19 @@
void SpkAppInfoLoaderThread::run() void SpkAppInfoLoaderThread::run()
{ {
emit requestResetUi(); emit requestResetUi();
int downloadCount = 0;
httpClient = new AeaQt::HttpClient; httpClient = new AeaQt::HttpClient;
httpClient->get(targetUrl.toString().replace("app.json", "download-times.txt"))
.onResponse([&downloadCount](QByteArray text)
{
downloadCount = QString(text).toInt();
});
httpClient->get(targetUrl.toString()) httpClient->get(targetUrl.toString())
.header("content-type", "application/json") .header("content-type", "application/json")
.onResponse([this](QByteArray json_array) .onResponse([&](QByteArray json_array)
{ {
qDebug() << "请求应用信息 " << json_array; qDebug() << "请求应用信息 " << json_array;
QString urladdress, deatils, more, packagename, appweb; QString urladdress, deatils, more, packagename, appweb;
@@ -29,7 +36,7 @@ void SpkAppInfoLoaderThread::run()
QString deburl = serverUrl; QString deburl = serverUrl;
deburl = deburl.left(urladdress.length() - 1); deburl = deburl.left(urladdress.length() - 1);
urladdress = "https://img.jerrywang.top/"; // 使用图片专用服务器请保留这行,删除后将使用源服务器 urladdress = "https://d.store.deepinos.org.cn/"; // 使用图片专用服务器请保留这行,删除后将使用源服务器
urladdress = urladdress.left(urladdress.length() - 1); urladdress = urladdress.left(urladdress.length() - 1);
for(int i = 3; i < downloadurl.size(); i++) for(int i = 3; i < downloadurl.size(); i++)
@@ -95,7 +102,7 @@ void SpkAppInfoLoaderThread::run()
isUpdated = false; isUpdated = false;
} }
emit requestSetAppInformation(&appName, &details, &more, &appweb, &packagename, &fileUrl, isInstalled, isUpdated); emit requestSetAppInformation(&appName, &details, &more, &appweb, &packagename, &fileUrl, downloadCount, isInstalled, isUpdated);
// tag 加载 // tag 加载
QString tags = json["Tags"].toString(); QString tags = json["Tags"].toString();

View File

@@ -40,7 +40,7 @@ signals:
void requestSetTags(QStringList *tagList); void requestSetTags(QStringList *tagList);
void requestSetAppInformation(QString *name, QString *details, QString *info, void requestSetAppInformation(QString *name, QString *details, QString *info,
QString *website, QString *packageName, QString *website, QString *packageName,
QUrl *fileUrl, bool isInstalled, QUrl *fileUrl, int downloadCount, bool isInstalled,
bool isUpdated); bool isUpdated);
void finishedIconLoad(QPixmap *icon); void finishedIconLoad(QPixmap *icon);
void finishedScreenshotLoad(QPixmap *icon, int index); // 该信号必须以 BlockingQueued 方式连接 void finishedScreenshotLoad(QPixmap *icon, int index); // 该信号必须以 BlockingQueued 方式连接

View File

@@ -0,0 +1,147 @@
###################################################################
# CONFIGURATION OPTIONS
###################################################################
# Every item has a default value besides MIRRORS (which is unset).
# Use aptitude, apt-get, or apt?
# Note that apt-get is used as a fallback for outputting the
# package URI list for e.g. aptitude, which can't do this
# Optionally add the FULLPATH to apt-get or apt-rpm or aptitude
# e.g. /usr/bin/aptitude
#
# Default: apt-get
#
_APTMGR=apt
# Enable DOWNLOADBEFORE to suppress apt-fast confirmation dialog and download
# packages directly.
#
# Default: dialog enabled
#
DOWNLOADBEFORE=true
# Choose mirror list to speed up downloads from same archive. To select some
# mirrors take a look at your distribution's archive mirror lists.
# Debian: http://www.debian.org/mirror/list
# Ubuntu: https://launchpad.net/ubuntu/+archivemirrors
#
# It is required to add mirrors in the sources.list to this array as well, so
# apt-fast can destinguish between different distributions.
#
# Examples:
#
# Different distributions (as in operating systems):
#
# sources.list:
# deb http://deb.debian.org/debian/ unstable main non-free contrib
# deb http://de.archive.ubuntu.com/ubuntu/ bionic main universe
#
# apt-fast.conf:
# MIRRORS=( 'http://deb.debian.org/debian','http://ftp.debian.org/debian,http://ftp2.de.debian.org/debian,http://ftp.de.debian.org/debian,ftp://ftp.uni-kl.de/debian'
# 'http://archive.ubuntu.com/ubuntu,http://de.archive.ubuntu.com/ubuntu,http://ftp.halifax.rwth-aachen.de/ubuntu,http://ftp.uni-kl.de/pub/linux/ubuntu,http://mirror.informatik.uni-mannheim.de/pub/linux/distributions/ubuntu/' )
#
#
# Single distribution:
#
# sources.list:
# deb http://fr.archive.ubuntu.com/ubuntu/ bionic main
# deb http://fr.archive.ubuntu.com/ubuntu/ artful main
#
# apt-fast.conf:
# MIRRORS=( 'http://fr.archive.ubuntu.com/ubuntu,http://bouyguestelecom.ubuntu.lafibre.info/ubuntu,http://mirror.ovh.net/ubuntu,http://ubuntu-archive.mirrors.proxad.net/ubuntu' )
#
# Default: disabled
#
MIRRORS=( 'https://d.store.deepinos.org.cn/,https://d1.store.deepinos.org.cn/,https://d2.store.deepinos.org.cn/,https://d3.store.deepinos.org.cn/,https://d4.store.deepinos.org.cn/,https://d5.store.deepinos.org.cn/,http://cdn.dl.uniartisan.com:9000/deepinos/' )
# Maximum number of connections
# You can use this value in _DOWNLOADER command. Escape with ${}: ${_MAXNUM}
#
# Default: 5
#
_MAXNUM=5
# Maximum number of connections per server
# Default: 10
#
_MAXCONPERSRV=10
# Download file using given number of connections
# If more than N URIs are given, first N URIs are used and remaining URIs are used for backup.
# If less than N URIs are given, those URIs are used more than once so that N connections total are made simultaneously.
#
_SPLITCON=8
# Split size i.e. size of each piece
# Possible Values: 1M-1024M
#
_MINSPLITSZ=1M
# Piece selection algorithm to use
# Available values are: default, inorder, geom
# default: selects piece so that it reduces the number of establishing connection, reasonable for most cases
# inorder: selects pieces in sequential order starting from first piece
# geom: selects piece which has minimum index like inorder, but it exponentially increasingly keeps space from previously selected pieces
#
_PIECEALGO=default
# Downloadmanager listfile
# You can use this value in _DOWNLOADER command. Escape with ${}: ${DLLIST}
#
# Default: /tmp/apt-fast.list
#
DLLIST='/tmp/apt-fast.list'
# Download command to use. Temporary download list is designed for aria2. But
# you can choose another download command or download manager. It has to
# support following input file syntax (\t is tab character):
#
# # Comment
# MIRROR1\tMIRROR2\tMIRROR3...
# out=FILENAME1
# MIRROR1\tMIRROR2\tMIRROR3...
# out=FILENAME2
# ...
#
# Examples:
# aria2c with a proxy (set username, proxy, ip and password!)
# _DOWNLOADER='aria2c --no-conf -c -j ${_MAXNUM} -x ${_MAXCONPERSRV} -s ${_SPLITCON} --min-split-size=${_MINSPLITSZ} --stream-piece-selector=${_PIECEALGO} --http-proxy=http://username:password@proxy_ip:proxy_port -i ${DLLIST}'
#
# Default: _DOWNLOADER='aria2c --no-conf -c -j ${_MAXNUM} -x ${_MAXCONPERSRV} -s ${_SPLITCON} --min-split-size=${_MINSPLITSZ} --stream-piece-selector=${_PIECEALGO} -i ${DLLIST} --connect-timeout=600 --timeout=600 -m0'
#
_DOWNLOADER='aria2c --no-conf -c -j ${_MAXNUM} -x ${_MAXCONPERSRV} -s ${_SPLITCON} --min-split-size=${_MINSPLITSZ} --stream-piece-selector=${_PIECEALGO} -i ${DLLIST} --connect-timeout=600 --timeout=600 -m0'
# Download temp folder for Downloadmanager
# example /tmp/apt-fast. Standard is /var/cache/apt-fast
#
# Default: /var/cache/apt/apt-fast
#
DLDIR='/var/cache/apt/apt-fast'
# APT archives cache directory
#
# Default /var/cache/apt/archives
# (APT configuration items Dir::Cache and Dir::Cache::archives)
#
APTCACHE='/var/cache/apt/archives'
# apt-fast colors
# Colors are disabled when not using a terminal.
#
# Default colors are:
# cGreen='\e[0;32m'
# cRed='\e[0;31m'
# cBlue='\e[0;34m'
# endColor='\e[0m'

View File

@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE policyconfig PUBLIC "-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"
"http://www.freedesktop.org/standards/PolicyKit/1/policyconfig.dtd">
<policyconfig>
<vendor>Spark Store</vendor>
<icon_name>x-package-repository</icon_name>
<action id="org.maicss.dnf">
<description>运行ssinstall需要权限</description>
<message>要使用ssinstall需要权限</message>
<defaults>
<allow_any>yes</allow_any>
<allow_inactive>yes</allow_inactive>
<allow_active>yes</allow_active>
</defaults>
<annotate key="org.freedesktop.policykit.exec.path">/usr/local/bin/ssinstall</annotate>
<annotate key="org.freedesktop.policykit.exec.allow_gui">true</annotate>
</action>
</policyconfig>

View File

@@ -0,0 +1,17 @@
#!/bin/bash
uname=`whoami`
echo "Now input the password of $uname"
read upass
passcheck=`echo "$upass" | sudo -S echo "i love amber forever"`
passcheck=`echo "$upass" | sudo -S echo "i love amber forever"`
reset
###UOS魔改的sudo返回了验证成功干扰判断会变成验证成功i love amber forever
### 听我说谢谢你,因为有你,温暖了四季
###fuck♂you 就不能改的不那么坑爹吗???还是我用来捕捉的方法太笨了。。。
if [ "$passcheck" != "i love amber forever" ];then
echo "114514首"
exit 1
else
reset
echo "go go Baron Bunny"
fi

19
tool/ss-apt-fast Executable file
View File

@@ -0,0 +1,19 @@
#/bin/bash
if [ "$(id -u)" != "0" ]
then
echo "ss-apt-fast需要在root下运行"
exit
fi
DEPEND=`which apt-fast`
if [ "$DEPEND" = "" ] ; then
echo "未安装依赖apt-fast 开始安装"
apt install apt-fast -y
fi
rm /opt/durapps/spark-store/bin/apt-fast-conf/apt-fast.conf
echo "从服务器获取配置和镜像列表..."
curl -s --progress-bar -o /opt/durapps/spark-store/bin/apt-fast-conf/apt-fast.conf "https://gitee.com/deepin-community-store/repo_auto_update_script/raw/master/mirror-list-for-apt-fast/apt-fast.conf"
bwrap --dev-bind / / --bind '/opt/durapps/spark-store/bin/apt-fast-conf/apt-fast.conf' /etc/apt-fast.conf apt-fast "$@"

View File

@@ -1,3 +1,107 @@
#!/bin/sh #!/bin/bash
#将来可能可以换成apt-metalink来直接用种子/链接下载
dpkg -i $1 || apt install -yf || dpkg -P $1 echo "Spark Store Install script.星火商店安装脚本"
#################检测文件是否存在
if [ $# -eq 0 ];then
echo "没有接收到参数,退出"
echo "用法:$0 deb路径"
exit
fi
if [ ! -f "$1" ]
then
echo "文件不存在"
exit 1
fi
#################root校验+要密码
if [ "$(id -u)" != "0" ]
then
echo "ssinstall需要在root下运行";
uname=`whoami`
echo "Now input the password of $uname"
read -e upass
################检查密码对不对
echo "$upass" | sudo -S echo "i love amber forever"
passcheck=`echo "$upass" | sudo -S echo "i love amber forever"`
if [ "$passcheck" != "i love amber forever" ];then
echo "-----------------------------------------------------"
echo "E:密码错误,退出脚本!"
exit 1
fi
fi
##################apt-fast/metalink测试
DEPEND="这里一定会安装所以放弃处理"
isuos=`cat /etc/os-release | grep UnionTech`
##############判断是否是root运行如果是则正常走如果不是则代输密码
if [ "$(id -u)" != "0" ];then
#############################无root权限时
#临时提升星火源的优先级
echo "$upass" | sudo -S sed -i 's/400/500/g' /etc/apt/preferences.d/sparkstore
IS_INSTALLED=`which apt-fast`
if [ "$IS_INSTALLED" = "" ] ; then
echo "未安装依赖apt-fast 开始安装"
echo "$upass" | sudo -S apt install apt-fast -y
fi
if [ "$DEPEND" != "" ] && [ "$isuos" != "" ]; then
echo "UOS中系统依赖无法使用第三方下载工具放弃使用apt-fast"
echo ----------------------------------------------------------------------------------
echo "$upass" | sudo -S dpkg -i $1 || sudo apt install -yf
fi
if [ "$DEPEND" != "" ] && [ "$isuos" = "" ]; then
echo "检测到apt-fast使用ss-apt-fast进行多线程下载加速"
echo ----------------------------------------------------------------------------------
echo "$upass" | sudo -S dpkg -i $1 || sudo ss-apt-fast install -yf
fi
echo "$upass" | sudo -S sed -i 's/500/400/g' /etc/apt/preferences.d/sparkstore
#恢复优先级
else
###########################有root权限时
#临时提升星火源的优先级
sed -i 's/400/500/g' /etc/apt/preferences.d/sparkstore
IS_INSTALLED=`which apt-fast`
if [ "$IS_INSTALLED" = "" ] ; then
echo "未安装依赖apt-fast 开始安装"
apt install apt-fast -y
fi
if [ "$DEPEND" != "" ] && [ "$isuos" != "" ]; then
echo "UOS中系统依赖无法使用第三方下载工具放弃使用apt-fast"
echo ----------------------------------------------------------------------------------
dpkg -i $1 || apt install -yf
fi
if [ "$DEPEND" != "" ] && [ "$isuos" = "" ]; then
echo "检测到apt-fast使用ss-apt-fast进行多线程下载加速"
echo ----------------------------------------------------------------------------------
dpkg -i $1 || ss-apt-fast install -yf
fi
sed -i 's/500/400/g' /etc/apt/preferences.d/sparkstore
#恢复优先级
fi

View File

@@ -1,4 +1,9 @@
#!/bin/bash #!/bin/bash
set -e
sudo apt upgrade -o Dir::Etc::sourcelist="sources.list.d/sparkstore.list" -o Dir::Etc::sourceparts="-" -o APT::Get::List-Cleanup="0"
echo "以上可升级,是否升级?[y/n]"
read yes_or_no
if [ "$yes_or_no" = "y" ];then
sudo ss-apt-fast upgrade -y -o Dir::Etc::sourcelist="sources.list.d/sparkstore.list" -o Dir::Etc::sourceparts="-" -o APT::Get::List-Cleanup="0"
else
exit
fi

View File

@@ -1,61 +1,118 @@
#!/bin/bash #!/bin/bash
set -e
echo "因为目前没有有时间的Qt程序员志愿者所以现在加功能只有让shenmo写脚本了..."
echo
echo "此功能被添加的原因是为了防止影响系统更新星火源默认的优先级是400低于默认的500。这导致了与系统仓库相同包名的软件包无法正常更新到比系统仓库更高的版本。例如hugo系统仓库中的低版本会被优先安装而且默认不会更新到星火的更新的版本"
echo "此脚本可以检测星火源中是否有比当前系统更高版本的软件包,由您决定是否安装"
echo "此脚本使用apt update/apt list --upgrade/apt upgrade来更新软件源、列出更新列表和操作更新"
echo
echo "该脚本不对其使用效果有任何明示或暗示的担保,在使用前请您确保您清楚地知道您在干什么。您应当清楚,星火商店的软件包并不是适配所有发行版的;尽管绝大多数的软件更新是无害的,您仍然应该仔细检查显示出来的更新内容,以确保不会对您的依赖环境造成破坏,尤其是那些看起来和系统依赖相关的软件包。在查看过更新列表之后,确认更新之前,您仍有一次取消更新的机会。"
echo "本脚本的开发者不对使用该脚本可能造成的后果负责"
echo
echo
echo
echo "请按任意键继续..."
read
reset reset
endloop=0 endloop=0
#####################检测是否启动过了更新检测工具
while [ $endloop -eq 0 ] ;do while [ $endloop -eq 0 ] ;do
echo "欢迎使用星火更新工具 脚本版 "
if [ -f /etc/xdg/autostart/spark-update-notifier.desktop ];then
text_update_open="关闭"
#已经开启了就显示关闭
else
text_update_open="开启"
fi
if [ -f /usr/share/polkit-1/actions/store.spark-app.ssinstall.policy ];then
text_auto_install_open="关闭"
#已经开启了就显示关闭
else
text_auto_install_open="开启"
fi
echo "欢迎使用星火更新和安装设置工具"
echo "请在以下操作中选择一个进行~" echo "请在以下操作中选择一个进行~"
echo "输入1 开启或关闭星火更新检测工具(如果开启则会在系统启动后自动检测更新。如有更新则会弹出通知)" echo "输入0 查看自动更新相关功能使用前须知(重要)"
echo "输入1 $text_update_open星火更新检测工具(如果开启则会在系统启动后自动检测更新。如有更新则会弹出通知)"
echo "输入2 查看可更新软件包列表并决定是否更新" echo "输入2 查看可更新软件包列表并决定是否更新"
echo "输入3 退出脚本" echo "输入3 $text_auto_install_open点击安装免输入密码功能"
read option echo "输入4 退出脚本"
echo
read -e option
case $option in case $option in
0)
reset
echo "此须知适用于自动更新功能"
echo "此脚本可以检测星火源中是否有比当前系统更高版本的软件包,由您决定是否安装;在安装更新过程中请不要直接点击关闭本页面,以免发生错误"
echo "此脚本使用apt update/apt list --upgrade/apt upgrade来更新软件源、列出更新列表和操作更新"
echo
echo "该脚本不对其使用效果有任何明示或暗示的担保,在使用前请您确保您清楚地知道您在干什么。您应当清楚,星火商店的软件包并不是适配所有发行版的;尽管绝大多数的软件更新是无害的,您仍然应该仔细检查显示出来的更新内容,以确保不会对您 的依赖环境造成破坏,尤其是那些看起来和系统依赖相关的软件包。在查看过更新列表之后,确认更新之前,您仍有一次取消更新的机会。"
echo "本脚本的开发者不对使用该脚本可能造成的后果负责"
echo
echo
echo
echo "请按回车继续..."
#"只有回车可以用啊!""啊?"“你说的任意都行啊”“唔。。。戳到我的盲区了”
read
reset
;;
1) 1)
echo "执行以下操作需要授权..." echo "执行以下操作需要授权..."
if [ -f /etc/xdg/autostart/spark-update-notifier.desktop ];then if [ -f /etc/xdg/autostart/spark-update-notifier.desktop ];then
echo "检测到已经启动了自动更新检测,关闭" echo "---检测到已经启动了自动更新检测,执行关闭"
sudo systemctl disable spark-update-notifier sudo systemctl disable spark-update-notifier
sudo rm /etc/xdg/autostart/spark-update-notifier.desktop sudo rm /etc/xdg/autostart/spark-update-notifier.desktop
sleep 3
reset
else else
echo "未检测到自动更新检测,启动" echo "---未检测到自动更新检测,执行启动"
sudo systemctl enable spark-update-notifier sudo systemctl enable spark-update-notifier
sudo service spark-update-notifier start sudo service spark-update-notifier start
# ln -s /opt/durapps/spark-store/bin/update-upgrade/autostart/spark-update-notifier.desktop $XDG_CONFIG_HOME/autostart # ln -s /opt/durapps/spark-store/bin/update-upgrade/autostart/spark-update-notifier.desktop $XDG_CONFIG_HOME/autostart
# #
sudo ln -s /opt/durapps/spark-store/bin/update-upgrade/autostart/spark-update-notifier.desktop /etc/xdg/autostart sudo ln -s /opt/durapps/spark-store/bin/update-upgrade/autostart/spark-update-notifier.desktop /etc/xdg/autostart
/opt/durapps/spark-store/bin/update-upgrade/ss-update-notify.sh now /opt/durapps/spark-store/bin/update-upgrade/ss-update-notify.sh now
sleep 3
reset
fi fi
;; ;;
2) 2)
echo "请注意:如果有些更新需要从系统获取更多依赖,你将需要手动操作 sudo ss-apt-fast upgrade"
echo "执行以下操作需要授权..." echo "执行以下操作需要授权..."
/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 "---请按回车返回"
read
reset
;; ;;
3) 3)
echo "按回车退出" if [ -f /usr/share/polkit-1/actions/store.spark-app.ssinstall.policy ];then
echo "---检测到已经启动了免输入密码,执行关闭"
sudo rm /usr/share/polkit-1/actions/store.spark-app.ssinstall.policy
sleep 3
reset
else
cat << EOF
请注意这个功能尚未开发完成一旦开启则运行pkexec ssinstall时不再需要授权
仅对星火内置安装器生效
理论上会存在一定的安全风险~
如果接受请输入1否则输入2
EOF
read is_accept_polkiy
if [ "$is_accept_polkiy" = "1" ];then
echo "执行以下操作需要授权..."
sudo ln -s /opt/durapps/spark-store/bin/auto-install-policy/store.spark-app.ssinstall.policy /usr/share/polkit-1/actions/store.spark-app.ssinstall.policy
echo "---已启动"
sleep 3
reset
else
echo "---未同意,返回"
sleep 3
reset
fi
fi
;;
4)
exit 0 exit 0
;; ;;
*) *)
echo "无法识别的输入!请重新输入" echo "---无法识别的输入!请重新输入"
reset reset
esac esac

View File

@@ -50,7 +50,7 @@ fi
update_app_number=`echo ${updatetext%package*} #从右向左截取第一个 src 后的字符串` update_app_number=`echo ${updatetext%package*} #从右向左截取第一个 src 后的字符串`
update_app_number=`echo ${update_app_number: -1}` update_app_number=`echo ${update_app_number##*information...}`
sudo echo "$update_app_number" > /tmp/spark-store-updatenum/number sudo echo "$update_app_number" > /tmp/spark-store-updatenum/number

View File

@@ -2,5 +2,5 @@
set -e set -e
echo "可更新的应用有:" echo "---可更新的应用有:"
sudo apt list --upgradable -o Dir::Etc::sourcelist="sources.list.d/sparkstore.list" -o Dir::Etc::sourceparts="-" -o APT::Get::List-Cleanup="0" sudo apt list --upgradable -o Dir::Etc::sourcelist="sources.list.d/sparkstore.list" -o Dir::Etc::sourceparts="-" -o APT::Get::List-Cleanup="0"

View File

@@ -38,9 +38,9 @@ else
until [ -f "/usr/share/ca-certificates/deepin/private/priv.crt" ] ; do until [ -f "/usr/share/ca-certificates/deepin/private/priv.crt" ] ; do
echo "没有检测到证书准备调用证书工具生成证书请输入您的UOS账号/密码。本脚本不会上传任何信息" echo "没有检测到证书准备调用证书工具生成证书请输入您的UOS账号/密码。本脚本不会上传任何信息"
echo "请在此行输入您的UOS账号用户名/电话号/邮箱" echo "请在此行输入您的UOS账号用户名/电话号/邮箱"
read account read -e account
echo "请在此行输入您的UOS账号密码" echo "请在此行输入您的UOS账号密码"
read passwd read -e passwd
echo "即将安装证书,请在弹出的窗口安装" echo "即将安装证书,请在弹出的窗口安装"
cert-tool -username="$account" -password="$passwd" cert-tool -username="$account" -password="$passwd"
done done

View File

@@ -12,7 +12,9 @@
<context> <context>
<name>QLabel</name> <name>QLabel</name>
<message> <message>
<location filename="../src/main.cpp" line="40"/> <location filename="../src/main.cpp" line="35"/>
<location filename="../src/main.cpp" line="43"/>
<location filename="../src/main.cpp" line="49"/>
<source>Spark Store</source> <source>Spark Store</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
@@ -20,7 +22,22 @@
<context> <context>
<name>QObject</name> <name>QObject</name>
<message> <message>
<location filename="../src/main.cpp" line="48"/> <location filename="../src/main.cpp" line="32"/>
<source>We publish this program under GPL V3</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/main.cpp" line="37"/>
<source>&lt;span style=&apos; font-size:10pt;font-weight:60;&apos;&gt;An appstore powered by community&lt;/span&gt;&lt;br/&gt;&lt;a href=&apos;https://www.spark-app.store/&apos;&gt;https://www.spark-app.store&lt;/a&gt;&lt;br/&gt;&lt;span style=&apos; font-size:12pt;&apos;&gt;Spark developers&lt;/span&gt;</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/main.cpp" line="45"/>
<source>The Spark Project</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/main.cpp" line="57"/>
<source>&lt;span style=&apos;font-size:10pt;font-weight:60;&apos;&gt;An appstore powered by deepin community&lt;/span&gt;&lt;br/&gt;&lt;a href=&apos;https://www.spark-app.store/&apos;&gt;https://www.spark-app.store&lt;/a&gt;&lt;br/&gt;&lt;span style=&apos;font-size:12pt;&apos;&gt;Spark developers&lt;/span&gt;&lt;br/&gt;&lt;br/&gt;Published under GPL V3</source> <source>&lt;span style=&apos;font-size:10pt;font-weight:60;&apos;&gt;An appstore powered by deepin community&lt;/span&gt;&lt;br/&gt;&lt;a href=&apos;https://www.spark-app.store/&apos;&gt;https://www.spark-app.store&lt;/a&gt;&lt;br/&gt;&lt;span style=&apos;font-size:12pt;&apos;&gt;Spark developers&lt;/span&gt;&lt;br/&gt;&lt;br/&gt;Published under GPL V3</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
@@ -28,47 +45,47 @@
<context> <context>
<name>SpkAppInfoLoaderThread</name> <name>SpkAppInfoLoaderThread</name>
<message> <message>
<location filename="../src/workerthreads.cpp" line="167"/> <location filename="../src/workerthreads.cpp" line="174"/>
<source>Failed to download app info. Please check internet connection.</source> <source>Failed to download app info. Please check internet connection.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/workerthreads.cpp" line="48"/> <location filename="../src/workerthreads.cpp" line="55"/>
<source>PkgName: </source> <source>PkgName: </source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/workerthreads.cpp" line="49"/> <location filename="../src/workerthreads.cpp" line="56"/>
<source>Version: </source> <source>Version: </source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/workerthreads.cpp" line="52"/> <location filename="../src/workerthreads.cpp" line="59"/>
<source>Author: </source> <source>Author: </source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/workerthreads.cpp" line="57"/> <location filename="../src/workerthreads.cpp" line="64"/>
<source>Official Site: </source> <source>Official Site: </source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/workerthreads.cpp" line="61"/> <location filename="../src/workerthreads.cpp" line="68"/>
<source>Contributor: </source> <source>Contributor: </source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/workerthreads.cpp" line="62"/> <location filename="../src/workerthreads.cpp" line="69"/>
<source>Update Time: </source> <source>Update Time: </source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/workerthreads.cpp" line="63"/> <location filename="../src/workerthreads.cpp" line="70"/>
<source>Installed Size: </source> <source>Installed Size: </source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/workerthreads.cpp" line="123"/> <location filename="../src/workerthreads.cpp" line="130"/>
<source>Failed to load application icon.</source> <source>Failed to load application icon.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
@@ -116,62 +133,56 @@
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.ui" line="560"/> <location filename="../src/widget.ui" line="681"/>
<source>Name</source> <source>Name</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.ui" line="606"/> <location filename="../src/widget.ui" line="636"/>
<source>ICON</source> <source>ICON</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.ui" line="547"/> <location filename="../src/widget.ui" line="584"/>
<location filename="../src/widget.cpp" line="902"/> <location filename="../src/widget.cpp" line="908"/>
<location filename="../src/widget.cpp" line="1171"/> <location filename="../src/widget.cpp" line="1177"/>
<source>Install</source> <source>Install</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.ui" line="661"/> <location filename="../src/widget.ui" line="591"/>
<source>Uninstall</source> <source>Uninstall</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.ui" line="677"/> <location filename="../src/widget.ui" line="577"/>
<source>Site</source> <source>Site</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.ui" line="750"/> <location filename="../src/widget.ui" line="718"/>
<location filename="../src/widget.ui" line="753"/> <location filename="../src/widget.ui" line="721"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;This app is developed by community user,we give this tag to honor those who contribute to the Linux Ecology&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source> <source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;This app is developed by community user,we give this tag to honor those who contribute to the Linux Ecology&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.ui" line="756"/> <location filename="../src/widget.ui" line="724"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;img src=&quot;:/tags/community-small.png&quot;/&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source> <source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;img src=&quot;:/tags/community-small.png&quot;/&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.ui" line="769"/> <location filename="../src/widget.ui" line="743"/>
<location filename="../src/widget.ui" line="772"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Capable to Ubuntu 20.04&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/widget.ui" line="775"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;img src=&quot;:/tags/ubuntu-small.png&quot;/&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source> <source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;img src=&quot;:/tags/ubuntu-small.png&quot;/&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.ui" line="813"/> <location filename="../src/widget.ui" line="781"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;img src=&quot;:/tags/uos-small.png&quot;/&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source> <source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;img src=&quot;:/tags/uos-small.png&quot;/&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.ui" line="788"/> <location filename="../src/widget.ui" line="756"/>
<location filename="../src/widget.ui" line="791"/> <location filename="../src/widget.ui" line="759"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Capable to deepin 20&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source> <source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Capable to deepin 20&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
@@ -216,46 +227,46 @@
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.ui" line="794"/> <location filename="../src/widget.ui" line="762"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;img src=&quot;:/tags/deepin-small.png&quot;/&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source> <source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;img src=&quot;:/tags/deepin-small.png&quot;/&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.ui" line="807"/> <location filename="../src/widget.ui" line="775"/>
<location filename="../src/widget.ui" line="810"/> <location filename="../src/widget.ui" line="778"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Capable to UOS home 20&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source> <source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Capable to UOS home 20&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.ui" line="826"/> <location filename="../src/widget.ui" line="794"/>
<location filename="../src/widget.ui" line="829"/> <location filename="../src/widget.ui" line="797"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;This is a DTK5 app,which means it would have better effect on Deepin Desktop Environment&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source> <source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;This is a DTK5 app,which means it would have better effect on Deepin Desktop Environment&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.ui" line="832"/> <location filename="../src/widget.ui" line="800"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;img src=&quot;:/tags/dtk-small.png&quot;/&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source> <source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;img src=&quot;:/tags/dtk-small.png&quot;/&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.ui" line="864"/> <location filename="../src/widget.ui" line="832"/>
<location filename="../src/widget.ui" line="867"/> <location filename="../src/widget.ui" line="835"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;A deepin-wine5 app.If you are using ubuntu or other non-deepin distro,you should deploy deepin-wine5 by your self.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source> <source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;A deepin-wine5 app.If you are using ubuntu or other non-deepin distro,you should deploy deepin-wine5 by your self.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.ui" line="883"/> <location filename="../src/widget.ui" line="851"/>
<location filename="../src/widget.ui" line="886"/> <location filename="../src/widget.ui" line="854"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;An Appimage to deb app.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source> <source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;An Appimage to deb app.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.ui" line="889"/> <location filename="../src/widget.ui" line="857"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;img src=&quot;:/tags/a2d-small.png&quot;/&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source> <source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;img src=&quot;:/tags/a2d-small.png&quot;/&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.ui" line="716"/> <location filename="../src/widget.ui" line="614"/>
<source>Share</source> <source>Share</source>
<translation type="unfinished">Spk share link</translation> <translation type="unfinished">Spk share link</translation>
</message> </message>
@@ -280,103 +291,114 @@
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.ui" line="845"/> <location filename="../src/widget.ui" line="737"/>
<location filename="../src/widget.ui" line="848"/> <location filename="../src/widget.ui" line="740"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Capable to Ubuntu 22.04&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/widget.ui" line="813"/>
<location filename="../src/widget.ui" line="816"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;A deepin-wine2 app.If you are using ubuntu or other non-deepin distro,you should deploy deepin-wine2 by your self.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source> <source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;A deepin-wine2 app.If you are using ubuntu or other non-deepin distro,you should deploy deepin-wine2 by your self.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.ui" line="851"/> <location filename="../src/widget.ui" line="819"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;img src=&quot;:/tags/dwine2-small.png&quot;/&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source> <source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;img src=&quot;:/tags/dwine2-small.png&quot;/&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.ui" line="870"/> <location filename="../src/widget.ui" line="838"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;img src=&quot;:/tags/dwine5-small.png&quot;/&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source> <source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;img src=&quot;:/tags/dwine5-small.png&quot;/&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.ui" line="930"/> <location filename="../src/widget.ui" line="919"/>
<source>Info</source> <source>Total downloads</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.ui" line="937"/> <location filename="../src/widget.ui" line="937"/>
<source>Info</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/widget.ui" line="944"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;An app store developed by community enthusiasts&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source> <source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;An app store developed by community enthusiasts&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.ui" line="979"/> <location filename="../src/widget.ui" line="986"/>
<source>Screenshots</source> <source>Screenshots</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.ui" line="1142"/> <location filename="../src/widget.ui" line="1149"/>
<source>Line Settings</source> <source>Line Settings</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.ui" line="1158"/> <location filename="../src/widget.ui" line="1165"/>
<source>Choose Line:</source> <source>Choose Line:</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.ui" line="1181"/> <location filename="../src/widget.ui" line="1188"/>
<source>Refresh</source> <source>Refresh</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.ui" line="1223"/> <location filename="../src/widget.ui" line="1230"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;The role of the source server is to ensure that the software is updated, and supports the use of the apt tool to get the software. We usually prefer that you use the first line as the update source, which is generally the most stable. &lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source> <source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;The role of the source server is to ensure that the software is updated, and supports the use of the apt tool to get the software. We usually prefer that you use the first line as the update source, which is generally the most stable. &lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.ui" line="1233"/> <location filename="../src/widget.ui" line="1240"/>
<source>Update</source> <source>Update</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.ui" line="1240"/> <location filename="../src/widget.ui" line="1247"/>
<source>Source Server</source> <source>Source Server</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.ui" line="1260"/> <location filename="../src/widget.ui" line="1267"/>
<source>Server</source> <source>Server</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.ui" line="1281"/> <location filename="../src/widget.ui" line="1288"/>
<source>Temp</source> <source>Temp</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.ui" line="1304"/> <location filename="../src/widget.ui" line="1311"/>
<source>Clean</source> <source>Clean</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.ui" line="1314"/> <location filename="../src/widget.ui" line="1321"/>
<source>Since the dictionary is at /tmp,It would be cleaned automatically when system reboot.</source> <source>Since the dictionary is at /tmp,It would be cleaned automatically when system reboot.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.ui" line="1327"/> <location filename="../src/widget.ui" line="1334"/>
<source>Size:</source> <source>Size:</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.ui" line="1341"/> <location filename="../src/widget.ui" line="1348"/>
<source>Location/tmp/spark-store</source> <source>Location/tmp/spark-store</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.ui" line="1362"/> <location filename="../src/widget.ui" line="1369"/>
<source>About us</source> <source>About us</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.ui" line="1369"/> <location filename="../src/widget.ui" line="1376"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;We are &lt;span style=&quot; font-weight:600;&quot;&gt;NOT&lt;/span&gt; the official team, just like you, we are just one of the many Linux/deepin system enthusiasts and users, we develop and run the &amp;quot;Spark Store&amp;quot;! &amp;quot;, is to bring the community together to share useful software, or to participate in development together, so that we all use the latest and greatest software. &lt;/p&gt;&lt;p&gt;We don&apos;t make a profit from this, all developers and maintainers don&apos;t get paid, and we rely on the community&apos;s donations to us for most of our expenses, which we are grateful for and which allow us not to spend too much energy worrying about funding. &lt;/p&gt;&lt;p&gt;Our service and software are free for everyone to use, communicate, and learn, but you must comply with local laws and regulations in the process of your use, otherwise any problems have nothing to do with us. &lt;/p&gt;&lt;p&gt;If any part of the store infringes your rights, please tell us &amp;lt;jifengshenmo@outlook.com&amp;gt; we will remove the infringing content as soon as possible. &lt;/p&gt;&lt;p&gt;If you&apos;d like to get involved with us too, whether you&apos;re involved in development, design, pitching or submitting work, we welcome you to join us. &lt;/p&gt;&lt;p&gt;QQ group:872690351&lt;br/&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source> <source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;We are &lt;span style=&quot; font-weight:600;&quot;&gt;NOT&lt;/span&gt; the official team, just like you, we are just one of the many Linux/deepin system enthusiasts and users, we develop and run the &amp;quot;Spark Store&amp;quot;! &amp;quot;, is to bring the community together to share useful software, or to participate in development together, so that we all use the latest and greatest software. &lt;/p&gt;&lt;p&gt;We don&apos;t make a profit from this, all developers and maintainers don&apos;t get paid, and we rely on the community&apos;s donations to us for most of our expenses, which we are grateful for and which allow us not to spend too much energy worrying about funding. &lt;/p&gt;&lt;p&gt;Our service and software are free for everyone to use, communicate, and learn, but you must comply with local laws and regulations in the process of your use, otherwise any problems have nothing to do with us. &lt;/p&gt;&lt;p&gt;If any part of the store infringes your rights, please tell us &amp;lt;jifengshenmo@outlook.com&amp;gt; we will remove the infringing content as soon as possible. &lt;/p&gt;&lt;p&gt;If you&apos;d like to get involved with us too, whether you&apos;re involved in development, design, pitching or submitting work, we welcome you to join us. &lt;/p&gt;&lt;p&gt;QQ group:872690351&lt;br/&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
@@ -391,22 +413,22 @@
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.ui" line="575"/> <location filename="../src/widget.ui" line="536"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source> <source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.ui" line="912"/> <location filename="../src/widget.ui" line="880"/>
<source>Request Update</source> <source>Request Update</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.ui" line="1194"/> <location filename="../src/widget.ui" line="1201"/>
<source>Take effect when restart</source> <source>Take effect when restart</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.ui" line="1334"/> <location filename="../src/widget.ui" line="1341"/>
<source>0B</source> <source>0B</source>
<translation type="unfinished">0B</translation> <translation type="unfinished">0B</translation>
</message> </message>
@@ -431,72 +453,82 @@
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.cpp" line="340"/> <location filename="../src/widget.cpp" line="195"/>
<source>APP Upgrade and Install Settings</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/widget.cpp" line="344"/>
<source>Not Exist</source> <source>Not Exist</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.cpp" line="138"/> <location filename="../src/widget.cpp" line="138"/>
<location filename="../src/widget.cpp" line="402"/> <location filename="../src/widget.cpp" line="406"/>
<location filename="../src/widget.cpp" line="407"/> <location filename="../src/widget.cpp" line="411"/>
<location filename="../src/widget.cpp" line="417"/> <location filename="../src/widget.cpp" line="421"/>
<location filename="../src/widget.cpp" line="422"/> <location filename="../src/widget.cpp" line="426"/>
<source>Spark\ Store</source> <source>Spark\ Store</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.cpp" line="652"/> <location filename="../src/widget.cpp" line="656"/>
<location filename="../src/widget.cpp" line="891"/> <location filename="../src/widget.cpp" line="897"/>
<source>Reinstall</source> <source>Reinstall</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.cpp" line="618"/> <location filename="../src/widget.cpp" line="622"/>
<source>Failed to get the name to the file to be downloaded.</source> <source>Failed to get the name to the file to be downloaded.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.cpp" line="896"/> <location filename="../src/widget.cpp" line="887"/>
<source>Total downloads: %1</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/widget.cpp" line="902"/>
<source>Upgrade</source> <source>Upgrade</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.cpp" line="1079"/> <location filename="../src/widget.cpp" line="1085"/>
<source>Updating, please wait...</source> <source>Updating, please wait...</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.cpp" line="1140"/> <location filename="../src/widget.cpp" line="1146"/>
<source>Apt has reported an error. Please use apt update in terminal to locate the problem.</source> <source>Apt has reported an error. Please use apt update in terminal to locate the problem.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.cpp" line="1147"/> <location filename="../src/widget.cpp" line="1153"/>
<source>Unknown error!</source> <source>Unknown error!</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.cpp" line="1175"/> <location filename="../src/widget.cpp" line="1181"/>
<source>Uninstall succeeded</source> <source>Uninstall succeeded</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.cpp" line="702"/> <location filename="../src/widget.cpp" line="706"/>
<source>Relative apps Not Found!</source> <source>Relative apps Not Found!</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.cpp" line="711"/> <location filename="../src/widget.cpp" line="715"/>
<source>Request Error: %1</source> <source>Request Error: %1</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.cpp" line="1197"/> <location filename="../src/widget.cpp" line="1203"/>
<source>Temporary cache was cleaned</source> <source>Temporary cache was cleaned</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.cpp" line="1279"/> <location filename="../src/widget.cpp" line="1285"/>
<source>The URL has been copied to the clipboard</source> <source>The URL has been copied to the clipboard</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
@@ -559,52 +591,52 @@
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/downloadlist.cpp" line="69"/> <location filename="../src/downloadlist.cpp" line="74"/>
<source>Downloaded, waiting to install</source> <source>Downloaded. Open APP Upgrade and Install Settings to enable password-free installation</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/downloadlist.cpp" line="95"/> <location filename="../src/downloadlist.cpp" line="100"/>
<source>Failed to download %1</source> <source>Failed to download %1</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/downloadlist.cpp" line="97"/> <location filename="../src/downloadlist.cpp" line="102"/>
<source>Download FailedCheck Your Connection</source> <source>Download FailedCheck Your Connection</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/downloadlist.cpp" line="109"/> <location filename="../src/downloadlist.cpp" line="114"/>
<source>Finished downloading %1, awaiting to install</source> <source>Finished downloading %1, awaiting to install</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/downloadlist.cpp" line="142"/> <location filename="../src/downloadlist.cpp" line="147"/>
<source>Installing</source> <source>Installing</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/downloadlist.cpp" line="185"/> <location filename="../src/downloadlist.cpp" line="190"/>
<source>Finish</source> <source>Finish</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/downloadlist.cpp" line="191"/> <location filename="../src/downloadlist.cpp" line="196"/>
<source>Retry</source> <source>Retry</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/downloadlist.cpp" line="192"/> <location filename="../src/downloadlist.cpp" line="197"/>
<source>Error happened in dpkg progress , you can try it again</source> <source>Error happened in dpkg progress , you can try it again</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/downloadlist.cpp" line="198"/> <location filename="../src/downloadlist.cpp" line="203"/>
<source>dpkg progress had been abortedyou can retry installation</source> <source>dpkg progress had been abortedyou can retry installation</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/downloadlist.cpp" line="220"/> <location filename="../src/downloadlist.cpp" line="225"/>
<source>Download canceled</source> <source>Download canceled</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>

View File

@@ -23,7 +23,9 @@ Spark Store est publié sous licence GPL V3
Nous sommes nés pour le changement.</translation> Nous sommes nés pour le changement.</translation>
</message> </message>
<message> <message>
<location filename="../src/main.cpp" line="40"/> <location filename="../src/main.cpp" line="35"/>
<location filename="../src/main.cpp" line="43"/>
<location filename="../src/main.cpp" line="49"/>
<source>Spark Store</source> <source>Spark Store</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
@@ -31,7 +33,22 @@ Nous sommes nés pour le changement.</translation>
<context> <context>
<name>QObject</name> <name>QObject</name>
<message> <message>
<location filename="../src/main.cpp" line="48"/> <location filename="../src/main.cpp" line="32"/>
<source>We publish this program under GPL V3</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/main.cpp" line="37"/>
<source>&lt;span style=&apos; font-size:10pt;font-weight:60;&apos;&gt;An appstore powered by community&lt;/span&gt;&lt;br/&gt;&lt;a href=&apos;https://www.spark-app.store/&apos;&gt;https://www.spark-app.store&lt;/a&gt;&lt;br/&gt;&lt;span style=&apos; font-size:12pt;&apos;&gt;Spark developers&lt;/span&gt;</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/main.cpp" line="45"/>
<source>The Spark Project</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/main.cpp" line="57"/>
<source>&lt;span style=&apos;font-size:10pt;font-weight:60;&apos;&gt;An appstore powered by deepin community&lt;/span&gt;&lt;br/&gt;&lt;a href=&apos;https://www.spark-app.store/&apos;&gt;https://www.spark-app.store&lt;/a&gt;&lt;br/&gt;&lt;span style=&apos;font-size:12pt;&apos;&gt;Spark developers&lt;/span&gt;&lt;br/&gt;&lt;br/&gt;Published under GPL V3</source> <source>&lt;span style=&apos;font-size:10pt;font-weight:60;&apos;&gt;An appstore powered by deepin community&lt;/span&gt;&lt;br/&gt;&lt;a href=&apos;https://www.spark-app.store/&apos;&gt;https://www.spark-app.store&lt;/a&gt;&lt;br/&gt;&lt;span style=&apos;font-size:12pt;&apos;&gt;Spark developers&lt;/span&gt;&lt;br/&gt;&lt;br/&gt;Published under GPL V3</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
@@ -39,47 +56,47 @@ Nous sommes nés pour le changement.</translation>
<context> <context>
<name>SpkAppInfoLoaderThread</name> <name>SpkAppInfoLoaderThread</name>
<message> <message>
<location filename="../src/workerthreads.cpp" line="167"/> <location filename="../src/workerthreads.cpp" line="174"/>
<source>Failed to download app info. Please check internet connection.</source> <source>Failed to download app info. Please check internet connection.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/workerthreads.cpp" line="48"/> <location filename="../src/workerthreads.cpp" line="55"/>
<source>PkgName: </source> <source>PkgName: </source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/workerthreads.cpp" line="49"/> <location filename="../src/workerthreads.cpp" line="56"/>
<source>Version: </source> <source>Version: </source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/workerthreads.cpp" line="52"/> <location filename="../src/workerthreads.cpp" line="59"/>
<source>Author: </source> <source>Author: </source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/workerthreads.cpp" line="57"/> <location filename="../src/workerthreads.cpp" line="64"/>
<source>Official Site: </source> <source>Official Site: </source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/workerthreads.cpp" line="61"/> <location filename="../src/workerthreads.cpp" line="68"/>
<source>Contributor: </source> <source>Contributor: </source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/workerthreads.cpp" line="62"/> <location filename="../src/workerthreads.cpp" line="69"/>
<source>Update Time: </source> <source>Update Time: </source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/workerthreads.cpp" line="63"/> <location filename="../src/workerthreads.cpp" line="70"/>
<source>Installed Size: </source> <source>Installed Size: </source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/workerthreads.cpp" line="123"/> <location filename="../src/workerthreads.cpp" line="130"/>
<source>Failed to load application icon.</source> <source>Failed to load application icon.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
@@ -187,217 +204,222 @@ Nous sommes nés pour le changement.</translation>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.ui" line="547"/> <location filename="../src/widget.ui" line="584"/>
<location filename="../src/widget.cpp" line="902"/> <location filename="../src/widget.cpp" line="908"/>
<location filename="../src/widget.cpp" line="1171"/> <location filename="../src/widget.cpp" line="1177"/>
<source>Install</source> <source>Install</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.ui" line="560"/> <location filename="../src/widget.ui" line="681"/>
<source>Name</source> <source>Name</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.ui" line="606"/> <location filename="../src/widget.ui" line="636"/>
<source>ICON</source> <source>ICON</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.ui" line="661"/> <location filename="../src/widget.ui" line="591"/>
<source>Uninstall</source> <source>Uninstall</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.ui" line="677"/> <location filename="../src/widget.ui" line="577"/>
<source>Site</source> <source>Site</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.ui" line="716"/> <location filename="../src/widget.ui" line="614"/>
<source>Share</source> <source>Share</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.ui" line="750"/> <location filename="../src/widget.ui" line="718"/>
<location filename="../src/widget.ui" line="753"/> <location filename="../src/widget.ui" line="721"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;This app is developed by community user,we give this tag to honor those who contribute to the Linux Ecology&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source> <source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;This app is developed by community user,we give this tag to honor those who contribute to the Linux Ecology&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.ui" line="756"/> <location filename="../src/widget.ui" line="724"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;img src=&quot;:/tags/community-small.png&quot;/&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source> <source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;img src=&quot;:/tags/community-small.png&quot;/&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.ui" line="769"/> <location filename="../src/widget.ui" line="737"/>
<location filename="../src/widget.ui" line="772"/> <location filename="../src/widget.ui" line="740"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Capable to Ubuntu 20.04&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source> <source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Capable to Ubuntu 22.04&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.ui" line="775"/> <location filename="../src/widget.ui" line="743"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;img src=&quot;:/tags/ubuntu-small.png&quot;/&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source> <source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;img src=&quot;:/tags/ubuntu-small.png&quot;/&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.ui" line="788"/> <location filename="../src/widget.ui" line="756"/>
<location filename="../src/widget.ui" line="791"/> <location filename="../src/widget.ui" line="759"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Capable to deepin 20&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source> <source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Capable to deepin 20&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.ui" line="794"/> <location filename="../src/widget.ui" line="762"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;img src=&quot;:/tags/deepin-small.png&quot;/&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source> <source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;img src=&quot;:/tags/deepin-small.png&quot;/&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.ui" line="807"/> <location filename="../src/widget.ui" line="775"/>
<location filename="../src/widget.ui" line="810"/> <location filename="../src/widget.ui" line="778"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Capable to UOS home 20&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source> <source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Capable to UOS home 20&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.ui" line="813"/> <location filename="../src/widget.ui" line="781"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;img src=&quot;:/tags/uos-small.png&quot;/&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source> <source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;img src=&quot;:/tags/uos-small.png&quot;/&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.ui" line="826"/> <location filename="../src/widget.ui" line="794"/>
<location filename="../src/widget.ui" line="829"/> <location filename="../src/widget.ui" line="797"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;This is a DTK5 app,which means it would have better effect on Deepin Desktop Environment&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source> <source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;This is a DTK5 app,which means it would have better effect on Deepin Desktop Environment&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.ui" line="832"/> <location filename="../src/widget.ui" line="800"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;img src=&quot;:/tags/dtk-small.png&quot;/&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source> <source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;img src=&quot;:/tags/dtk-small.png&quot;/&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.ui" line="845"/> <location filename="../src/widget.ui" line="813"/>
<location filename="../src/widget.ui" line="848"/> <location filename="../src/widget.ui" line="816"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;A deepin-wine2 app.If you are using ubuntu or other non-deepin distro,you should deploy deepin-wine2 by your self.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source> <source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;A deepin-wine2 app.If you are using ubuntu or other non-deepin distro,you should deploy deepin-wine2 by your self.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.ui" line="851"/> <location filename="../src/widget.ui" line="819"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;img src=&quot;:/tags/dwine2-small.png&quot;/&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source> <source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;img src=&quot;:/tags/dwine2-small.png&quot;/&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.ui" line="864"/> <location filename="../src/widget.ui" line="832"/>
<location filename="../src/widget.ui" line="867"/> <location filename="../src/widget.ui" line="835"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;A deepin-wine5 app.If you are using ubuntu or other non-deepin distro,you should deploy deepin-wine5 by your self.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source> <source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;A deepin-wine5 app.If you are using ubuntu or other non-deepin distro,you should deploy deepin-wine5 by your self.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.ui" line="870"/> <location filename="../src/widget.ui" line="838"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;img src=&quot;:/tags/dwine5-small.png&quot;/&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source> <source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;img src=&quot;:/tags/dwine5-small.png&quot;/&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.ui" line="883"/> <location filename="../src/widget.ui" line="851"/>
<location filename="../src/widget.ui" line="886"/> <location filename="../src/widget.ui" line="854"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;An Appimage to deb app.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source> <source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;An Appimage to deb app.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.ui" line="889"/> <location filename="../src/widget.ui" line="857"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;img src=&quot;:/tags/a2d-small.png&quot;/&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source> <source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;img src=&quot;:/tags/a2d-small.png&quot;/&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.ui" line="912"/> <location filename="../src/widget.ui" line="880"/>
<source>Request Update</source> <source>Request Update</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.ui" line="930"/> <location filename="../src/widget.ui" line="919"/>
<source>Info</source> <source>Total downloads</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.ui" line="937"/> <location filename="../src/widget.ui" line="937"/>
<source>Info</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/widget.ui" line="944"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;An app store developed by community enthusiasts&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source> <source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;An app store developed by community enthusiasts&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.ui" line="979"/> <location filename="../src/widget.ui" line="986"/>
<source>Screenshots</source> <source>Screenshots</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.ui" line="1142"/> <location filename="../src/widget.ui" line="1149"/>
<source>Line Settings</source> <source>Line Settings</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.ui" line="1158"/> <location filename="../src/widget.ui" line="1165"/>
<source>Choose Line:</source> <source>Choose Line:</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.ui" line="1181"/> <location filename="../src/widget.ui" line="1188"/>
<source>Refresh</source> <source>Refresh</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.ui" line="1194"/> <location filename="../src/widget.ui" line="1201"/>
<source>Take effect when restart</source> <source>Take effect when restart</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.ui" line="1223"/> <location filename="../src/widget.ui" line="1230"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;The role of the source server is to ensure that the software is updated, and supports the use of the apt tool to get the software. We usually prefer that you use the first line as the update source, which is generally the most stable. &lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source> <source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;The role of the source server is to ensure that the software is updated, and supports the use of the apt tool to get the software. We usually prefer that you use the first line as the update source, which is generally the most stable. &lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.ui" line="1233"/> <location filename="../src/widget.ui" line="1240"/>
<source>Update</source> <source>Update</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.ui" line="1240"/> <location filename="../src/widget.ui" line="1247"/>
<source>Source Server</source> <source>Source Server</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.ui" line="1260"/> <location filename="../src/widget.ui" line="1267"/>
<source>Server</source> <source>Server</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.ui" line="1281"/> <location filename="../src/widget.ui" line="1288"/>
<source>Temp</source> <source>Temp</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.ui" line="1304"/> <location filename="../src/widget.ui" line="1311"/>
<source>Clean</source> <source>Clean</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.ui" line="1314"/> <location filename="../src/widget.ui" line="1321"/>
<source>Since the dictionary is at /tmp,It would be cleaned automatically when system reboot.</source> <source>Since the dictionary is at /tmp,It would be cleaned automatically when system reboot.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.ui" line="1327"/> <location filename="../src/widget.ui" line="1334"/>
<source>Size:</source> <source>Size:</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.ui" line="1341"/> <location filename="../src/widget.ui" line="1348"/>
<source>Location/tmp/spark-store</source> <source>Location/tmp/spark-store</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.ui" line="1362"/> <location filename="../src/widget.ui" line="1369"/>
<source>About us</source> <source>About us</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.ui" line="1369"/> <location filename="../src/widget.ui" line="1376"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;We are &lt;span style=&quot; font-weight:600;&quot;&gt;NOT&lt;/span&gt; the official team, just like you, we are just one of the many Linux/deepin system enthusiasts and users, we develop and run the &amp;quot;Spark Store&amp;quot;! &amp;quot;, is to bring the community together to share useful software, or to participate in development together, so that we all use the latest and greatest software. &lt;/p&gt;&lt;p&gt;We don&apos;t make a profit from this, all developers and maintainers don&apos;t get paid, and we rely on the community&apos;s donations to us for most of our expenses, which we are grateful for and which allow us not to spend too much energy worrying about funding. &lt;/p&gt;&lt;p&gt;Our service and software are free for everyone to use, communicate, and learn, but you must comply with local laws and regulations in the process of your use, otherwise any problems have nothing to do with us. &lt;/p&gt;&lt;p&gt;If any part of the store infringes your rights, please tell us &amp;lt;jifengshenmo@outlook.com&amp;gt; we will remove the infringing content as soon as possible. &lt;/p&gt;&lt;p&gt;If you&apos;d like to get involved with us too, whether you&apos;re involved in development, design, pitching or submitting work, we welcome you to join us. &lt;/p&gt;&lt;p&gt;QQ group:872690351&lt;br/&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source> <source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;We are &lt;span style=&quot; font-weight:600;&quot;&gt;NOT&lt;/span&gt; the official team, just like you, we are just one of the many Linux/deepin system enthusiasts and users, we develop and run the &amp;quot;Spark Store&amp;quot;! &amp;quot;, is to bring the community together to share useful software, or to participate in development together, so that we all use the latest and greatest software. &lt;/p&gt;&lt;p&gt;We don&apos;t make a profit from this, all developers and maintainers don&apos;t get paid, and we rely on the community&apos;s donations to us for most of our expenses, which we are grateful for and which allow us not to spend too much energy worrying about funding. &lt;/p&gt;&lt;p&gt;Our service and software are free for everyone to use, communicate, and learn, but you must comply with local laws and regulations in the process of your use, otherwise any problems have nothing to do with us. &lt;/p&gt;&lt;p&gt;If any part of the store infringes your rights, please tell us &amp;lt;jifengshenmo@outlook.com&amp;gt; we will remove the infringing content as soon as possible. &lt;/p&gt;&lt;p&gt;If you&apos;d like to get involved with us too, whether you&apos;re involved in development, design, pitching or submitting work, we welcome you to join us. &lt;/p&gt;&lt;p&gt;QQ group:872690351&lt;br/&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
@@ -494,7 +516,7 @@ Nous sommes nés pour le changement.</translation>
<translation type="vanished">Nom</translation> <translation type="vanished">Nom</translation>
</message> </message>
<message> <message>
<location filename="../src/widget.ui" line="575"/> <location filename="../src/widget.ui" line="536"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source> <source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
@@ -567,7 +589,7 @@ Nous sommes nés pour le changement.</translation>
<translation type="vanished">Taille: </translation> <translation type="vanished">Taille: </translation>
</message> </message>
<message> <message>
<location filename="../src/widget.ui" line="1334"/> <location filename="../src/widget.ui" line="1341"/>
<source>0B</source> <source>0B</source>
<translation type="unfinished">0B</translation> <translation type="unfinished">0B</translation>
</message> </message>
@@ -585,10 +607,10 @@ Nous sommes nés pour le changement.</translation>
</message> </message>
<message> <message>
<location filename="../src/widget.cpp" line="138"/> <location filename="../src/widget.cpp" line="138"/>
<location filename="../src/widget.cpp" line="402"/> <location filename="../src/widget.cpp" line="406"/>
<location filename="../src/widget.cpp" line="407"/> <location filename="../src/widget.cpp" line="411"/>
<location filename="../src/widget.cpp" line="417"/> <location filename="../src/widget.cpp" line="421"/>
<location filename="../src/widget.cpp" line="422"/> <location filename="../src/widget.cpp" line="426"/>
<source>Spark\ Store</source> <source>Spark\ Store</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
@@ -613,63 +635,73 @@ Nous sommes nés pour le changement.</translation>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.cpp" line="340"/> <location filename="../src/widget.cpp" line="195"/>
<source>APP Upgrade and Install Settings</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/widget.cpp" line="344"/>
<source>Not Exist</source> <source>Not Exist</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.cpp" line="652"/> <location filename="../src/widget.cpp" line="656"/>
<location filename="../src/widget.cpp" line="891"/> <location filename="../src/widget.cpp" line="897"/>
<source>Reinstall</source> <source>Reinstall</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.cpp" line="618"/> <location filename="../src/widget.cpp" line="622"/>
<source>Failed to get the name to the file to be downloaded.</source> <source>Failed to get the name to the file to be downloaded.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.cpp" line="702"/> <location filename="../src/widget.cpp" line="706"/>
<source>Relative apps Not Found!</source> <source>Relative apps Not Found!</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.cpp" line="711"/> <location filename="../src/widget.cpp" line="715"/>
<source>Request Error: %1</source> <source>Request Error: %1</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.cpp" line="896"/> <location filename="../src/widget.cpp" line="887"/>
<source>Total downloads: %1</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/widget.cpp" line="902"/>
<source>Upgrade</source> <source>Upgrade</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.cpp" line="1079"/> <location filename="../src/widget.cpp" line="1085"/>
<source>Updating, please wait...</source> <source>Updating, please wait...</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.cpp" line="1140"/> <location filename="../src/widget.cpp" line="1146"/>
<source>Apt has reported an error. Please use apt update in terminal to locate the problem.</source> <source>Apt has reported an error. Please use apt update in terminal to locate the problem.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.cpp" line="1147"/> <location filename="../src/widget.cpp" line="1153"/>
<source>Unknown error!</source> <source>Unknown error!</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.cpp" line="1175"/> <location filename="../src/widget.cpp" line="1181"/>
<source>Uninstall succeeded</source> <source>Uninstall succeeded</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.cpp" line="1197"/> <location filename="../src/widget.cpp" line="1203"/>
<source>Temporary cache was cleaned</source> <source>Temporary cache was cleaned</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.cpp" line="1279"/> <location filename="../src/widget.cpp" line="1285"/>
<source>The URL has been copied to the clipboard</source> <source>The URL has been copied to the clipboard</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
@@ -753,52 +785,52 @@ Nous sommes nés pour le changement.</translation>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/downloadlist.cpp" line="69"/> <location filename="../src/downloadlist.cpp" line="74"/>
<source>Downloaded, waiting to install</source> <source>Downloaded. Open APP Upgrade and Install Settings to enable password-free installation</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/downloadlist.cpp" line="95"/> <location filename="../src/downloadlist.cpp" line="100"/>
<source>Failed to download %1</source> <source>Failed to download %1</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/downloadlist.cpp" line="97"/> <location filename="../src/downloadlist.cpp" line="102"/>
<source>Download FailedCheck Your Connection</source> <source>Download FailedCheck Your Connection</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/downloadlist.cpp" line="109"/> <location filename="../src/downloadlist.cpp" line="114"/>
<source>Finished downloading %1, awaiting to install</source> <source>Finished downloading %1, awaiting to install</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/downloadlist.cpp" line="142"/> <location filename="../src/downloadlist.cpp" line="147"/>
<source>Installing</source> <source>Installing</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/downloadlist.cpp" line="185"/> <location filename="../src/downloadlist.cpp" line="190"/>
<source>Finish</source> <source>Finish</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/downloadlist.cpp" line="191"/> <location filename="../src/downloadlist.cpp" line="196"/>
<source>Retry</source> <source>Retry</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/downloadlist.cpp" line="192"/> <location filename="../src/downloadlist.cpp" line="197"/>
<source>Error happened in dpkg progress , you can try it again</source> <source>Error happened in dpkg progress , you can try it again</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/downloadlist.cpp" line="198"/> <location filename="../src/downloadlist.cpp" line="203"/>
<source>dpkg progress had been abortedyou can retry installation</source> <source>dpkg progress had been abortedyou can retry installation</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/downloadlist.cpp" line="220"/> <location filename="../src/downloadlist.cpp" line="225"/>
<source>Download canceled</source> <source>Download canceled</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>

View File

@@ -12,7 +12,9 @@
<context> <context>
<name>QLabel</name> <name>QLabel</name>
<message> <message>
<location filename="../src/main.cpp" line="40"/> <location filename="../src/main.cpp" line="35"/>
<location filename="../src/main.cpp" line="43"/>
<location filename="../src/main.cpp" line="49"/>
<source>Spark Store</source> <source>Spark Store</source>
<translation>Spark </translation> <translation>Spark </translation>
</message> </message>
@@ -20,8 +22,14 @@
<context> <context>
<name>QObject</name> <name>QObject</name>
<message> <message>
<location filename="../src/main.cpp" line="32"/>
<source>We publish this program under GPL V3</source> <source>We publish this program under GPL V3</source>
<translation type="vanished">GPL V3开源</translation> <translation>GPL V3开源</translation>
</message>
<message>
<location filename="../src/main.cpp" line="37"/>
<source>&lt;span style=&apos; font-size:10pt;font-weight:60;&apos;&gt;An appstore powered by community&lt;/span&gt;&lt;br/&gt;&lt;a href=&apos;https://www.spark-app.store/&apos;&gt;https://www.spark-app.store&lt;/a&gt;&lt;br/&gt;&lt;span style=&apos; font-size:12pt;&apos;&gt;Spark developers&lt;/span&gt;</source>
<translation>&lt;span style=&apos; font-size:10pt;font-weight:60;&apos;&gt;&lt;/span&gt;&lt;br/&gt;&lt;a href=&apos;https://www.spark-app.store/&apos;&gt;https://www.spark-app.store&lt;/a&gt;&lt;br/&gt;&lt;span style=&apos; font-size:12pt;&apos;&gt;星火计划开发者&lt;/span&gt;</translation>
</message> </message>
<message> <message>
<source>Version 2.0+2</source> <source>Version 2.0+2</source>
@@ -32,15 +40,16 @@
<translation type="vanished">&lt;span style=&apos; font-size:10pt;font-weight:60;&apos;&gt;deepin &lt;/span&gt;&lt;br/&gt;&lt;a href=&apos;https://www.spark-app.store/&apos;&gt;https://www.spark-app.store&lt;/a&gt;&lt;br/&gt;&lt;span style=&apos; font-size:12pt;&apos;&gt;Spark developers&lt;/span&gt;</translation> <translation type="vanished">&lt;span style=&apos; font-size:10pt;font-weight:60;&apos;&gt;deepin &lt;/span&gt;&lt;br/&gt;&lt;a href=&apos;https://www.spark-app.store/&apos;&gt;https://www.spark-app.store&lt;/a&gt;&lt;br/&gt;&lt;span style=&apos; font-size:12pt;&apos;&gt;Spark developers&lt;/span&gt;</translation>
</message> </message>
<message> <message>
<location filename="../src/main.cpp" line="45"/>
<source>The Spark Project</source> <source>The Spark Project</source>
<translation type="vanished"></translation> <translation> The Spark Project</translation>
</message> </message>
<message> <message>
<source>&lt;span style=&apos; font-size:10pt;font-weight:60;&apos;&gt;An appstore powered by deepin community&lt;/span&gt;&lt;br/&gt;&lt;a href=&apos;https://www.spark-app.store/&apos;&gt;https://www.spark-app.store&lt;/a&gt;&lt;br/&gt;&lt;span style=&apos; font-size:12pt;&apos;&gt;Spark developers&lt;/span&gt;&lt;br/&gt;We publish this program under GPL V3</source> <source>&lt;span style=&apos; font-size:10pt;font-weight:60;&apos;&gt;An appstore powered by deepin community&lt;/span&gt;&lt;br/&gt;&lt;a href=&apos;https://www.spark-app.store/&apos;&gt;https://www.spark-app.store&lt;/a&gt;&lt;br/&gt;&lt;span style=&apos; font-size:12pt;&apos;&gt;Spark developers&lt;/span&gt;&lt;br/&gt;We publish this program under GPL V3</source>
<translation type="vanished">&lt;span style=&apos; font-size:10pt;font-weight:60;&apos;&gt; &lt;/span&gt;&lt;br/&gt;&quot;&quot;&lt;a href=&apos;https://www.spark-app.store/&apos;&gt;https://www.spark-app.store&lt;/a&gt;&lt;br/&gt;&quot;&quot;&lt;span style=&apos; font-size:12pt;&apos;&gt;星火开发者联盟&lt;/span&gt;&lt;br/&gt;本程序遵循 GPL V3 协议发布</translation> <translation type="vanished">&lt;span style=&apos; font-size:10pt;font-weight:60;&apos;&gt; &lt;/span&gt;&lt;br/&gt;&quot;&quot;&lt;a href=&apos;https://www.spark-app.store/&apos;&gt;https://www.spark-app.store&lt;/a&gt;&lt;br/&gt;&quot;&quot;&lt;span style=&apos; font-size:12pt;&apos;&gt;星火开发者联盟&lt;/span&gt;&lt;br/&gt;本程序遵循 GPL V3 协议发布</translation>
</message> </message>
<message> <message>
<location filename="../src/main.cpp" line="48"/> <location filename="../src/main.cpp" line="57"/>
<source>&lt;span style=&apos;font-size:10pt;font-weight:60;&apos;&gt;An appstore powered by deepin community&lt;/span&gt;&lt;br/&gt;&lt;a href=&apos;https://www.spark-app.store/&apos;&gt;https://www.spark-app.store&lt;/a&gt;&lt;br/&gt;&lt;span style=&apos;font-size:12pt;&apos;&gt;Spark developers&lt;/span&gt;&lt;br/&gt;&lt;br/&gt;Published under GPL V3</source> <source>&lt;span style=&apos;font-size:10pt;font-weight:60;&apos;&gt;An appstore powered by deepin community&lt;/span&gt;&lt;br/&gt;&lt;a href=&apos;https://www.spark-app.store/&apos;&gt;https://www.spark-app.store&lt;/a&gt;&lt;br/&gt;&lt;span style=&apos;font-size:12pt;&apos;&gt;Spark developers&lt;/span&gt;&lt;br/&gt;&lt;br/&gt;Published under GPL V3</source>
<translation>&lt;span style=&apos;font-size:10pt;font-weight:60;&apos;&gt; Deepin &lt;/span&gt;&lt;br/&gt;&lt;a href=&apos;https://www.spark-app.store/&apos;&gt;https://www.spark-app.store&lt;/a&gt;&lt;br/&gt;&lt;span style=&apos;font-size:12pt;&apos;&gt;星火商店开发组&lt;/span&gt;&lt;br/&gt;&lt;br/&gt;遵循 GPL V3 协议发布</translation> <translation>&lt;span style=&apos;font-size:10pt;font-weight:60;&apos;&gt; Deepin &lt;/span&gt;&lt;br/&gt;&lt;a href=&apos;https://www.spark-app.store/&apos;&gt;https://www.spark-app.store&lt;/a&gt;&lt;br/&gt;&lt;span style=&apos;font-size:12pt;&apos;&gt;星火商店开发组&lt;/span&gt;&lt;br/&gt;&lt;br/&gt;遵循 GPL V3 协议发布</translation>
</message> </message>
@@ -48,47 +57,47 @@
<context> <context>
<name>SpkAppInfoLoaderThread</name> <name>SpkAppInfoLoaderThread</name>
<message> <message>
<location filename="../src/workerthreads.cpp" line="167"/> <location filename="../src/workerthreads.cpp" line="174"/>
<source>Failed to download app info. Please check internet connection.</source> <source>Failed to download app info. Please check internet connection.</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../src/workerthreads.cpp" line="48"/> <location filename="../src/workerthreads.cpp" line="55"/>
<source>PkgName: </source> <source>PkgName: </source>
<translation> </translation> <translation> </translation>
</message> </message>
<message> <message>
<location filename="../src/workerthreads.cpp" line="49"/> <location filename="../src/workerthreads.cpp" line="56"/>
<source>Version: </source> <source>Version: </source>
<translation> </translation> <translation> </translation>
</message> </message>
<message> <message>
<location filename="../src/workerthreads.cpp" line="52"/> <location filename="../src/workerthreads.cpp" line="59"/>
<source>Author: </source> <source>Author: </source>
<translation> </translation> <translation> </translation>
</message> </message>
<message> <message>
<location filename="../src/workerthreads.cpp" line="57"/> <location filename="../src/workerthreads.cpp" line="64"/>
<source>Official Site: </source> <source>Official Site: </source>
<translation> </translation> <translation> </translation>
</message> </message>
<message> <message>
<location filename="../src/workerthreads.cpp" line="61"/> <location filename="../src/workerthreads.cpp" line="68"/>
<source>Contributor: </source> <source>Contributor: </source>
<translation>稿 </translation> <translation>稿 </translation>
</message> </message>
<message> <message>
<location filename="../src/workerthreads.cpp" line="62"/> <location filename="../src/workerthreads.cpp" line="69"/>
<source>Update Time: </source> <source>Update Time: </source>
<translation> </translation> <translation> </translation>
</message> </message>
<message> <message>
<location filename="../src/workerthreads.cpp" line="63"/> <location filename="../src/workerthreads.cpp" line="70"/>
<source>Installed Size: </source> <source>Installed Size: </source>
<translation> </translation> <translation> </translation>
</message> </message>
<message> <message>
<location filename="../src/workerthreads.cpp" line="123"/> <location filename="../src/workerthreads.cpp" line="130"/>
<source>Failed to load application icon.</source> <source>Failed to load application icon.</source>
<translation></translation> <translation></translation>
</message> </message>
@@ -179,19 +188,19 @@
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.ui" line="560"/> <location filename="../src/widget.ui" line="681"/>
<source>Name</source> <source>Name</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.ui" line="606"/> <location filename="../src/widget.ui" line="636"/>
<source>ICON</source> <source>ICON</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.ui" line="547"/> <location filename="../src/widget.ui" line="584"/>
<location filename="../src/widget.cpp" line="902"/> <location filename="../src/widget.cpp" line="908"/>
<location filename="../src/widget.cpp" line="1171"/> <location filename="../src/widget.cpp" line="1177"/>
<source>Install</source> <source>Install</source>
<translation></translation> <translation></translation>
</message> </message>
@@ -216,79 +225,79 @@
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.ui" line="661"/> <location filename="../src/widget.ui" line="591"/>
<source>Uninstall</source> <source>Uninstall</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.ui" line="677"/> <location filename="../src/widget.ui" line="577"/>
<source>Site</source> <source>Site</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.ui" line="750"/> <location filename="../src/widget.ui" line="718"/>
<location filename="../src/widget.ui" line="753"/> <location filename="../src/widget.ui" line="721"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;This app is developed by community user,we give this tag to honor those who contribute to the Linux Ecology&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source> <source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;This app is developed by community user,we give this tag to honor those who contribute to the Linux Ecology&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
<translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Linux生态的贡献&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation> <translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Linux生态的贡献&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
</message> </message>
<message> <message>
<location filename="../src/widget.ui" line="756"/> <location filename="../src/widget.ui" line="724"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;img src=&quot;:/tags/community-small.png&quot;/&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source> <source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;img src=&quot;:/tags/community-small.png&quot;/&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.ui" line="769"/> <location filename="../src/widget.ui" line="737"/>
<location filename="../src/widget.ui" line="772"/> <location filename="../src/widget.ui" line="740"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Capable to Ubuntu 20.04&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source> <source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Capable to Ubuntu 22.04&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
<translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Ubuntu 20.04&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation> <translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Ubuntu 22.04&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
</message> </message>
<message> <message>
<location filename="../src/widget.ui" line="788"/> <location filename="../src/widget.ui" line="756"/>
<location filename="../src/widget.ui" line="791"/> <location filename="../src/widget.ui" line="759"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Capable to deepin 20&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source> <source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Capable to deepin 20&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
<translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;deepin 20&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation> <translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;deepin 20&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
</message> </message>
<message> <message>
<location filename="../src/widget.ui" line="794"/> <location filename="../src/widget.ui" line="762"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;img src=&quot;:/tags/deepin-small.png&quot;/&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source> <source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;img src=&quot;:/tags/deepin-small.png&quot;/&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.ui" line="807"/> <location filename="../src/widget.ui" line="775"/>
<location filename="../src/widget.ui" line="810"/> <location filename="../src/widget.ui" line="778"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Capable to UOS home 20&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source> <source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Capable to UOS home 20&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
<translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;UOS家庭版 20&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation> <translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;UOS家庭版 20&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
</message> </message>
<message> <message>
<location filename="../src/widget.ui" line="826"/> <location filename="../src/widget.ui" line="794"/>
<location filename="../src/widget.ui" line="829"/> <location filename="../src/widget.ui" line="797"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;This is a DTK5 app,which means it would have better effect on Deepin Desktop Environment&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source> <source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;This is a DTK5 app,which means it would have better effect on Deepin Desktop Environment&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
<translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;DTK5应用使&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation> <translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;DTK5应用使&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
</message> </message>
<message> <message>
<location filename="../src/widget.ui" line="832"/> <location filename="../src/widget.ui" line="800"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;img src=&quot;:/tags/dtk-small.png&quot;/&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source> <source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;img src=&quot;:/tags/dtk-small.png&quot;/&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.ui" line="864"/> <location filename="../src/widget.ui" line="832"/>
<location filename="../src/widget.ui" line="867"/> <location filename="../src/widget.ui" line="835"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;A deepin-wine5 app.If you are using ubuntu or other non-deepin distro,you should deploy deepin-wine5 by your self.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source> <source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;A deepin-wine5 app.If you are using ubuntu or other non-deepin distro,you should deploy deepin-wine5 by your self.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
<translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;deepin-wine5应用使使ubuntudeepin-wine5环境&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation> <translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;deepin-wine5应用使使ubuntudeepin-wine5环境&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
</message> </message>
<message> <message>
<location filename="../src/widget.ui" line="883"/> <location filename="../src/widget.ui" line="851"/>
<location filename="../src/widget.ui" line="886"/> <location filename="../src/widget.ui" line="854"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;An Appimage to deb app.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source> <source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;An Appimage to deb app.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
<translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Appimage转制应用.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation> <translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Appimage转制应用.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
</message> </message>
<message> <message>
<location filename="../src/widget.ui" line="889"/> <location filename="../src/widget.ui" line="857"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;img src=&quot;:/tags/a2d-small.png&quot;/&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source> <source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;img src=&quot;:/tags/a2d-small.png&quot;/&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.ui" line="716"/> <location filename="../src/widget.ui" line="614"/>
<source>Share</source> <source>Share</source>
<translation>Spk分享链接</translation> <translation>Spk分享链接</translation>
</message> </message>
@@ -311,18 +320,18 @@
<translation type="vanished"></translation> <translation type="vanished"></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.ui" line="845"/> <location filename="../src/widget.ui" line="813"/>
<location filename="../src/widget.ui" line="848"/> <location filename="../src/widget.ui" line="816"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;A deepin-wine2 app.If you are using ubuntu or other non-deepin distro,you should deploy deepin-wine2 by your self.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source> <source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;A deepin-wine2 app.If you are using ubuntu or other non-deepin distro,you should deploy deepin-wine2 by your self.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
<translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt; deepin-wine2 使使ubuntu deepin-wine2 &lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation> <translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt; deepin-wine2 使使ubuntu deepin-wine2 &lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
</message> </message>
<message> <message>
<location filename="../src/widget.ui" line="851"/> <location filename="../src/widget.ui" line="819"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;img src=&quot;:/tags/dwine2-small.png&quot;/&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source> <source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;img src=&quot;:/tags/dwine2-small.png&quot;/&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.ui" line="870"/> <location filename="../src/widget.ui" line="838"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;img src=&quot;:/tags/dwine5-small.png&quot;/&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source> <source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;img src=&quot;:/tags/dwine5-small.png&quot;/&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
<translation></translation> <translation></translation>
</message> </message>
@@ -331,32 +340,32 @@
<translation type="vanished">/</translation> <translation type="vanished">/</translation>
</message> </message>
<message> <message>
<location filename="../src/widget.ui" line="930"/> <location filename="../src/widget.ui" line="937"/>
<source>Info</source> <source>Info</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.ui" line="937"/> <location filename="../src/widget.ui" line="944"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;An app store developed by community enthusiasts&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source> <source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;An app store developed by community enthusiasts&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
<translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation> <translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
</message> </message>
<message> <message>
<location filename="../src/widget.ui" line="979"/> <location filename="../src/widget.ui" line="986"/>
<source>Screenshots</source> <source>Screenshots</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.ui" line="1142"/> <location filename="../src/widget.ui" line="1149"/>
<source>Line Settings</source> <source>Line Settings</source>
<translation>线</translation> <translation>线</translation>
</message> </message>
<message> <message>
<location filename="../src/widget.ui" line="1158"/> <location filename="../src/widget.ui" line="1165"/>
<source>Choose Line:</source> <source>Choose Line:</source>
<translation>线</translation> <translation>线</translation>
</message> </message>
<message> <message>
<location filename="../src/widget.ui" line="1181"/> <location filename="../src/widget.ui" line="1188"/>
<source>Refresh</source> <source>Refresh</source>
<translation></translation> <translation></translation>
</message> </message>
@@ -365,57 +374,57 @@
<translation type="vanished"></translation> <translation type="vanished"></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.ui" line="1223"/> <location filename="../src/widget.ui" line="1230"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;The role of the source server is to ensure that the software is updated, and supports the use of the apt tool to get the software. We usually prefer that you use the first line as the update source, which is generally the most stable. &lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source> <source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;The role of the source server is to ensure that the software is updated, and supports the use of the apt tool to get the software. We usually prefer that you use the first line as the update source, which is generally the most stable. &lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
<translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;使apt工具获取软件使线&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation> <translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;使apt工具获取软件使线&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
</message> </message>
<message> <message>
<location filename="../src/widget.ui" line="1233"/> <location filename="../src/widget.ui" line="1240"/>
<source>Update</source> <source>Update</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.ui" line="1240"/> <location filename="../src/widget.ui" line="1247"/>
<source>Source Server</source> <source>Source Server</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.ui" line="1260"/> <location filename="../src/widget.ui" line="1267"/>
<source>Server</source> <source>Server</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.ui" line="1281"/> <location filename="../src/widget.ui" line="1288"/>
<source>Temp</source> <source>Temp</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.ui" line="1304"/> <location filename="../src/widget.ui" line="1311"/>
<source>Clean</source> <source>Clean</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.ui" line="1314"/> <location filename="../src/widget.ui" line="1321"/>
<source>Since the dictionary is at /tmp,It would be cleaned automatically when system reboot.</source> <source>Since the dictionary is at /tmp,It would be cleaned automatically when system reboot.</source>
<translation>/tmp下使</translation> <translation>/tmp下使</translation>
</message> </message>
<message> <message>
<location filename="../src/widget.ui" line="1327"/> <location filename="../src/widget.ui" line="1334"/>
<source>Size:</source> <source>Size:</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.ui" line="1341"/> <location filename="../src/widget.ui" line="1348"/>
<source>Location/tmp/spark-store</source> <source>Location/tmp/spark-store</source>
<translation>/tmp/spark-store</translation> <translation>/tmp/spark-store</translation>
</message> </message>
<message> <message>
<location filename="../src/widget.ui" line="1362"/> <location filename="../src/widget.ui" line="1369"/>
<source>About us</source> <source>About us</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.ui" line="1369"/> <location filename="../src/widget.ui" line="1376"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;We are &lt;span style=&quot; font-weight:600;&quot;&gt;NOT&lt;/span&gt; the official team, just like you, we are just one of the many Linux/deepin system enthusiasts and users, we develop and run the &amp;quot;Spark Store&amp;quot;! &amp;quot;, is to bring the community together to share useful software, or to participate in development together, so that we all use the latest and greatest software. &lt;/p&gt;&lt;p&gt;We don&apos;t make a profit from this, all developers and maintainers don&apos;t get paid, and we rely on the community&apos;s donations to us for most of our expenses, which we are grateful for and which allow us not to spend too much energy worrying about funding. &lt;/p&gt;&lt;p&gt;Our service and software are free for everyone to use, communicate, and learn, but you must comply with local laws and regulations in the process of your use, otherwise any problems have nothing to do with us. &lt;/p&gt;&lt;p&gt;If any part of the store infringes your rights, please tell us &amp;lt;jifengshenmo@outlook.com&amp;gt; we will remove the infringing content as soon as possible. &lt;/p&gt;&lt;p&gt;If you&apos;d like to get involved with us too, whether you&apos;re involved in development, design, pitching or submitting work, we welcome you to join us. &lt;/p&gt;&lt;p&gt;QQ group:872690351&lt;br/&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source> <source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;We are &lt;span style=&quot; font-weight:600;&quot;&gt;NOT&lt;/span&gt; the official team, just like you, we are just one of the many Linux/deepin system enthusiasts and users, we develop and run the &amp;quot;Spark Store&amp;quot;! &amp;quot;, is to bring the community together to share useful software, or to participate in development together, so that we all use the latest and greatest software. &lt;/p&gt;&lt;p&gt;We don&apos;t make a profit from this, all developers and maintainers don&apos;t get paid, and we rely on the community&apos;s donations to us for most of our expenses, which we are grateful for and which allow us not to spend too much energy worrying about funding. &lt;/p&gt;&lt;p&gt;Our service and software are free for everyone to use, communicate, and learn, but you must comply with local laws and regulations in the process of your use, otherwise any problems have nothing to do with us. &lt;/p&gt;&lt;p&gt;If any part of the store infringes your rights, please tell us &amp;lt;jifengshenmo@outlook.com&amp;gt; we will remove the infringing content as soon as possible. &lt;/p&gt;&lt;p&gt;If you&apos;d like to get involved with us too, whether you&apos;re involved in development, design, pitching or submitting work, we welcome you to join us. &lt;/p&gt;&lt;p&gt;QQ group:872690351&lt;br/&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
<translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;span style=&quot; font-weight:600;&quot;&gt;&lt;/span&gt;Linux/deepinSpark&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;使使&lt;/p&gt;&lt;p&gt; &amp;lt;jifengshenmo@outlook.com&amp;gt;&lt;/p&gt;&lt;p&gt;稿&lt;/p&gt;&lt;p&gt;QQ 872690351&lt;br/&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation> <translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;span style=&quot; font-weight:600;&quot;&gt;&lt;/span&gt;Linux/deepinSpark&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;使使&lt;/p&gt;&lt;p&gt; &amp;lt;jifengshenmo@outlook.com&amp;gt;&lt;/p&gt;&lt;p&gt;稿&lt;/p&gt;&lt;p&gt;QQ 872690351&lt;br/&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
</message> </message>
@@ -445,32 +454,37 @@
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.ui" line="575"/> <location filename="../src/widget.ui" line="536"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source> <source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.ui" line="775"/> <location filename="../src/widget.ui" line="743"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;img src=&quot;:/tags/ubuntu-small.png&quot;/&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source> <source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;img src=&quot;:/tags/ubuntu-small.png&quot;/&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.ui" line="813"/> <location filename="../src/widget.ui" line="781"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;img src=&quot;:/tags/uos-small.png&quot;/&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source> <source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;img src=&quot;:/tags/uos-small.png&quot;/&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.ui" line="912"/> <location filename="../src/widget.ui" line="880"/>
<source>Request Update</source> <source>Request Update</source>
<translation type="unfinished">/</translation> <translation>/</translation>
</message> </message>
<message> <message>
<location filename="../src/widget.ui" line="1194"/> <location filename="../src/widget.ui" line="919"/>
<source>Total downloads</source>
<translation></translation>
</message>
<message>
<location filename="../src/widget.ui" line="1201"/>
<source>Take effect when restart</source> <source>Take effect when restart</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.ui" line="1334"/> <location filename="../src/widget.ui" line="1341"/>
<source>0B</source> <source>0B</source>
<translation></translation> <translation></translation>
</message> </message>
@@ -495,16 +509,26 @@
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.cpp" line="340"/> <location filename="../src/widget.cpp" line="195"/>
<source>APP Upgrade and Install Settings</source>
<translation></translation>
</message>
<message>
<location filename="../src/widget.cpp" line="344"/>
<source>Not Exist</source> <source>Not Exist</source>
<translation></translation> <translation></translation>
</message> </message>
<message>
<location filename="../src/widget.cpp" line="887"/>
<source>Total downloads: %1</source>
<translation>%1</translation>
</message>
<message> <message>
<location filename="../src/widget.cpp" line="138"/> <location filename="../src/widget.cpp" line="138"/>
<location filename="../src/widget.cpp" line="402"/> <location filename="../src/widget.cpp" line="406"/>
<location filename="../src/widget.cpp" line="407"/> <location filename="../src/widget.cpp" line="411"/>
<location filename="../src/widget.cpp" line="417"/> <location filename="../src/widget.cpp" line="421"/>
<location filename="../src/widget.cpp" line="422"/> <location filename="../src/widget.cpp" line="426"/>
<source>Spark\ Store</source> <source>Spark\ Store</source>
<translation></translation> <translation></translation>
</message> </message>
@@ -541,8 +565,8 @@
<translation type="vanished"> </translation> <translation type="vanished"> </translation>
</message> </message>
<message> <message>
<location filename="../src/widget.cpp" line="652"/> <location filename="../src/widget.cpp" line="656"/>
<location filename="../src/widget.cpp" line="891"/> <location filename="../src/widget.cpp" line="897"/>
<source>Reinstall</source> <source>Reinstall</source>
<translation></translation> <translation></translation>
</message> </message>
@@ -551,17 +575,17 @@
<translation type="vanished"></translation> <translation type="vanished"></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.cpp" line="618"/> <location filename="../src/widget.cpp" line="622"/>
<source>Failed to get the name to the file to be downloaded.</source> <source>Failed to get the name to the file to be downloaded.</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.cpp" line="702"/> <location filename="../src/widget.cpp" line="706"/>
<source>Relative apps Not Found!</source> <source>Relative apps Not Found!</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.cpp" line="711"/> <location filename="../src/widget.cpp" line="715"/>
<source>Request Error: %1</source> <source>Request Error: %1</source>
<translation>%1</translation> <translation>%1</translation>
</message> </message>
@@ -570,22 +594,22 @@
<translation type="vanished"></translation> <translation type="vanished"></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.cpp" line="896"/> <location filename="../src/widget.cpp" line="902"/>
<source>Upgrade</source> <source>Upgrade</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.cpp" line="1079"/> <location filename="../src/widget.cpp" line="1085"/>
<source>Updating, please wait...</source> <source>Updating, please wait...</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.cpp" line="1140"/> <location filename="../src/widget.cpp" line="1146"/>
<source>Apt has reported an error. Please use apt update in terminal to locate the problem.</source> <source>Apt has reported an error. Please use apt update in terminal to locate the problem.</source>
<translation>使apt update来查看错误原因</translation> <translation>使apt update来查看错误原因</translation>
</message> </message>
<message> <message>
<location filename="../src/widget.cpp" line="1147"/> <location filename="../src/widget.cpp" line="1153"/>
<source>Unknown error!</source> <source>Unknown error!</source>
<translation></translation> <translation></translation>
</message> </message>
@@ -637,17 +661,17 @@ Click yes to continue.</source>
<translation type="vanished"></translation> <translation type="vanished"></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.cpp" line="1175"/> <location filename="../src/widget.cpp" line="1181"/>
<source>Uninstall succeeded</source> <source>Uninstall succeeded</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.cpp" line="1197"/> <location filename="../src/widget.cpp" line="1203"/>
<source>Temporary cache was cleaned</source> <source>Temporary cache was cleaned</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../src/widget.cpp" line="1279"/> <location filename="../src/widget.cpp" line="1285"/>
<source>The URL has been copied to the clipboard</source> <source>The URL has been copied to the clipboard</source>
<translation></translation> <translation></translation>
</message> </message>
@@ -714,27 +738,26 @@ Click yes to continue.</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../src/downloadlist.cpp" line="69"/>
<source>Downloaded, waiting to install</source> <source>Downloaded, waiting to install</source>
<translation></translation> <translation type="vanished"></translation>
</message> </message>
<message> <message>
<location filename="../src/downloadlist.cpp" line="95"/> <location filename="../src/downloadlist.cpp" line="100"/>
<source>Failed to download %1</source> <source>Failed to download %1</source>
<translation> %1 </translation> <translation> %1 </translation>
</message> </message>
<message> <message>
<location filename="../src/downloadlist.cpp" line="97"/> <location filename="../src/downloadlist.cpp" line="102"/>
<source>Download FailedCheck Your Connection</source> <source>Download FailedCheck Your Connection</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../src/downloadlist.cpp" line="109"/> <location filename="../src/downloadlist.cpp" line="114"/>
<source>Finished downloading %1, awaiting to install</source> <source>Finished downloading %1, awaiting to install</source>
<translation>%1 </translation> <translation>%1 </translation>
</message> </message>
<message> <message>
<location filename="../src/downloadlist.cpp" line="142"/> <location filename="../src/downloadlist.cpp" line="147"/>
<source>Installing</source> <source>Installing</source>
<translation></translation> <translation></translation>
</message> </message>
@@ -743,27 +766,32 @@ Click yes to continue.</source>
<translation type="obsolete"></translation> <translation type="obsolete"></translation>
</message> </message>
<message> <message>
<location filename="../src/downloadlist.cpp" line="185"/> <location filename="../src/downloadlist.cpp" line="74"/>
<source>Downloaded. Open APP Upgrade and Install Settings to enable password-free installation</source>
<translation> </translation>
</message>
<message>
<location filename="../src/downloadlist.cpp" line="190"/>
<source>Finish</source> <source>Finish</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../src/downloadlist.cpp" line="191"/> <location filename="../src/downloadlist.cpp" line="196"/>
<source>Retry</source> <source>Retry</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../src/downloadlist.cpp" line="192"/> <location filename="../src/downloadlist.cpp" line="197"/>
<source>Error happened in dpkg progress , you can try it again</source> <source>Error happened in dpkg progress , you can try it again</source>
<translation>dpkg出现错误</translation> <translation>dpkg出现错误</translation>
</message> </message>
<message> <message>
<location filename="../src/downloadlist.cpp" line="198"/> <location filename="../src/downloadlist.cpp" line="203"/>
<source>dpkg progress had been abortedyou can retry installation</source> <source>dpkg progress had been abortedyou can retry installation</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../src/downloadlist.cpp" line="220"/> <location filename="../src/downloadlist.cpp" line="225"/>
<source>Download canceled</source> <source>Download canceled</source>
<translation></translation> <translation></translation>
</message> </message>