Compare commits
177 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 0c367799b7 | |||
| 114b5cdfe5 | |||
| a563d99bc4 | |||
| b1cb765b6e | |||
| 49c5583ea9 | |||
| b0dfd6a3da | |||
| a63c1202bd | |||
| dfe30f9d6d | |||
| b00f3fa501 | |||
| 03f35782c6 | |||
| 8f192d17ec | |||
| 0dc594b3f1 | |||
| 198384c552 | |||
| 958988d93c | |||
| 5f9599c47d | |||
| 766dc8b88a | |||
| 20d34a7369 | |||
| a0c14e7397 | |||
| f24565804d | |||
| 244176098c | |||
| ac0a38e670 | |||
| af7990e069 | |||
| f8dbca8f6f | |||
| a064b7b534 | |||
| 289f3020fe | |||
| 9cd974fed9 | |||
| 4d97a1e87b | |||
|
|
d326e8919f | ||
|
|
1828a60ff1 | ||
| 865322c85f | |||
| c22c76efc2 | |||
| 415dd1a63c | |||
|
|
7e105b59b0 | ||
| 84b3340687 | |||
| 2da576aeab | |||
| fb94448692 | |||
| 6ba7601efa | |||
| 4ea6c90e78 | |||
| f3633bb19d | |||
| 090b9a279f | |||
| 1bf8a57802 | |||
| 01f2610e0a | |||
| 3e3c3140d0 | |||
| 6ca024b6f3 | |||
| c0ea5824b1 | |||
| ee60b2e7f6 | |||
| 53ae863823 | |||
| 3dae7db89a | |||
| 3b3bf8f0de | |||
| 00f9b62b80 | |||
| 0916a0a97e | |||
|
|
c6505c1c14 | ||
| 4f600f3ec7 | |||
| bf5d0cb75f | |||
| 4ca292bd34 | |||
| 12cf0a3515 | |||
| 18279ec00d | |||
| e415798ee0 | |||
| 89740ad953 | |||
| 3eddb4ce71 | |||
| 239a788019 | |||
| dc6210b545 | |||
| 94d6a566ca | |||
| c66c5c6ca3 | |||
| c974349c9f | |||
| 42362fd0ca | |||
| 63bc01c43d | |||
| 280cd983cb | |||
| 05e95b42e0 | |||
| 2614b4ae05 | |||
| e8d55cadb6 | |||
| 3534b815cc | |||
| ef75e89916 | |||
| e4daffd052 | |||
| 9c29ca2e38 | |||
| 733751db8e | |||
| db739181f2 | |||
| 0bd87eb100 | |||
| 8b690e8dea | |||
| 9329c939d7 | |||
| 232fe777e5 | |||
| 000fcf8c9d | |||
| 30bc12a8b6 | |||
| a7385aff1e | |||
| c5b786d9e6 | |||
| 55d254e147 | |||
| cccad380a4 | |||
| afe5c00af7 | |||
| 55e7fd836c | |||
| 2959d72d1c | |||
| 95b4608e82 | |||
| edef44eea8 | |||
| a4b9bd6a17 | |||
| a165cd7d67 | |||
| 387d21b29f | |||
| 63b8ae5ae7 | |||
| 9ae4fa8372 | |||
| 1eb2f8df91 | |||
| ce1de9c367 | |||
| 80284b22cb | |||
| ad1b69493a | |||
| 7ca5e9b0d0 | |||
| 873a83e6b9 | |||
| da8ee30fbd | |||
| 6d84fa0fe5 | |||
| 41d6272526 | |||
| 0f7bdf484f | |||
| bc67bcb6f0 | |||
| 134586b580 | |||
| d645b26c62 | |||
| fdc818cdb4 | |||
| 1f493a8aca | |||
| 463a8d0c04 | |||
| 932bbd7995 | |||
| 5f45abc484 | |||
| 820ad08bf4 | |||
| 2ddfb3f192 | |||
| b3ca6878ec | |||
| ae6f2354bb | |||
| 591556a7c8 | |||
| 0bcf8a1ee9 | |||
| 15b6a22f49 | |||
| 7f1f5528ef | |||
| 158ba884b1 | |||
| d9a50e7b44 | |||
| 72019f7cce | |||
| c4b26045d9 | |||
| e14b1baaab | |||
| 0bfa7c9136 | |||
| 6d38c0bf70 | |||
| a932966795 | |||
| a63c7ec750 | |||
| ad53669098 | |||
| 69b42f2afe | |||
| c4f4465e87 | |||
| f292f954f7 | |||
| 161c9e320b | |||
| f33386ee5c | |||
|
|
61c10944c9 | ||
|
|
6db6fe6060 | ||
|
|
14506b18b2 | ||
| 44d1041087 | |||
| dd941bcf8e | |||
| 75fc22d2a2 | |||
| ee549b91f1 | |||
| 38209d0efb | |||
| b7dcca35b5 | |||
| bb39fe386b | |||
|
|
3d02922751 | ||
| e5ea3c3477 | |||
| 0b00cd2f4d | |||
| 7f6b8c1f5e | |||
|
|
3bfc183c89 | ||
| 45e1970186 | |||
| c8e8560584 | |||
| 5bdf9c69ea | |||
|
|
e48438b5a6 | ||
| 00cb5d2442 | |||
| 9a84dfffd0 | |||
| 45a2b0b8c8 | |||
| a947963fc1 | |||
| 6982a97d22 | |||
| 1ba01588f0 | |||
| 4a7f9f7500 | |||
| 47690ee666 | |||
| 3477d50689 | |||
| abf1e0df71 | |||
| 1ac033e850 | |||
| c2d9b0324a | |||
| 5727b54c3f | |||
| d796d296c0 | |||
| 31ecde133e | |||
| d6d40d2b78 | |||
| ed220702b3 | |||
|
|
bdef388b2e | ||
| a31a36dbd8 | |||
| f23809b28e |
@@ -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
|
||||||
|
|||||||
58
.gitignore
vendored
@@ -1,4 +1,54 @@
|
|||||||
*.pro.user*
|
# C++ objects and libs
|
||||||
build/
|
*.slo
|
||||||
.vscode/
|
*.lo
|
||||||
Lib/
|
*.o
|
||||||
|
*.a
|
||||||
|
*.la
|
||||||
|
*.lai
|
||||||
|
*.so
|
||||||
|
*.dll
|
||||||
|
*.dylib
|
||||||
|
|
||||||
|
# Qt-es
|
||||||
|
object_script.*.Release
|
||||||
|
object_script.*.Debug
|
||||||
|
*_plugin_import.cpp
|
||||||
|
/.qmake.cache
|
||||||
|
/.qmake.stash
|
||||||
|
*.pro.user
|
||||||
|
*.pro.user.*
|
||||||
|
*.qbs.user
|
||||||
|
*.qbs.user.*
|
||||||
|
*.moc
|
||||||
|
moc_*.cpp
|
||||||
|
moc_*.h
|
||||||
|
qrc_*.cpp
|
||||||
|
ui_*.h
|
||||||
|
*.qmlc
|
||||||
|
*.jsc
|
||||||
|
Makefile*
|
||||||
|
*build-*
|
||||||
|
|
||||||
|
# Qt unit tests
|
||||||
|
target_wrapper.*
|
||||||
|
|
||||||
|
# Qt qm files
|
||||||
|
translations/*.qm
|
||||||
|
|
||||||
|
# QtCreator
|
||||||
|
*.autosave
|
||||||
|
|
||||||
|
# QtCreator Qml
|
||||||
|
*.qmlproject.user
|
||||||
|
*.qmlproject.user.*
|
||||||
|
|
||||||
|
# QtCreator CMake
|
||||||
|
CMakeLists.txt.user*
|
||||||
|
build
|
||||||
|
|
||||||
|
# Debian dpkg-buildpackage
|
||||||
|
debian/*.debhelper*
|
||||||
|
debian/files
|
||||||
|
debian/*.substvars
|
||||||
|
debian/spark-store
|
||||||
|
|
||||||
|
|||||||
35
.workflow/master-pipeline.yml
Normal 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
328
DOCS/code-analyze.md
Normal 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
@@ -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 |
|
||||||
BIN
Logo-Spark.png
|
Before Width: | Height: | Size: 46 KiB |
|
Before Width: | Height: | Size: 43 KiB |
446
README.md
@@ -1,388 +1,58 @@
|
|||||||
# 星火应用商店
|
# Spark App Store
|
||||||
|
[](https://gitee.com/deepin-community-store/spark-store/stargazers) [](https://gitee.com/deepin-community-store/spark-store/members)
|
||||||
|
|
||||||
众所周知,国内的Linux应用比较少,wine应用难以获取,优质工具分散在民间各大论坛,无法形成合力,难以改善生态
|
Spark Store aims to collect Linux apps for the convieniece of Linux new comers
|
||||||
|
|
||||||
生态构建需要的不是某一方的单打独斗,而是人人行动起来,汇聚星火,产生燎原之势
|
The collecting process needs everyone's help
|
||||||
|
|
||||||
我们创建了这个应用商店,广泛收录大家需要的软件包,搜集优质小工具,主动适配wine应用,存放到储存库供大家获取
|
We set up this APP Store and collect APPs/tools that everyone need widely. Also we pack Windows apps with wine.
|
||||||
|
|
||||||
我们支持:Deepin 20 ; Ubuntu 20.04 LTS ; UOS Home 20
|
All packages will be shared in our repository for users to get freely.
|
||||||
|
|
||||||
希望看到这里的人也可以加入我们的队伍,开发或者投递应用都很欢迎,共同构建Linux应用生态
|
Distrobution supported:Deepin 20 ; Ubuntu 22.04 LTS / Ubuntu 20.04 LTS(May stop support in the future) ; UniontechOS Home 21
|
||||||
|
|
||||||
### [在这里投稿](https://upload.deepinos.org/index)
|
|
||||||
|
|
||||||
web页面部分正在开发当中,详情请见[web仓库](https://gitee.com/deepin-community-store/DCSAPP_WEB)
|
I hope people who see here can also join our team,development help or submit applications are welcomed
|
||||||
|
|
||||||
|
If you want to submit an APP to share with others,Please [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.
|
||||||
https://d.store.deepinos.org.cn/
|
|
||||||
https://store.deepinos.org.cn/
|
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)
|
||||||
```
|
|
||||||
|
---
|
||||||
#### 调用参数(spk规则)
|
#### Compile and developement
|
||||||
|
|
||||||
参数只有一个Url,该url应当遵循这种格式:`spk://<任意合法字符>/web分类/包名`
|
|
||||||
|
For Deepin V20/UOS 21/ Debian 11
|
||||||
例如:
|
|
||||||
|
```shell
|
||||||
[spk://abcdefg/games/store.spark-app.hmcl](spk://abcdefg/games/store.spark-app.hmcl)
|
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
|
||||||
|
|
||||||
|
```
|
||||||
可选的web分类:
|
|
||||||
|
Ubuntu 22.04
|
||||||
| 分类名称 | web分类 |
|
```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
|
||||||
| 网络应用 | network |
|
|
||||||
| 社交沟通 | chat |
|
```
|
||||||
| 音乐欣赏 | music |
|
|
||||||
| 视频播放 | video |
|
Then
|
||||||
| 图形图像 | graphics |
|
|
||||||
| 游戏娱乐 | games |
|
```shell
|
||||||
| 办公学习 | office |
|
git clone https://gitee.com/deepin-community-store/spark-store.git
|
||||||
| 阅读翻译 | reading |
|
cd spark-store
|
||||||
| 编程开发 | development |
|
dpkg-buildpackage
|
||||||
| 系统工具 | tools |
|
```
|
||||||
| 主题美化 | beautify |
|
|
||||||
| 其他应用 | others |
|
|
||||||
|
|
||||||
|
## 🚀 Coorperation
|
||||||
|
|
||||||
#### 如何编译
|
We use Gitee as our code hosting platform. Please click here to contact us.
|
||||||
|
|
||||||
Deepin V20/UOS 系统下, 安装依赖
|
https://gitee.com/deepin-community-store/spark-store
|
||||||
|
|
||||||
```shell
|
|
||||||
sudo apt install qt5-default libdtkcore-dev libdtkgui-dev libdtkwidget-dev qtwebengine5-dev libnotify-dev
|
|
||||||
```
|
|
||||||
|
|
||||||
```shell
|
|
||||||
git clone https://gitee.com/deepin-community-store/spark-store.git
|
|
||||||
cd spark-store
|
|
||||||
mkdir build && cd build
|
|
||||||
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 来读取配置,更换服务源
|
|
||||||
```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);
|
|
||||||
}
|
|
||||||
```
|
|
||||||
50
README.zh.md
Normal file
@@ -0,0 +1,50 @@
|
|||||||
|
# 星火应用商店
|
||||||
|
[](https://gitee.com/deepin-community-store/spark-store/stargazers) [](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
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
## 🚀 协作
|
||||||
|
|
||||||
|
非常感谢有兴趣的开发者或爱好者参与 `星火应用商店` 项目,分享你的见解与思路。
|
||||||
BIN
assets/fonts/Yukarimobile.ttf
Normal file
@@ -34,18 +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>../src/big_image.cpp</file>
|
|
||||||
<file>../src/big_image.h</file>
|
|
||||||
<file>../src/downloadlist.cpp</file>
|
|
||||||
<file>../src/downloadlist.h</file>
|
|
||||||
<file>../src/image_show.cpp</file>
|
|
||||||
<file>../src/image_show.h</file>
|
|
||||||
<file>../src/main.cpp</file>
|
|
||||||
<file>../src/progressload.cpp</file>
|
|
||||||
<file>../src/progressload.h</file>
|
|
||||||
<file>../src/widget.cpp</file>
|
|
||||||
<file>../src/widget.h</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>
|
||||||
@@ -62,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>
|
||||||
|
|||||||
@@ -1,125 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
||||||
<svg
|
|
||||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
|
||||||
xmlns:cc="http://creativecommons.org/ns#"
|
|
||||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
|
||||||
xmlns:svg="http://www.w3.org/2000/svg"
|
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
|
||||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
|
||||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
|
||||||
width="16px"
|
|
||||||
height="16px"
|
|
||||||
viewBox="0 0 16 16"
|
|
||||||
version="1.1"
|
|
||||||
id="svg22"
|
|
||||||
sodipodi:docname="category_active_16px_l.svg"
|
|
||||||
inkscape:version="0.92.4 (5da689c313, 2019-01-14)">
|
|
||||||
<metadata
|
|
||||||
id="metadata26">
|
|
||||||
<rdf:RDF>
|
|
||||||
<cc:Work
|
|
||||||
rdf:about="">
|
|
||||||
<dc:format>image/svg+xml</dc:format>
|
|
||||||
<dc:type
|
|
||||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
|
||||||
<dc:title>category_active_16px</dc:title>
|
|
||||||
</cc:Work>
|
|
||||||
</rdf:RDF>
|
|
||||||
</metadata>
|
|
||||||
<sodipodi:namedview
|
|
||||||
pagecolor="#ffffff"
|
|
||||||
bordercolor="#666666"
|
|
||||||
borderopacity="1"
|
|
||||||
objecttolerance="10"
|
|
||||||
gridtolerance="10"
|
|
||||||
guidetolerance="10"
|
|
||||||
inkscape:pageopacity="0"
|
|
||||||
inkscape:pageshadow="2"
|
|
||||||
inkscape:window-width="1920"
|
|
||||||
inkscape:window-height="987"
|
|
||||||
id="namedview24"
|
|
||||||
showgrid="false"
|
|
||||||
inkscape:zoom="14.75"
|
|
||||||
inkscape:cx="-4"
|
|
||||||
inkscape:cy="8"
|
|
||||||
inkscape:window-x="0"
|
|
||||||
inkscape:window-y="0"
|
|
||||||
inkscape:window-maximized="1"
|
|
||||||
inkscape:current-layer="svg22" />
|
|
||||||
<!-- Generator: Sketch 3.6.1 (26313) - http://www.bohemiancoding.com/sketch -->
|
|
||||||
<title
|
|
||||||
id="title2">category_active_16px</title>
|
|
||||||
<desc
|
|
||||||
id="desc4">Created with Sketch.</desc>
|
|
||||||
<defs
|
|
||||||
id="defs6" />
|
|
||||||
<g
|
|
||||||
id="Page-1"
|
|
||||||
stroke="none"
|
|
||||||
stroke-width="1"
|
|
||||||
fill="none"
|
|
||||||
fill-rule="evenodd"
|
|
||||||
style="fill:#000000;fill-opacity:0.94999999">
|
|
||||||
<g
|
|
||||||
id="category_active_16px"
|
|
||||||
style="fill:#000000;fill-opacity:0.94999999">
|
|
||||||
<rect
|
|
||||||
id="Rectangle-1-Copy-44"
|
|
||||||
fill="#747568"
|
|
||||||
opacity="0"
|
|
||||||
x="0"
|
|
||||||
y="0"
|
|
||||||
width="16"
|
|
||||||
height="16"
|
|
||||||
style="fill:#000000;fill-opacity:0.94999999" />
|
|
||||||
<g
|
|
||||||
id="Group-2"
|
|
||||||
transform="translate(2.000000, 2.000000)"
|
|
||||||
fill="#FFFFFF"
|
|
||||||
style="fill:#000000;fill-opacity:0.94999999">
|
|
||||||
<rect
|
|
||||||
id="Rectangle-94"
|
|
||||||
x="0"
|
|
||||||
y="0"
|
|
||||||
width="2"
|
|
||||||
height="2"
|
|
||||||
style="fill:#000000;fill-opacity:0.94999999" />
|
|
||||||
<rect
|
|
||||||
id="Rectangle-97"
|
|
||||||
x="3"
|
|
||||||
y="0"
|
|
||||||
width="9"
|
|
||||||
height="2"
|
|
||||||
style="fill:#000000;fill-opacity:0.94999999" />
|
|
||||||
<rect
|
|
||||||
id="rect11"
|
|
||||||
x="0"
|
|
||||||
y="5"
|
|
||||||
width="2"
|
|
||||||
height="2"
|
|
||||||
style="fill:#000000;fill-opacity:0.94999999" />
|
|
||||||
<rect
|
|
||||||
id="rect13"
|
|
||||||
x="3"
|
|
||||||
y="5"
|
|
||||||
width="9"
|
|
||||||
height="2"
|
|
||||||
style="fill:#000000;fill-opacity:0.94999999" />
|
|
||||||
<rect
|
|
||||||
id="rect15"
|
|
||||||
x="0"
|
|
||||||
y="10"
|
|
||||||
width="2"
|
|
||||||
height="2"
|
|
||||||
style="fill:#000000;fill-opacity:0.94999999" />
|
|
||||||
<rect
|
|
||||||
id="rect17"
|
|
||||||
x="3"
|
|
||||||
y="10"
|
|
||||||
width="9"
|
|
||||||
height="2"
|
|
||||||
style="fill:#000000;fill-opacity:0.94999999" />
|
|
||||||
</g>
|
|
||||||
</g>
|
|
||||||
</g>
|
|
||||||
</svg>
|
|
||||||
|
Before Width: | Height: | Size: 3.3 KiB |
@@ -1,124 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
||||||
<svg
|
|
||||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
|
||||||
xmlns:cc="http://creativecommons.org/ns#"
|
|
||||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
|
||||||
xmlns:svg="http://www.w3.org/2000/svg"
|
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
|
||||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
|
||||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
|
||||||
width="16px"
|
|
||||||
height="16px"
|
|
||||||
viewBox="0 0 16 16"
|
|
||||||
version="1.1"
|
|
||||||
id="svg22"
|
|
||||||
sodipodi:docname="category_active_16px.svg"
|
|
||||||
inkscape:version="0.92.4 (5da689c313, 2019-01-14)">
|
|
||||||
<metadata
|
|
||||||
id="metadata26">
|
|
||||||
<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>
|
|
||||||
<sodipodi:namedview
|
|
||||||
pagecolor="#ffffff"
|
|
||||||
bordercolor="#666666"
|
|
||||||
borderopacity="1"
|
|
||||||
objecttolerance="10"
|
|
||||||
gridtolerance="10"
|
|
||||||
guidetolerance="10"
|
|
||||||
inkscape:pageopacity="0"
|
|
||||||
inkscape:pageshadow="2"
|
|
||||||
inkscape:window-width="1920"
|
|
||||||
inkscape:window-height="987"
|
|
||||||
id="namedview24"
|
|
||||||
showgrid="false"
|
|
||||||
inkscape:zoom="14.75"
|
|
||||||
inkscape:cx="8"
|
|
||||||
inkscape:cy="8"
|
|
||||||
inkscape:window-x="0"
|
|
||||||
inkscape:window-y="0"
|
|
||||||
inkscape:window-maximized="1"
|
|
||||||
inkscape:current-layer="svg22" />
|
|
||||||
<!-- Generator: Sketch 3.6.1 (26313) - http://www.bohemiancoding.com/sketch -->
|
|
||||||
<title
|
|
||||||
id="title2">category_active_16px</title>
|
|
||||||
<desc
|
|
||||||
id="desc4">Created with Sketch.</desc>
|
|
||||||
<defs
|
|
||||||
id="defs6" />
|
|
||||||
<g
|
|
||||||
id="Page-1"
|
|
||||||
stroke="none"
|
|
||||||
stroke-width="1"
|
|
||||||
fill="none"
|
|
||||||
fill-rule="evenodd"
|
|
||||||
style="fill:#ffffff;fill-opacity:0.60000002">
|
|
||||||
<g
|
|
||||||
id="category_active_16px"
|
|
||||||
style="fill:#ffffff;fill-opacity:0.60000002">
|
|
||||||
<rect
|
|
||||||
id="Rectangle-1-Copy-44"
|
|
||||||
fill="#747568"
|
|
||||||
opacity="0"
|
|
||||||
x="0"
|
|
||||||
y="0"
|
|
||||||
width="16"
|
|
||||||
height="16"
|
|
||||||
style="fill:#ffffff;fill-opacity:0.60000002" />
|
|
||||||
<g
|
|
||||||
id="Group-2"
|
|
||||||
transform="translate(2.000000, 2.000000)"
|
|
||||||
fill="#FFFFFF"
|
|
||||||
style="fill:#ffffff;fill-opacity:0.60000002">
|
|
||||||
<rect
|
|
||||||
id="Rectangle-94"
|
|
||||||
x="0"
|
|
||||||
y="0"
|
|
||||||
width="2"
|
|
||||||
height="2"
|
|
||||||
style="fill:#ffffff;fill-opacity:0.60000002" />
|
|
||||||
<rect
|
|
||||||
id="Rectangle-97"
|
|
||||||
x="3"
|
|
||||||
y="0"
|
|
||||||
width="9"
|
|
||||||
height="2"
|
|
||||||
style="fill:#ffffff;fill-opacity:0.60000002" />
|
|
||||||
<rect
|
|
||||||
id="rect11"
|
|
||||||
x="0"
|
|
||||||
y="5"
|
|
||||||
width="2"
|
|
||||||
height="2"
|
|
||||||
style="fill:#ffffff;fill-opacity:0.60000002" />
|
|
||||||
<rect
|
|
||||||
id="rect13"
|
|
||||||
x="3"
|
|
||||||
y="5"
|
|
||||||
width="9"
|
|
||||||
height="2"
|
|
||||||
style="fill:#ffffff;fill-opacity:0.60000002" />
|
|
||||||
<rect
|
|
||||||
id="rect15"
|
|
||||||
x="0"
|
|
||||||
y="10"
|
|
||||||
width="2"
|
|
||||||
height="2"
|
|
||||||
style="fill:#ffffff;fill-opacity:0.60000002" />
|
|
||||||
<rect
|
|
||||||
id="rect17"
|
|
||||||
x="3"
|
|
||||||
y="10"
|
|
||||||
width="9"
|
|
||||||
height="2"
|
|
||||||
style="fill:#ffffff;fill-opacity:0.60000002" />
|
|
||||||
</g>
|
|
||||||
</g>
|
|
||||||
</g>
|
|
||||||
</svg>
|
|
||||||
|
Before Width: | Height: | Size: 3.3 KiB |
253
assets/spark-logo.svg
Normal 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
|
After Width: | Height: | Size: 6.5 KiB |
BIN
assets/spark-store.xcf
Normal file
19
build.sh
@@ -1,19 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
realpath=`realpath $0`
|
|
||||||
cd `dirname $realpath`
|
|
||||||
|
|
||||||
mkdir -p build && cd build
|
|
||||||
|
|
||||||
/usr/lib/qt5/bin/qmake ../spark-store-project.pro -spec linux-g++ CONFIG+=qtquickcompiler && /usr/bin/make qmake_all
|
|
||||||
make -j$(cat /proc/cpuinfo | grep "processor" | wc -l)
|
|
||||||
|
|
||||||
cd ..
|
|
||||||
|
|
||||||
cp ./ssinstall ./debian/opt/durapps/spark-store/bin/
|
|
||||||
cp ./build/src/spark-store ./debian/opt/durapps/spark-store/bin/
|
|
||||||
cp ./translations/*.qm ./debian/usr/share/spark-store/translations/
|
|
||||||
|
|
||||||
version=$(cat ./debian/DEBIAN/control | grep "Version" | awk -F ' ' '{print $2}')
|
|
||||||
|
|
||||||
fakeroot dpkg -b ./debian ./spark-store_"$version"_amd64.deb
|
|
||||||
10
debian/DEBIAN/control
vendored
@@ -1,10 +0,0 @@
|
|||||||
Package: spark-store
|
|
||||||
Version: 3.0.3-1
|
|
||||||
Maintainer: shenmo <shenmo@spark-app.store>
|
|
||||||
Section: utils
|
|
||||||
Source: https://gitee.com/deepin-community-store/spark-store
|
|
||||||
Homepage: https://gitee.com/kuyewen/spark-store/tree/multiple
|
|
||||||
Architecture: amd64
|
|
||||||
Priority: optional
|
|
||||||
Depends: libc6 (>= 2.14), libgcc1 (>= 1:3.0), libstdc++6 (>= 5.2), libqt5core5a (>= 5.11.0~rc1), libqt5gui5 (>= 5.11.0~rc1), libqt5widgets5 (>= 5.11.0~rc1), libqt5network5 (>= 5.11.0~rc1), libqt5webenginewidgets5 (>= 5.11.0~rc1), libqt5concurrent5 (>= 5.11.0~rc1), libdtkcore5 (>= 5.2.1-1), libdtkwidget5 (>= 5.2.1-1), libdtkgui5 (>= 5.2.0-1), libglib2.0-0, libgdk-pixbuf2.0-0, libnotify4, wget, curl, gdebi-core, gnupg
|
|
||||||
Description: Spark Store version 3.0.3
|
|
||||||
17
debian/DEBIAN/postinst
vendored
@@ -1,17 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
mkdir -p /usr/local/bin
|
|
||||||
|
|
||||||
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
|
|
||||||
|
|
||||||
cd /tmp/spark-store-install
|
|
||||||
wget https://d.store.deepinos.org.cn/dcs-repo.gpg-key.asc
|
|
||||||
apt-key add dcs-repo.gpg-key.asc
|
|
||||||
|
|
||||||
update-icon-caches /usr/share/icons/hicolor || true
|
|
||||||
update-desktop-database /usr/share/applications || true
|
|
||||||
xdg-mime default spark-store.desktop x-scheme-handler/spk
|
|
||||||
update-mime-database /usr/share/mime || true
|
|
||||||
|
|
||||||
# /tmp/spark-store-install/feedback.sh
|
|
||||||
119
debian/changelog
vendored
Normal file
@@ -0,0 +1,119 @@
|
|||||||
|
spark-store (3.1.4-1) stable; urgency=medium
|
||||||
|
|
||||||
|
* 安装脚本和检测更新脚本检查网络时间超时时间延长至5s
|
||||||
|
* 修复:ssinstall在没有安装apt-fast的情况下首次安装需要依赖的软件时安装失败
|
||||||
|
|
||||||
|
-- shenmo <shenmo@spark-app.store> Fri, 30 Jan 2022 00:00:00 +0800
|
||||||
|
|
||||||
|
spark-store (3.1.4) stable; urgency=medium
|
||||||
|
|
||||||
|
* 发布正式版,同步到官网
|
||||||
|
* 修复安装时使用wget的问题
|
||||||
|
* 合并3.1.3-1和3.1.3-2的更改
|
||||||
|
* 屏蔽了ssinstall之外的安装方式
|
||||||
|
* 调整了报错框的形式
|
||||||
|
* 修复pkexec下ssinstall不处理依赖
|
||||||
|
|
||||||
|
-- shenmo <shenmo@spark-app.store> Fri, 30 Jan 2022 00:00:00 +0800
|
||||||
|
|
||||||
|
spark-store (3.1.3-2) stable; urgency=medium
|
||||||
|
|
||||||
|
* 调整 现在与系统更新分开,不再导致更新失败
|
||||||
|
* 支持直接更新软件源文件,不再让d.吃全部更新流量
|
||||||
|
* ss-apt-fast不再强制root权限
|
||||||
|
* 修改ss-apt-fast的策略,现在除了安装,下载和更新都改用apt
|
||||||
|
* ssinstall 现在也会在不适用ss-apt-fast的时候模拟源了(针对UOS)
|
||||||
|
|
||||||
|
|
||||||
|
-- shenmo <shenmo@spark-app.store> Fri, 30 Jan 2022 00:00:00 +0800
|
||||||
|
|
||||||
|
spark-store (3.1.3-1) stable; urgency=medium
|
||||||
|
|
||||||
|
* 修复 下载提前退出
|
||||||
|
* 移除 下载量显示
|
||||||
|
|
||||||
|
|
||||||
|
-- shenmo <shenmo@spark-app.store> Fri, 30 Jan 2022 00:00:00 +0800
|
||||||
|
|
||||||
|
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
|
||||||
|
|
||||||
|
* Now support autoupdate
|
||||||
|
|
||||||
|
-- shenmo <shenmo@spark-app.store> Mon, 17 Jan 2022 00:00:00 +0800
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
spark-store (3.0.3-10) stable; urgency=medium
|
||||||
|
|
||||||
|
* Now also compile dstore patch
|
||||||
|
|
||||||
|
-- shenmo <shenmo@spark-app.store> Mon, 17 Jan 2022 00:00:00 +0800
|
||||||
|
|
||||||
|
|
||||||
|
spark-store (3.0.3-9) stable; urgency=medium
|
||||||
|
|
||||||
|
* Support dpkg-buildpackage
|
||||||
|
|
||||||
|
-- shenmo <shenmo@spark-app.store> Mon, 17 Jan 2022 00:00:00 +0800
|
||||||
1
debian/compat
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
11
|
||||||
42
debian/control
vendored
Normal file
@@ -0,0 +1,42 @@
|
|||||||
|
Source: spark-store
|
||||||
|
Maintainer: shenmo <shenmo@spark-app.store>
|
||||||
|
Section: utils
|
||||||
|
Priority: optional
|
||||||
|
Build-Depends:
|
||||||
|
debhelper (>= 9),
|
||||||
|
pkg-config,
|
||||||
|
qtchooser (>= 55-gc9562a1-1~),
|
||||||
|
libqt5core5a,
|
||||||
|
libqt5gui5,
|
||||||
|
libqt5widgets5,
|
||||||
|
libqt5network5,
|
||||||
|
libqt5concurrent5,
|
||||||
|
libdtkcore-dev(>=5.2),
|
||||||
|
libdtkgui-dev(>=5.2),
|
||||||
|
libdtkwidget-dev(>=5.2),
|
||||||
|
qttools5-private-dev,
|
||||||
|
libnotify-dev,
|
||||||
|
qtwebengine5-dev
|
||||||
|
Standards-Version: 3.0
|
||||||
|
Homepage: https://www.spark-app.store/
|
||||||
|
|
||||||
|
|
||||||
|
Package: spark-store
|
||||||
|
Architecture: any
|
||||||
|
Depends:${shlibs:Depends}, ${misc:Depends},
|
||||||
|
libqt5core5a,
|
||||||
|
libqt5gui5,
|
||||||
|
libqt5widgets5,
|
||||||
|
libqt5network5,
|
||||||
|
libqt5concurrent5,
|
||||||
|
libdtkcore5,
|
||||||
|
libdtkgui5,
|
||||||
|
libdtkwidget5,
|
||||||
|
libnotify4,
|
||||||
|
curl,
|
||||||
|
dde-qt5integration,
|
||||||
|
bubblewrap,
|
||||||
|
aria2
|
||||||
|
Description: Spark Store
|
||||||
|
A community powered app store, based on DTK.
|
||||||
|
Recommends: apt-fast
|
||||||
22
debian/copyright
vendored
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
|
||||||
|
Upstream-Name: spark-store
|
||||||
|
Source: https://gitee.com/deepin-community-store/spark-store
|
||||||
|
|
||||||
|
Files: *
|
||||||
|
Copyright: The Spark Project Developers
|
||||||
|
|
||||||
|
License: GPL-3+
|
||||||
|
This package is free software; you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation; either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
.
|
||||||
|
This package is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
.
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with this program. If not, see <http://www.gnu.org/licenses/>
|
||||||
|
.
|
||||||
|
On Debian systems, the complete text of the GNU General
|
||||||
3
debian/etc/apt/preferences.d/sparkstore
vendored
@@ -1,3 +0,0 @@
|
|||||||
Package: *
|
|
||||||
Pin: origin *.deepinos.org.cn
|
|
||||||
Pin-Priority: 400
|
|
||||||
BIN
debian/opt/durapps/spark-store/bin/spark-store
vendored
3
debian/opt/durapps/spark-store/bin/ssinstall
vendored
@@ -1,3 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
dpkg -i $1 || apt install -yf || dpkg -P $1
|
|
||||||
37
debian/rules
vendored
Executable file
@@ -0,0 +1,37 @@
|
|||||||
|
#!/usr/bin/make -f
|
||||||
|
|
||||||
|
export QT_SELECT=5
|
||||||
|
include /usr/share/dpkg/default.mk
|
||||||
|
|
||||||
|
DEB_BUILD_ARCH ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH)
|
||||||
|
DH_AUTO_ARGS = --parallel --buildsystem=qmake
|
||||||
|
|
||||||
|
# Uncomment this to turn on verbose mode.
|
||||||
|
#export DH_VERBOSE=1
|
||||||
|
|
||||||
|
%:
|
||||||
|
dh $@ --parallel
|
||||||
|
|
||||||
|
override_dh_auto_clean:
|
||||||
|
rm -rf $(CURDIR)/build
|
||||||
|
|
||||||
|
override_dh_auto_configure:
|
||||||
|
mkdir -p $(CURDIR)/build
|
||||||
|
|
||||||
|
dh_auto_configure MAKEFLAGS=-j$(JOBS) -- spark-store-project.pro \
|
||||||
|
-spec linux-g++ CONFIG+=qtquickcompiler \
|
||||||
|
-o $(CURDIR)/build/
|
||||||
|
|
||||||
|
|
||||||
|
override_dh_auto_build:
|
||||||
|
make -C $(CURDIR)/build -j$(JOBS)
|
||||||
|
|
||||||
|
override_dh_auto_install:
|
||||||
|
make -C $(CURDIR)/build install \
|
||||||
|
INSTALL_ROOT=$(CURDIR)/debian/spark-store
|
||||||
|
|
||||||
|
|
||||||
|
# Ignore the dpkg-shlibdeps: warning (it uses none of the library's symbols)
|
||||||
|
# Qt Mutidedia lib will ref to network libraray.
|
||||||
|
override_dh_shlibdeps:
|
||||||
|
dh_shlibdeps --dpkg-shlibdeps-params=--warnings=0
|
||||||
1
debian/source/format
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
1.0
|
||||||
75
debian/spark-store.postinst
vendored
Executable file
@@ -0,0 +1,75 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
case "$1" in
|
||||||
|
configure)
|
||||||
|
# Check if /usr/local/bin existed
|
||||||
|
mkdir -p /usr/local/bin
|
||||||
|
|
||||||
|
# Create symbol links for binary files
|
||||||
|
ln -s -f /opt/durapps/spark-store/bin/ussinstall /usr/local/bin/ussinstall
|
||||||
|
ln -s -f /opt/durapps/spark-store/bin/ussremove /usr/local/bin/ussremove
|
||||||
|
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/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
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# Download and install key
|
||||||
|
curl --progress-bar -o /tmp/spark-store-install/spark-store.asc https://d.store.deepinos.org.cn/dcs-repo.gpg-key.asc
|
||||||
|
gpg --dearmor /tmp/spark-store-install/spark-store.asc
|
||||||
|
cp -f /tmp/spark-store-install/spark-store.asc.gpg /etc/apt/trusted.gpg.d/spark-store.gpg
|
||||||
|
|
||||||
|
|
||||||
|
# Remove existing source file
|
||||||
|
rm -f /etc/apt/preferences.d/sparkstore
|
||||||
|
rm -f /etc/apt/sources.list.d/sparkstore.list
|
||||||
|
|
||||||
|
|
||||||
|
# Run apt update to avoid users being fucked up by the non-exist dependency problem
|
||||||
|
|
||||||
|
curl --progress-bar -o /opt/durapps/spark-store/bin/apt-fast-conf/sources.list.d/sparkstore.list "https://gitee.com/deepin-community-store/repo_auto_update_script/raw/master/mirror-list-for-apt-fast/sources.list.d/sparkstore.list"
|
||||||
|
# 下载源列表
|
||||||
|
bwrap --dev-bind / / --bind '/opt/durapps/spark-store/bin/apt-fast-conf/sources.list.d/sparkstore.list' /etc/apt/sources.list.d/sparkstore.list apt 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
|
||||||
|
ln -s /opt/durapps/spark-store/bin/update-upgrade/autostart/spark-update-notifier.desktop /etc/xdg/autostart/spark-update-notifier.desktop
|
||||||
|
|
||||||
|
# Start upgrade detect service
|
||||||
|
systemctl enable spark-update-notifier
|
||||||
|
service spark-update-notifier start
|
||||||
|
|
||||||
|
|
||||||
|
# Update certain caches
|
||||||
|
update-icon-caches /usr/share/icons/hicolor || true
|
||||||
|
update-desktop-database /usr/share/applications || true
|
||||||
|
xdg-mime default spark-store.desktop x-scheme-handler/spk
|
||||||
|
update-mime-database /usr/share/mime || true
|
||||||
|
|
||||||
|
# Send email for statistics
|
||||||
|
# /tmp/spark-store-install/feedback.sh
|
||||||
|
|
||||||
|
# Remove temp dir
|
||||||
|
rm -rf /tmp/spark-store-install
|
||||||
|
|
||||||
|
|
||||||
|
;;
|
||||||
|
|
||||||
|
triggered)
|
||||||
|
# Quit if deepin-app-store-tool existed
|
||||||
|
if [ -x "/usr/bin/deepin-app-store-tool" ] ; then
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Trigger for UOS debs installation
|
||||||
|
echo '--------检测到Uniontech标准软件包,运行补丁以修正安装--------'
|
||||||
|
if [ -x "/usr/local/bin/spark-dstore-patch" ] ; then
|
||||||
|
/usr/local/bin/spark-dstore-patch
|
||||||
|
echo '-----------spark-dstore-patch补丁工具已运行完毕-----------'
|
||||||
|
else
|
||||||
|
echo '------------spark-dstore-patch补丁工具运行失败------------'
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
@@ -1,8 +1,6 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
rm /usr/local/bin/spark-store
|
# Update certain caches
|
||||||
rm /usr/local/bin/ssinstall
|
|
||||||
|
|
||||||
update-icon-caches /usr/share/icons/hicolor || true
|
update-icon-caches /usr/share/icons/hicolor || true
|
||||||
update-desktop-database /usr/share/applications || true
|
update-desktop-database /usr/share/applications || true
|
||||||
update-mime-database /usr/share/mime || true
|
update-mime-database /usr/share/mime || true
|
||||||
27
debian/spark-store.preinst
vendored
Executable file
@@ -0,0 +1,27 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
#检测网络链接畅通
|
||||||
|
function network-check()
|
||||||
|
{
|
||||||
|
#超时时间
|
||||||
|
local timeout=5
|
||||||
|
|
||||||
|
#目标网站
|
||||||
|
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
|
||||||
40
debian/spark-store.prerm
vendored
Executable file
@@ -0,0 +1,40 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# Remove residual symbol links
|
||||||
|
rm /usr/local/bin/spark-store
|
||||||
|
rm /usr/local/bin/ssinstall
|
||||||
|
rm /usr/local/bin/spark-dstore-patch
|
||||||
|
rm /usr/local/bin/ussinstall
|
||||||
|
rm /usr/local/bin/ussremove
|
||||||
|
rm /usr/local/bin/ss-apt-fast
|
||||||
|
|
||||||
|
# Remove residual symbol links to stop upgrade detect if exist
|
||||||
|
if [ -f /etc/xdg/autostart/spark-update-notifier.desktop ];then
|
||||||
|
rm /etc/xdg/autostart/spark-update-notifier.desktop
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Shutdown services
|
||||||
|
service spark-update-notifier stop
|
||||||
|
|
||||||
|
# Stop update detect service
|
||||||
|
systemctl disable spark-update-notifier
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# Clean the update-number service place file if exist
|
||||||
|
if [ -d "/tmp/spark-store-updatenum/" ] ; then
|
||||||
|
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
|
||||||
|
|
||||||
|
# Remove gpg key file
|
||||||
|
if [ -f "/etc/apt/trusted.gpg.d/spark-store.gpg" ] ; then
|
||||||
|
rm /etc/apt/trusted.gpg.d/spark-store.gpg
|
||||||
|
fi
|
||||||
|
|
||||||
|
apt-key del '9D9A A859 F750 24B1 A1EC E16E 0E41 D354 A29A 440C'
|
||||||
|
|
||||||
1
debian/spark-store.triggers
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
interest-noawait /opt/apps
|
||||||
BIN
debian/usr/share/doc/spark-store/changelog.gz
vendored
674
debian/usr/share/doc/spark-store/copyright
vendored
@@ -1,674 +0,0 @@
|
|||||||
GNU GENERAL PUBLIC LICENSE
|
|
||||||
Version 3, 29 June 2007
|
|
||||||
|
|
||||||
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
|
|
||||||
Everyone is permitted to copy and distribute verbatim copies
|
|
||||||
of this license document, but changing it is not allowed.
|
|
||||||
|
|
||||||
Preamble
|
|
||||||
|
|
||||||
The GNU General Public License is a free, copyleft license for
|
|
||||||
software and other kinds of works.
|
|
||||||
|
|
||||||
The licenses for most software and other practical works are designed
|
|
||||||
to take away your freedom to share and change the works. By contrast,
|
|
||||||
the GNU General Public License is intended to guarantee your freedom to
|
|
||||||
share and change all versions of a program--to make sure it remains free
|
|
||||||
software for all its users. We, the Free Software Foundation, use the
|
|
||||||
GNU General Public License for most of our software; it applies also to
|
|
||||||
any other work released this way by its authors. You can apply it to
|
|
||||||
your programs, too.
|
|
||||||
|
|
||||||
When we speak of free software, we are referring to freedom, not
|
|
||||||
price. Our General Public Licenses are designed to make sure that you
|
|
||||||
have the freedom to distribute copies of free software (and charge for
|
|
||||||
them if you wish), that you receive source code or can get it if you
|
|
||||||
want it, that you can change the software or use pieces of it in new
|
|
||||||
free programs, and that you know you can do these things.
|
|
||||||
|
|
||||||
To protect your rights, we need to prevent others from denying you
|
|
||||||
these rights or asking you to surrender the rights. Therefore, you have
|
|
||||||
certain responsibilities if you distribute copies of the software, or if
|
|
||||||
you modify it: responsibilities to respect the freedom of others.
|
|
||||||
|
|
||||||
For example, if you distribute copies of such a program, whether
|
|
||||||
gratis or for a fee, you must pass on to the recipients the same
|
|
||||||
freedoms that you received. You must make sure that they, too, receive
|
|
||||||
or can get the source code. And you must show them these terms so they
|
|
||||||
know their rights.
|
|
||||||
|
|
||||||
Developers that use the GNU GPL protect your rights with two steps:
|
|
||||||
(1) assert copyright on the software, and (2) offer you this License
|
|
||||||
giving you legal permission to copy, distribute and/or modify it.
|
|
||||||
|
|
||||||
For the developers' and authors' protection, the GPL clearly explains
|
|
||||||
that there is no warranty for this free software. For both users' and
|
|
||||||
authors' sake, the GPL requires that modified versions be marked as
|
|
||||||
changed, so that their problems will not be attributed erroneously to
|
|
||||||
authors of previous versions.
|
|
||||||
|
|
||||||
Some devices are designed to deny users access to install or run
|
|
||||||
modified versions of the software inside them, although the manufacturer
|
|
||||||
can do so. This is fundamentally incompatible with the aim of
|
|
||||||
protecting users' freedom to change the software. The systematic
|
|
||||||
pattern of such abuse occurs in the area of products for individuals to
|
|
||||||
use, which is precisely where it is most unacceptable. Therefore, we
|
|
||||||
have designed this version of the GPL to prohibit the practice for those
|
|
||||||
products. If such problems arise substantially in other domains, we
|
|
||||||
stand ready to extend this provision to those domains in future versions
|
|
||||||
of the GPL, as needed to protect the freedom of users.
|
|
||||||
|
|
||||||
Finally, every program is threatened constantly by software patents.
|
|
||||||
States should not allow patents to restrict development and use of
|
|
||||||
software on general-purpose computers, but in those that do, we wish to
|
|
||||||
avoid the special danger that patents applied to a free program could
|
|
||||||
make it effectively proprietary. To prevent this, the GPL assures that
|
|
||||||
patents cannot be used to render the program non-free.
|
|
||||||
|
|
||||||
The precise terms and conditions for copying, distribution and
|
|
||||||
modification follow.
|
|
||||||
|
|
||||||
TERMS AND CONDITIONS
|
|
||||||
|
|
||||||
0. Definitions.
|
|
||||||
|
|
||||||
"This License" refers to version 3 of the GNU General Public License.
|
|
||||||
|
|
||||||
"Copyright" also means copyright-like laws that apply to other kinds of
|
|
||||||
works, such as semiconductor masks.
|
|
||||||
|
|
||||||
"The Program" refers to any copyrightable work licensed under this
|
|
||||||
License. Each licensee is addressed as "you". "Licensees" and
|
|
||||||
"recipients" may be individuals or organizations.
|
|
||||||
|
|
||||||
To "modify" a work means to copy from or adapt all or part of the work
|
|
||||||
in a fashion requiring copyright permission, other than the making of an
|
|
||||||
exact copy. The resulting work is called a "modified version" of the
|
|
||||||
earlier work or a work "based on" the earlier work.
|
|
||||||
|
|
||||||
A "covered work" means either the unmodified Program or a work based
|
|
||||||
on the Program.
|
|
||||||
|
|
||||||
To "propagate" a work means to do anything with it that, without
|
|
||||||
permission, would make you directly or secondarily liable for
|
|
||||||
infringement under applicable copyright law, except executing it on a
|
|
||||||
computer or modifying a private copy. Propagation includes copying,
|
|
||||||
distribution (with or without modification), making available to the
|
|
||||||
public, and in some countries other activities as well.
|
|
||||||
|
|
||||||
To "convey" a work means any kind of propagation that enables other
|
|
||||||
parties to make or receive copies. Mere interaction with a user through
|
|
||||||
a computer network, with no transfer of a copy, is not conveying.
|
|
||||||
|
|
||||||
An interactive user interface displays "Appropriate Legal Notices"
|
|
||||||
to the extent that it includes a convenient and prominently visible
|
|
||||||
feature that (1) displays an appropriate copyright notice, and (2)
|
|
||||||
tells the user that there is no warranty for the work (except to the
|
|
||||||
extent that warranties are provided), that licensees may convey the
|
|
||||||
work under this License, and how to view a copy of this License. If
|
|
||||||
the interface presents a list of user commands or options, such as a
|
|
||||||
menu, a prominent item in the list meets this criterion.
|
|
||||||
|
|
||||||
1. Source Code.
|
|
||||||
|
|
||||||
The "source code" for a work means the preferred form of the work
|
|
||||||
for making modifications to it. "Object code" means any non-source
|
|
||||||
form of a work.
|
|
||||||
|
|
||||||
A "Standard Interface" means an interface that either is an official
|
|
||||||
standard defined by a recognized standards body, or, in the case of
|
|
||||||
interfaces specified for a particular programming language, one that
|
|
||||||
is widely used among developers working in that language.
|
|
||||||
|
|
||||||
The "System Libraries" of an executable work include anything, other
|
|
||||||
than the work as a whole, that (a) is included in the normal form of
|
|
||||||
packaging a Major Component, but which is not part of that Major
|
|
||||||
Component, and (b) serves only to enable use of the work with that
|
|
||||||
Major Component, or to implement a Standard Interface for which an
|
|
||||||
implementation is available to the public in source code form. A
|
|
||||||
"Major Component", in this context, means a major essential component
|
|
||||||
(kernel, window system, and so on) of the specific operating system
|
|
||||||
(if any) on which the executable work runs, or a compiler used to
|
|
||||||
produce the work, or an object code interpreter used to run it.
|
|
||||||
|
|
||||||
The "Corresponding Source" for a work in object code form means all
|
|
||||||
the source code needed to generate, install, and (for an executable
|
|
||||||
work) run the object code and to modify the work, including scripts to
|
|
||||||
control those activities. However, it does not include the work's
|
|
||||||
System Libraries, or general-purpose tools or generally available free
|
|
||||||
programs which are used unmodified in performing those activities but
|
|
||||||
which are not part of the work. For example, Corresponding Source
|
|
||||||
includes interface definition files associated with source files for
|
|
||||||
the work, and the source code for shared libraries and dynamically
|
|
||||||
linked subprograms that the work is specifically designed to require,
|
|
||||||
such as by intimate data communication or control flow between those
|
|
||||||
subprograms and other parts of the work.
|
|
||||||
|
|
||||||
The Corresponding Source need not include anything that users
|
|
||||||
can regenerate automatically from other parts of the Corresponding
|
|
||||||
Source.
|
|
||||||
|
|
||||||
The Corresponding Source for a work in source code form is that
|
|
||||||
same work.
|
|
||||||
|
|
||||||
2. Basic Permissions.
|
|
||||||
|
|
||||||
All rights granted under this License are granted for the term of
|
|
||||||
copyright on the Program, and are irrevocable provided the stated
|
|
||||||
conditions are met. This License explicitly affirms your unlimited
|
|
||||||
permission to run the unmodified Program. The output from running a
|
|
||||||
covered work is covered by this License only if the output, given its
|
|
||||||
content, constitutes a covered work. This License acknowledges your
|
|
||||||
rights of fair use or other equivalent, as provided by copyright law.
|
|
||||||
|
|
||||||
You may make, run and propagate covered works that you do not
|
|
||||||
convey, without conditions so long as your license otherwise remains
|
|
||||||
in force. You may convey covered works to others for the sole purpose
|
|
||||||
of having them make modifications exclusively for you, or provide you
|
|
||||||
with facilities for running those works, provided that you comply with
|
|
||||||
the terms of this License in conveying all material for which you do
|
|
||||||
not control copyright. Those thus making or running the covered works
|
|
||||||
for you must do so exclusively on your behalf, under your direction
|
|
||||||
and control, on terms that prohibit them from making any copies of
|
|
||||||
your copyrighted material outside their relationship with you.
|
|
||||||
|
|
||||||
Conveying under any other circumstances is permitted solely under
|
|
||||||
the conditions stated below. Sublicensing is not allowed; section 10
|
|
||||||
makes it unnecessary.
|
|
||||||
|
|
||||||
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
|
||||||
|
|
||||||
No covered work shall be deemed part of an effective technological
|
|
||||||
measure under any applicable law fulfilling obligations under article
|
|
||||||
11 of the WIPO copyright treaty adopted on 20 December 1996, or
|
|
||||||
similar laws prohibiting or restricting circumvention of such
|
|
||||||
measures.
|
|
||||||
|
|
||||||
When you convey a covered work, you waive any legal power to forbid
|
|
||||||
circumvention of technological measures to the extent such circumvention
|
|
||||||
is effected by exercising rights under this License with respect to
|
|
||||||
the covered work, and you disclaim any intention to limit operation or
|
|
||||||
modification of the work as a means of enforcing, against the work's
|
|
||||||
users, your or third parties' legal rights to forbid circumvention of
|
|
||||||
technological measures.
|
|
||||||
|
|
||||||
4. Conveying Verbatim Copies.
|
|
||||||
|
|
||||||
You may convey verbatim copies of the Program's source code as you
|
|
||||||
receive it, in any medium, provided that you conspicuously and
|
|
||||||
appropriately publish on each copy an appropriate copyright notice;
|
|
||||||
keep intact all notices stating that this License and any
|
|
||||||
non-permissive terms added in accord with section 7 apply to the code;
|
|
||||||
keep intact all notices of the absence of any warranty; and give all
|
|
||||||
recipients a copy of this License along with the Program.
|
|
||||||
|
|
||||||
You may charge any price or no price for each copy that you convey,
|
|
||||||
and you may offer support or warranty protection for a fee.
|
|
||||||
|
|
||||||
5. Conveying Modified Source Versions.
|
|
||||||
|
|
||||||
You may convey a work based on the Program, or the modifications to
|
|
||||||
produce it from the Program, in the form of source code under the
|
|
||||||
terms of section 4, provided that you also meet all of these conditions:
|
|
||||||
|
|
||||||
a) The work must carry prominent notices stating that you modified
|
|
||||||
it, and giving a relevant date.
|
|
||||||
|
|
||||||
b) The work must carry prominent notices stating that it is
|
|
||||||
released under this License and any conditions added under section
|
|
||||||
7. This requirement modifies the requirement in section 4 to
|
|
||||||
"keep intact all notices".
|
|
||||||
|
|
||||||
c) You must license the entire work, as a whole, under this
|
|
||||||
License to anyone who comes into possession of a copy. This
|
|
||||||
License will therefore apply, along with any applicable section 7
|
|
||||||
additional terms, to the whole of the work, and all its parts,
|
|
||||||
regardless of how they are packaged. This License gives no
|
|
||||||
permission to license the work in any other way, but it does not
|
|
||||||
invalidate such permission if you have separately received it.
|
|
||||||
|
|
||||||
d) If the work has interactive user interfaces, each must display
|
|
||||||
Appropriate Legal Notices; however, if the Program has interactive
|
|
||||||
interfaces that do not display Appropriate Legal Notices, your
|
|
||||||
work need not make them do so.
|
|
||||||
|
|
||||||
A compilation of a covered work with other separate and independent
|
|
||||||
works, which are not by their nature extensions of the covered work,
|
|
||||||
and which are not combined with it such as to form a larger program,
|
|
||||||
in or on a volume of a storage or distribution medium, is called an
|
|
||||||
"aggregate" if the compilation and its resulting copyright are not
|
|
||||||
used to limit the access or legal rights of the compilation's users
|
|
||||||
beyond what the individual works permit. Inclusion of a covered work
|
|
||||||
in an aggregate does not cause this License to apply to the other
|
|
||||||
parts of the aggregate.
|
|
||||||
|
|
||||||
6. Conveying Non-Source Forms.
|
|
||||||
|
|
||||||
You may convey a covered work in object code form under the terms
|
|
||||||
of sections 4 and 5, provided that you also convey the
|
|
||||||
machine-readable Corresponding Source under the terms of this License,
|
|
||||||
in one of these ways:
|
|
||||||
|
|
||||||
a) Convey the object code in, or embodied in, a physical product
|
|
||||||
(including a physical distribution medium), accompanied by the
|
|
||||||
Corresponding Source fixed on a durable physical medium
|
|
||||||
customarily used for software interchange.
|
|
||||||
|
|
||||||
b) Convey the object code in, or embodied in, a physical product
|
|
||||||
(including a physical distribution medium), accompanied by a
|
|
||||||
written offer, valid for at least three years and valid for as
|
|
||||||
long as you offer spare parts or customer support for that product
|
|
||||||
model, to give anyone who possesses the object code either (1) a
|
|
||||||
copy of the Corresponding Source for all the software in the
|
|
||||||
product that is covered by this License, on a durable physical
|
|
||||||
medium customarily used for software interchange, for a price no
|
|
||||||
more than your reasonable cost of physically performing this
|
|
||||||
conveying of source, or (2) access to copy the
|
|
||||||
Corresponding Source from a network server at no charge.
|
|
||||||
|
|
||||||
c) Convey individual copies of the object code with a copy of the
|
|
||||||
written offer to provide the Corresponding Source. This
|
|
||||||
alternative is allowed only occasionally and noncommercially, and
|
|
||||||
only if you received the object code with such an offer, in accord
|
|
||||||
with subsection 6b.
|
|
||||||
|
|
||||||
d) Convey the object code by offering access from a designated
|
|
||||||
place (gratis or for a charge), and offer equivalent access to the
|
|
||||||
Corresponding Source in the same way through the same place at no
|
|
||||||
further charge. You need not require recipients to copy the
|
|
||||||
Corresponding Source along with the object code. If the place to
|
|
||||||
copy the object code is a network server, the Corresponding Source
|
|
||||||
may be on a different server (operated by you or a third party)
|
|
||||||
that supports equivalent copying facilities, provided you maintain
|
|
||||||
clear directions next to the object code saying where to find the
|
|
||||||
Corresponding Source. Regardless of what server hosts the
|
|
||||||
Corresponding Source, you remain obligated to ensure that it is
|
|
||||||
available for as long as needed to satisfy these requirements.
|
|
||||||
|
|
||||||
e) Convey the object code using peer-to-peer transmission, provided
|
|
||||||
you inform other peers where the object code and Corresponding
|
|
||||||
Source of the work are being offered to the general public at no
|
|
||||||
charge under subsection 6d.
|
|
||||||
|
|
||||||
A separable portion of the object code, whose source code is excluded
|
|
||||||
from the Corresponding Source as a System Library, need not be
|
|
||||||
included in conveying the object code work.
|
|
||||||
|
|
||||||
A "User Product" is either (1) a "consumer product", which means any
|
|
||||||
tangible personal property which is normally used for personal, family,
|
|
||||||
or household purposes, or (2) anything designed or sold for incorporation
|
|
||||||
into a dwelling. In determining whether a product is a consumer product,
|
|
||||||
doubtful cases shall be resolved in favor of coverage. For a particular
|
|
||||||
product received by a particular user, "normally used" refers to a
|
|
||||||
typical or common use of that class of product, regardless of the status
|
|
||||||
of the particular user or of the way in which the particular user
|
|
||||||
actually uses, or expects or is expected to use, the product. A product
|
|
||||||
is a consumer product regardless of whether the product has substantial
|
|
||||||
commercial, industrial or non-consumer uses, unless such uses represent
|
|
||||||
the only significant mode of use of the product.
|
|
||||||
|
|
||||||
"Installation Information" for a User Product means any methods,
|
|
||||||
procedures, authorization keys, or other information required to install
|
|
||||||
and execute modified versions of a covered work in that User Product from
|
|
||||||
a modified version of its Corresponding Source. The information must
|
|
||||||
suffice to ensure that the continued functioning of the modified object
|
|
||||||
code is in no case prevented or interfered with solely because
|
|
||||||
modification has been made.
|
|
||||||
|
|
||||||
If you convey an object code work under this section in, or with, or
|
|
||||||
specifically for use in, a User Product, and the conveying occurs as
|
|
||||||
part of a transaction in which the right of possession and use of the
|
|
||||||
User Product is transferred to the recipient in perpetuity or for a
|
|
||||||
fixed term (regardless of how the transaction is characterized), the
|
|
||||||
Corresponding Source conveyed under this section must be accompanied
|
|
||||||
by the Installation Information. But this requirement does not apply
|
|
||||||
if neither you nor any third party retains the ability to install
|
|
||||||
modified object code on the User Product (for example, the work has
|
|
||||||
been installed in ROM).
|
|
||||||
|
|
||||||
The requirement to provide Installation Information does not include a
|
|
||||||
requirement to continue to provide support service, warranty, or updates
|
|
||||||
for a work that has been modified or installed by the recipient, or for
|
|
||||||
the User Product in which it has been modified or installed. Access to a
|
|
||||||
network may be denied when the modification itself materially and
|
|
||||||
adversely affects the operation of the network or violates the rules and
|
|
||||||
protocols for communication across the network.
|
|
||||||
|
|
||||||
Corresponding Source conveyed, and Installation Information provided,
|
|
||||||
in accord with this section must be in a format that is publicly
|
|
||||||
documented (and with an implementation available to the public in
|
|
||||||
source code form), and must require no special password or key for
|
|
||||||
unpacking, reading or copying.
|
|
||||||
|
|
||||||
7. Additional Terms.
|
|
||||||
|
|
||||||
"Additional permissions" are terms that supplement the terms of this
|
|
||||||
License by making exceptions from one or more of its conditions.
|
|
||||||
Additional permissions that are applicable to the entire Program shall
|
|
||||||
be treated as though they were included in this License, to the extent
|
|
||||||
that they are valid under applicable law. If additional permissions
|
|
||||||
apply only to part of the Program, that part may be used separately
|
|
||||||
under those permissions, but the entire Program remains governed by
|
|
||||||
this License without regard to the additional permissions.
|
|
||||||
|
|
||||||
When you convey a copy of a covered work, you may at your option
|
|
||||||
remove any additional permissions from that copy, or from any part of
|
|
||||||
it. (Additional permissions may be written to require their own
|
|
||||||
removal in certain cases when you modify the work.) You may place
|
|
||||||
additional permissions on material, added by you to a covered work,
|
|
||||||
for which you have or can give appropriate copyright permission.
|
|
||||||
|
|
||||||
Notwithstanding any other provision of this License, for material you
|
|
||||||
add to a covered work, you may (if authorized by the copyright holders of
|
|
||||||
that material) supplement the terms of this License with terms:
|
|
||||||
|
|
||||||
a) Disclaiming warranty or limiting liability differently from the
|
|
||||||
terms of sections 15 and 16 of this License; or
|
|
||||||
|
|
||||||
b) Requiring preservation of specified reasonable legal notices or
|
|
||||||
author attributions in that material or in the Appropriate Legal
|
|
||||||
Notices displayed by works containing it; or
|
|
||||||
|
|
||||||
c) Prohibiting misrepresentation of the origin of that material, or
|
|
||||||
requiring that modified versions of such material be marked in
|
|
||||||
reasonable ways as different from the original version; or
|
|
||||||
|
|
||||||
d) Limiting the use for publicity purposes of names of licensors or
|
|
||||||
authors of the material; or
|
|
||||||
|
|
||||||
e) Declining to grant rights under trademark law for use of some
|
|
||||||
trade names, trademarks, or service marks; or
|
|
||||||
|
|
||||||
f) Requiring indemnification of licensors and authors of that
|
|
||||||
material by anyone who conveys the material (or modified versions of
|
|
||||||
it) with contractual assumptions of liability to the recipient, for
|
|
||||||
any liability that these contractual assumptions directly impose on
|
|
||||||
those licensors and authors.
|
|
||||||
|
|
||||||
All other non-permissive additional terms are considered "further
|
|
||||||
restrictions" within the meaning of section 10. If the Program as you
|
|
||||||
received it, or any part of it, contains a notice stating that it is
|
|
||||||
governed by this License along with a term that is a further
|
|
||||||
restriction, you may remove that term. If a license document contains
|
|
||||||
a further restriction but permits relicensing or conveying under this
|
|
||||||
License, you may add to a covered work material governed by the terms
|
|
||||||
of that license document, provided that the further restriction does
|
|
||||||
not survive such relicensing or conveying.
|
|
||||||
|
|
||||||
If you add terms to a covered work in accord with this section, you
|
|
||||||
must place, in the relevant source files, a statement of the
|
|
||||||
additional terms that apply to those files, or a notice indicating
|
|
||||||
where to find the applicable terms.
|
|
||||||
|
|
||||||
Additional terms, permissive or non-permissive, may be stated in the
|
|
||||||
form of a separately written license, or stated as exceptions;
|
|
||||||
the above requirements apply either way.
|
|
||||||
|
|
||||||
8. Termination.
|
|
||||||
|
|
||||||
You may not propagate or modify a covered work except as expressly
|
|
||||||
provided under this License. Any attempt otherwise to propagate or
|
|
||||||
modify it is void, and will automatically terminate your rights under
|
|
||||||
this License (including any patent licenses granted under the third
|
|
||||||
paragraph of section 11).
|
|
||||||
|
|
||||||
However, if you cease all violation of this License, then your
|
|
||||||
license from a particular copyright holder is reinstated (a)
|
|
||||||
provisionally, unless and until the copyright holder explicitly and
|
|
||||||
finally terminates your license, and (b) permanently, if the copyright
|
|
||||||
holder fails to notify you of the violation by some reasonable means
|
|
||||||
prior to 60 days after the cessation.
|
|
||||||
|
|
||||||
Moreover, your license from a particular copyright holder is
|
|
||||||
reinstated permanently if the copyright holder notifies you of the
|
|
||||||
violation by some reasonable means, this is the first time you have
|
|
||||||
received notice of violation of this License (for any work) from that
|
|
||||||
copyright holder, and you cure the violation prior to 30 days after
|
|
||||||
your receipt of the notice.
|
|
||||||
|
|
||||||
Termination of your rights under this section does not terminate the
|
|
||||||
licenses of parties who have received copies or rights from you under
|
|
||||||
this License. If your rights have been terminated and not permanently
|
|
||||||
reinstated, you do not qualify to receive new licenses for the same
|
|
||||||
material under section 10.
|
|
||||||
|
|
||||||
9. Acceptance Not Required for Having Copies.
|
|
||||||
|
|
||||||
You are not required to accept this License in order to receive or
|
|
||||||
run a copy of the Program. Ancillary propagation of a covered work
|
|
||||||
occurring solely as a consequence of using peer-to-peer transmission
|
|
||||||
to receive a copy likewise does not require acceptance. However,
|
|
||||||
nothing other than this License grants you permission to propagate or
|
|
||||||
modify any covered work. These actions infringe copyright if you do
|
|
||||||
not accept this License. Therefore, by modifying or propagating a
|
|
||||||
covered work, you indicate your acceptance of this License to do so.
|
|
||||||
|
|
||||||
10. Automatic Licensing of Downstream Recipients.
|
|
||||||
|
|
||||||
Each time you convey a covered work, the recipient automatically
|
|
||||||
receives a license from the original licensors, to run, modify and
|
|
||||||
propagate that work, subject to this License. You are not responsible
|
|
||||||
for enforcing compliance by third parties with this License.
|
|
||||||
|
|
||||||
An "entity transaction" is a transaction transferring control of an
|
|
||||||
organization, or substantially all assets of one, or subdividing an
|
|
||||||
organization, or merging organizations. If propagation of a covered
|
|
||||||
work results from an entity transaction, each party to that
|
|
||||||
transaction who receives a copy of the work also receives whatever
|
|
||||||
licenses to the work the party's predecessor in interest had or could
|
|
||||||
give under the previous paragraph, plus a right to possession of the
|
|
||||||
Corresponding Source of the work from the predecessor in interest, if
|
|
||||||
the predecessor has it or can get it with reasonable efforts.
|
|
||||||
|
|
||||||
You may not impose any further restrictions on the exercise of the
|
|
||||||
rights granted or affirmed under this License. For example, you may
|
|
||||||
not impose a license fee, royalty, or other charge for exercise of
|
|
||||||
rights granted under this License, and you may not initiate litigation
|
|
||||||
(including a cross-claim or counterclaim in a lawsuit) alleging that
|
|
||||||
any patent claim is infringed by making, using, selling, offering for
|
|
||||||
sale, or importing the Program or any portion of it.
|
|
||||||
|
|
||||||
11. Patents.
|
|
||||||
|
|
||||||
A "contributor" is a copyright holder who authorizes use under this
|
|
||||||
License of the Program or a work on which the Program is based. The
|
|
||||||
work thus licensed is called the contributor's "contributor version".
|
|
||||||
|
|
||||||
A contributor's "essential patent claims" are all patent claims
|
|
||||||
owned or controlled by the contributor, whether already acquired or
|
|
||||||
hereafter acquired, that would be infringed by some manner, permitted
|
|
||||||
by this License, of making, using, or selling its contributor version,
|
|
||||||
but do not include claims that would be infringed only as a
|
|
||||||
consequence of further modification of the contributor version. For
|
|
||||||
purposes of this definition, "control" includes the right to grant
|
|
||||||
patent sublicenses in a manner consistent with the requirements of
|
|
||||||
this License.
|
|
||||||
|
|
||||||
Each contributor grants you a non-exclusive, worldwide, royalty-free
|
|
||||||
patent license under the contributor's essential patent claims, to
|
|
||||||
make, use, sell, offer for sale, import and otherwise run, modify and
|
|
||||||
propagate the contents of its contributor version.
|
|
||||||
|
|
||||||
In the following three paragraphs, a "patent license" is any express
|
|
||||||
agreement or commitment, however denominated, not to enforce a patent
|
|
||||||
(such as an express permission to practice a patent or covenant not to
|
|
||||||
sue for patent infringement). To "grant" such a patent license to a
|
|
||||||
party means to make such an agreement or commitment not to enforce a
|
|
||||||
patent against the party.
|
|
||||||
|
|
||||||
If you convey a covered work, knowingly relying on a patent license,
|
|
||||||
and the Corresponding Source of the work is not available for anyone
|
|
||||||
to copy, free of charge and under the terms of this License, through a
|
|
||||||
publicly available network server or other readily accessible means,
|
|
||||||
then you must either (1) cause the Corresponding Source to be so
|
|
||||||
available, or (2) arrange to deprive yourself of the benefit of the
|
|
||||||
patent license for this particular work, or (3) arrange, in a manner
|
|
||||||
consistent with the requirements of this License, to extend the patent
|
|
||||||
license to downstream recipients. "Knowingly relying" means you have
|
|
||||||
actual knowledge that, but for the patent license, your conveying the
|
|
||||||
covered work in a country, or your recipient's use of the covered work
|
|
||||||
in a country, would infringe one or more identifiable patents in that
|
|
||||||
country that you have reason to believe are valid.
|
|
||||||
|
|
||||||
If, pursuant to or in connection with a single transaction or
|
|
||||||
arrangement, you convey, or propagate by procuring conveyance of, a
|
|
||||||
covered work, and grant a patent license to some of the parties
|
|
||||||
receiving the covered work authorizing them to use, propagate, modify
|
|
||||||
or convey a specific copy of the covered work, then the patent license
|
|
||||||
you grant is automatically extended to all recipients of the covered
|
|
||||||
work and works based on it.
|
|
||||||
|
|
||||||
A patent license is "discriminatory" if it does not include within
|
|
||||||
the scope of its coverage, prohibits the exercise of, or is
|
|
||||||
conditioned on the non-exercise of one or more of the rights that are
|
|
||||||
specifically granted under this License. You may not convey a covered
|
|
||||||
work if you are a party to an arrangement with a third party that is
|
|
||||||
in the business of distributing software, under which you make payment
|
|
||||||
to the third party based on the extent of your activity of conveying
|
|
||||||
the work, and under which the third party grants, to any of the
|
|
||||||
parties who would receive the covered work from you, a discriminatory
|
|
||||||
patent license (a) in connection with copies of the covered work
|
|
||||||
conveyed by you (or copies made from those copies), or (b) primarily
|
|
||||||
for and in connection with specific products or compilations that
|
|
||||||
contain the covered work, unless you entered into that arrangement,
|
|
||||||
or that patent license was granted, prior to 28 March 2007.
|
|
||||||
|
|
||||||
Nothing in this License shall be construed as excluding or limiting
|
|
||||||
any implied license or other defenses to infringement that may
|
|
||||||
otherwise be available to you under applicable patent law.
|
|
||||||
|
|
||||||
12. No Surrender of Others' Freedom.
|
|
||||||
|
|
||||||
If conditions are imposed on you (whether by court order, agreement or
|
|
||||||
otherwise) that contradict the conditions of this License, they do not
|
|
||||||
excuse you from the conditions of this License. If you cannot convey a
|
|
||||||
covered work so as to satisfy simultaneously your obligations under this
|
|
||||||
License and any other pertinent obligations, then as a consequence you may
|
|
||||||
not convey it at all. For example, if you agree to terms that obligate you
|
|
||||||
to collect a royalty for further conveying from those to whom you convey
|
|
||||||
the Program, the only way you could satisfy both those terms and this
|
|
||||||
License would be to refrain entirely from conveying the Program.
|
|
||||||
|
|
||||||
13. Use with the GNU Affero General Public License.
|
|
||||||
|
|
||||||
Notwithstanding any other provision of this License, you have
|
|
||||||
permission to link or combine any covered work with a work licensed
|
|
||||||
under version 3 of the GNU Affero General Public License into a single
|
|
||||||
combined work, and to convey the resulting work. The terms of this
|
|
||||||
License will continue to apply to the part which is the covered work,
|
|
||||||
but the special requirements of the GNU Affero General Public License,
|
|
||||||
section 13, concerning interaction through a network will apply to the
|
|
||||||
combination as such.
|
|
||||||
|
|
||||||
14. Revised Versions of this License.
|
|
||||||
|
|
||||||
The Free Software Foundation may publish revised and/or new versions of
|
|
||||||
the GNU General Public License from time to time. Such new versions will
|
|
||||||
be similar in spirit to the present version, but may differ in detail to
|
|
||||||
address new problems or concerns.
|
|
||||||
|
|
||||||
Each version is given a distinguishing version number. If the
|
|
||||||
Program specifies that a certain numbered version of the GNU General
|
|
||||||
Public License "or any later version" applies to it, you have the
|
|
||||||
option of following the terms and conditions either of that numbered
|
|
||||||
version or of any later version published by the Free Software
|
|
||||||
Foundation. If the Program does not specify a version number of the
|
|
||||||
GNU General Public License, you may choose any version ever published
|
|
||||||
by the Free Software Foundation.
|
|
||||||
|
|
||||||
If the Program specifies that a proxy can decide which future
|
|
||||||
versions of the GNU General Public License can be used, that proxy's
|
|
||||||
public statement of acceptance of a version permanently authorizes you
|
|
||||||
to choose that version for the Program.
|
|
||||||
|
|
||||||
Later license versions may give you additional or different
|
|
||||||
permissions. However, no additional obligations are imposed on any
|
|
||||||
author or copyright holder as a result of your choosing to follow a
|
|
||||||
later version.
|
|
||||||
|
|
||||||
15. Disclaimer of Warranty.
|
|
||||||
|
|
||||||
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
|
|
||||||
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
|
|
||||||
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
|
|
||||||
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
|
|
||||||
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
|
||||||
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
|
|
||||||
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
|
|
||||||
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
|
||||||
|
|
||||||
16. Limitation of Liability.
|
|
||||||
|
|
||||||
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
|
||||||
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
|
|
||||||
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
|
|
||||||
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
|
|
||||||
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
|
|
||||||
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
|
|
||||||
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
|
|
||||||
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
|
|
||||||
SUCH DAMAGES.
|
|
||||||
|
|
||||||
17. Interpretation of Sections 15 and 16.
|
|
||||||
|
|
||||||
If the disclaimer of warranty and limitation of liability provided
|
|
||||||
above cannot be given local legal effect according to their terms,
|
|
||||||
reviewing courts shall apply local law that most closely approximates
|
|
||||||
an absolute waiver of all civil liability in connection with the
|
|
||||||
Program, unless a warranty or assumption of liability accompanies a
|
|
||||||
copy of the Program in return for a fee.
|
|
||||||
|
|
||||||
END OF TERMS AND CONDITIONS
|
|
||||||
|
|
||||||
How to Apply These Terms to Your New Programs
|
|
||||||
|
|
||||||
If you develop a new program, and you want it to be of the greatest
|
|
||||||
possible use to the public, the best way to achieve this is to make it
|
|
||||||
free software which everyone can redistribute and change under these terms.
|
|
||||||
|
|
||||||
To do so, attach the following notices to the program. It is safest
|
|
||||||
to attach them to the start of each source file to most effectively
|
|
||||||
state the exclusion of warranty; and each file should have at least
|
|
||||||
the "copyright" line and a pointer to where the full notice is found.
|
|
||||||
|
|
||||||
<one line to give the program's name and a brief idea of what it does.>
|
|
||||||
Copyright (C) <year> <name of author>
|
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
This program is distributed in the hope that it will be useful,
|
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
GNU General Public License for more details.
|
|
||||||
|
|
||||||
You should have received a copy of the GNU General Public License
|
|
||||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
|
|
||||||
Also add information on how to contact you by electronic and paper mail.
|
|
||||||
|
|
||||||
If the program does terminal interaction, make it output a short
|
|
||||||
notice like this when it starts in an interactive mode:
|
|
||||||
|
|
||||||
<program> Copyright (C) <year> <name of author>
|
|
||||||
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
|
||||||
This is free software, and you are welcome to redistribute it
|
|
||||||
under certain conditions; type `show c' for details.
|
|
||||||
|
|
||||||
The hypothetical commands `show w' and `show c' should show the appropriate
|
|
||||||
parts of the General Public License. Of course, your program's commands
|
|
||||||
might be different; for a GUI interface, you would use an "about box".
|
|
||||||
|
|
||||||
You should also get your employer (if you work as a programmer) or school,
|
|
||||||
if any, to sign a "copyright disclaimer" for the program, if necessary.
|
|
||||||
For more information on this, and how to apply and follow the GNU GPL, see
|
|
||||||
<http://www.gnu.org/licenses/>.
|
|
||||||
|
|
||||||
The GNU General Public License does not permit incorporating your program
|
|
||||||
into proprietary programs. If your program is a subroutine library, you
|
|
||||||
may consider it more useful to permit linking proprietary applications with
|
|
||||||
the library. If this is what you want to do, use the GNU Lesser General
|
|
||||||
Public License instead of this License. But first, please read
|
|
||||||
<http://www.gnu.org/philosophy/why-not-lgpl.html>.
|
|
||||||
14
pkg/usr/lib/systemd/system/spark-update-notifier.service
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Spark Store update notifier
|
||||||
|
After=apt-daily.service network.target network-online.target systemd-networkd.service NetworkManager.service connman.service
|
||||||
|
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=simple
|
||||||
|
RemainAfterExit=yes
|
||||||
|
ExecStart=/opt/durapps/spark-store/bin/update-upgrade/ss-update-notify-placer.sh
|
||||||
|
Restart=on-failure
|
||||||
|
RestartSec=10
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
|
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
@@ -1,9 +1,57 @@
|
|||||||
|
TARGET = spark-store
|
||||||
TEMPLATE = subdirs
|
TEMPLATE = subdirs
|
||||||
|
|
||||||
CONFIG += ordered
|
CONFIG += ordered
|
||||||
|
|
||||||
SUBDIRS += \
|
SUBDIRS += \
|
||||||
|
src/spark-dstore-patch \
|
||||||
third-party/QtNetworkService \
|
third-party/QtNetworkService \
|
||||||
src/spark-store.pro
|
src/spark-store.pro
|
||||||
|
|
||||||
|
|
||||||
spark-store.depends = third-party/QtNetworkService
|
spark-store.depends = third-party/QtNetworkService
|
||||||
|
|
||||||
|
# Update translation files
|
||||||
|
CONFIG(release, debug|release): system(bash $${PWD}/translate_generation.sh)
|
||||||
|
|
||||||
|
# Rules for deployment
|
||||||
|
tool.files += tool/*
|
||||||
|
tool.path = /opt/durapps/$${TARGET}/bin
|
||||||
|
|
||||||
|
qm.files += translations/*.qm
|
||||||
|
qm.path = /usr/share/spark-store/translations
|
||||||
|
|
||||||
|
preferences.files += pkg/etc/apt/preferences.d/sparkstore
|
||||||
|
preferences.path = /etc/apt/preferences.d
|
||||||
|
|
||||||
|
sourceslist.files += pkg/etc/apt/sources.list.d/sparkstore.list
|
||||||
|
sourceslist.path = /etc/apt/sources.list.d
|
||||||
|
|
||||||
|
desktop.files += pkg/usr/share/applications/spark-store.desktop
|
||||||
|
desktop.path = /usr/share/applications
|
||||||
|
|
||||||
|
service.files += pkg/usr/lib/systemd/system/spark-update-notifier.service
|
||||||
|
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.path = /usr/share/icons/hicolor/scalable/apps
|
||||||
|
|
||||||
|
tmp.files += pkg/tmp/spark-store-install/feedback.sh
|
||||||
|
tmp.path = /tmp/spark-store-install
|
||||||
|
|
||||||
|
INSTALLS += \
|
||||||
|
tool \
|
||||||
|
qm \
|
||||||
|
desktop \
|
||||||
|
icon \
|
||||||
|
sourceslist \
|
||||||
|
preferences \
|
||||||
|
tmp \
|
||||||
|
service
|
||||||
|
# polkit-1
|
||||||
|
# 暂时不添加
|
||||||
|
|||||||
@@ -45,14 +45,19 @@ downloadlist::downloadlist(QWidget *parent) :
|
|||||||
menu_install->addAction(action_dpkg);
|
menu_install->addAction(action_dpkg);
|
||||||
}
|
}
|
||||||
|
|
||||||
QFile deepin("/usr/bin/deepin-deb-installer");
|
// QFile deepin("/usr/bin/deepin-deb-installer");
|
||||||
deepin.open(QIODevice::ReadOnly);
|
// deepin.open(QIODevice::ReadOnly);
|
||||||
if(deepin.isOpen())
|
// if(deepin.isOpen())
|
||||||
{
|
// {
|
||||||
menu_install->addAction(action_deepin);
|
// menu_install->addAction(action_deepin);
|
||||||
}
|
// }
|
||||||
|
// QFile gdebi("/usr/bin/gdebi");
|
||||||
menu_install->addAction(action_gdebi);
|
// gdebi.open(QIODevice::ReadOnly);
|
||||||
|
// if(gdebi.isOpen())
|
||||||
|
// {
|
||||||
|
// menu_install->addAction(action_gdebi);
|
||||||
|
// }
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
downloadlist::~downloadlist()
|
downloadlist::~downloadlist()
|
||||||
@@ -66,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"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -87,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 Failed,Check Your Connection"));
|
|
||||||
ui->pushButton_install->setEnabled(false);
|
|
||||||
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if(!close)
|
if(!close)
|
||||||
{
|
{
|
||||||
ui->progressBar->hide();
|
ui->progressBar->hide();
|
||||||
@@ -144,35 +136,17 @@ void downloadlist::install(int t)
|
|||||||
QtConcurrent::run([=]()
|
QtConcurrent::run([=]()
|
||||||
{
|
{
|
||||||
QProcess installer;
|
QProcess installer;
|
||||||
if(!reinstall)
|
switch(t)
|
||||||
{
|
{
|
||||||
switch(t)
|
case 0:
|
||||||
{
|
installer.start("pkexec", QStringList() << "ssinstall" << "/tmp/spark-store/" + ui->label_filename->text().toUtf8());
|
||||||
case 0:
|
break;
|
||||||
installer.start("pkexec ssinstall /tmp/spark-store/" + ui->label_filename->text().toUtf8());
|
case 1:
|
||||||
break;
|
installer.start("deepin-deb-installer", QStringList() << "/tmp/spark-store/" + ui->label_filename->text().toUtf8());
|
||||||
case 1:
|
break;
|
||||||
installer.start("deepin-deb-installer /tmp/spark-store/" + ui->label_filename->text().toUtf8());
|
case 2:
|
||||||
break;
|
installer.start("pkexec", QStringList() << "gdebi" << "-n" << "/tmp/spark-store/" + ui->label_filename->text().toUtf8());
|
||||||
case 2:
|
break;
|
||||||
installer.start("pkexec gdebi -n /tmp/spark-store/" + ui->label_filename->text().toUtf8());
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
switch(t)
|
|
||||||
{
|
|
||||||
case 0:
|
|
||||||
installer.start("pkexec ssinstall /tmp/spark-store/" + ui->label_filename->text().toUtf8());
|
|
||||||
break;
|
|
||||||
case 1:
|
|
||||||
installer.start("deepin-deb-installer /tmp/spark-store/" + ui->label_filename->text().toUtf8());
|
|
||||||
break;
|
|
||||||
case 2:
|
|
||||||
installer.start("pkexec gdebi -n /tmp/spark-store/" + ui->label_filename->text().toUtf8());
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool haveError = false;
|
bool haveError = false;
|
||||||
@@ -245,6 +219,7 @@ void downloadlist::on_pushButton_3_clicked()
|
|||||||
{
|
{
|
||||||
textbrowser->setLineWidth(0);
|
textbrowser->setLineWidth(0);
|
||||||
textbrowser->setText(out);
|
textbrowser->setText(out);
|
||||||
|
textbrowser->setMinimumHeight(500);
|
||||||
|
|
||||||
output_w->setMinimumHeight(600);
|
output_w->setMinimumHeight(600);
|
||||||
output_w->setAttribute(Qt::WA_TranslucentBackground);
|
output_w->setAttribute(Qt::WA_TranslucentBackground);
|
||||||
|
|||||||
@@ -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,23 +19,6 @@ 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 = {
|
||||||
"d1.store.deepinos.org.cn",
|
"d1.store.deepinos.org.cn",
|
||||||
@@ -126,94 +31,159 @@ 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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @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)
|
||||||
{
|
{
|
||||||
emit errorOccur("文件大小获取失败");
|
emit errorOccur("文件大小获取失败");
|
||||||
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; // 余数部分加入最后一个
|
|
||||||
|
|
||||||
// 打开文件
|
|
||||||
QDir tmpdir("/tmp/spark-store");
|
|
||||||
file = new QFile;
|
|
||||||
file->setFileName(tmpdir.absoluteFilePath(filename));
|
|
||||||
|
|
||||||
if(file->exists())
|
|
||||||
{
|
|
||||||
file->remove();
|
|
||||||
}
|
|
||||||
|
|
||||||
if(!file->open(QIODevice::WriteOnly))
|
|
||||||
{
|
|
||||||
delete file;
|
|
||||||
file = nullptr;
|
|
||||||
emit errorOccur(file->errorString());
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
file->resize(fileSize);
|
QtConcurrent::run([=]()
|
||||||
|
|
||||||
// 创建下载线程
|
|
||||||
workers.clear();
|
|
||||||
for(int i = 0; i < ranges.size(); i++)
|
|
||||||
{
|
{
|
||||||
qDebug() << QString("第%1个下载请求:%2-%3").arg(i).arg(ranges.at(i).first).arg(ranges.at(i).second);
|
QFile serverList(QDir::homePath().toUtf8() + "/.config/spark-store/server.list");
|
||||||
auto worker = new DownloadWorker(this);
|
if (serverList.open(QFile::ReadOnly))
|
||||||
auto range = ranges.at(i);
|
{
|
||||||
QString chunkUrl = replaceDomain(url, domains.at(i));
|
QStringList list = QString(serverList.readAll()).trimmed().split("\n");
|
||||||
worker->setIdentifier(i);
|
qDebug() << list << list.size();
|
||||||
worker->setParamter(chunkUrl, range, file);
|
domains.clear();
|
||||||
workers.append(worker);
|
|
||||||
|
|
||||||
connect(worker, &DownloadWorker::downloadProcess, this, &DownloadController::handleProcess);
|
for (int i = 0; i < list.size(); i++)
|
||||||
connect(worker, &DownloadWorker::workFinished, this, &DownloadController::chunkDownloadFinish);
|
{
|
||||||
|
if (list.at(i).contains("镜像源 Download only") && i + 1 < list.size())
|
||||||
|
{
|
||||||
|
for (int j = i + 1; j < list.size(); j++)
|
||||||
|
{
|
||||||
|
system("curl -I -s --connect-timeout 5 https://" + list.at(j).toUtf8() + "/dcs-repo.gpg-key.asc -w %{http_code} |tail -n1 > /tmp/spark-store/cdnStatus.txt");
|
||||||
|
QFile cdnStatus("/tmp/spark-store/cdnStatus.txt");
|
||||||
|
if (cdnStatus.open(QFile::ReadOnly) && QString(cdnStatus.readAll()).toUtf8() == "200")
|
||||||
|
{
|
||||||
|
qDebug() << list.at(j);
|
||||||
|
domains.append(list.at(j));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (domains.size() == 0)
|
||||||
|
{
|
||||||
|
domains.append("d.store.deepinos.org.cn");
|
||||||
|
}
|
||||||
|
qDebug() << domains << domains.size();
|
||||||
|
}
|
||||||
|
|
||||||
worker->doWork();
|
QDir tmpdir("/tmp/spark-store/");
|
||||||
}
|
QString aria2Command = "-d";
|
||||||
|
QString aria2Urls = "";
|
||||||
|
QString aria2Verbose = "--summary-interval=1";
|
||||||
|
QString aria2Threads = "-s " + QString::number(domains.size());
|
||||||
|
QString aria2NoConfig = "--no-conf";
|
||||||
|
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 += " ";
|
||||||
|
}
|
||||||
|
|
||||||
|
qint64 downloadSizeRecord = 0;
|
||||||
|
QString speedInfo = "";
|
||||||
|
QString percentInfo = "";
|
||||||
|
command.append(aria2Command.toUtf8());
|
||||||
|
command.append(downloadDir.toUtf8());
|
||||||
|
command.append(aria2Verbose.toUtf8());
|
||||||
|
command.append(aria2Threads.toUtf8());
|
||||||
|
command.append(aria2NoConfig.toUtf8());
|
||||||
|
qDebug() << command;
|
||||||
|
auto cmd = new QProcess();
|
||||||
|
cmd->setProcessChannelMode(QProcess::MergedChannels);
|
||||||
|
cmd->setProgram("aria2c");
|
||||||
|
cmd->setArguments(command);
|
||||||
|
cmd->start();
|
||||||
|
cmd->waitForStarted(); //等待启动完成
|
||||||
|
|
||||||
|
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;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (speedPlace1 != -1 && speedPlace2 != -1)
|
||||||
|
{
|
||||||
|
speedInfo = message.mid(speedPlace1 + 3, speedPlace2 - speedPlace1 - 3);
|
||||||
|
speedInfo += "/s";
|
||||||
|
}
|
||||||
|
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;
|
||||||
|
while (cmd->waitForFinished(-1))
|
||||||
|
{
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
emit downloadFinished();
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -221,45 +191,13 @@ 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;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
qint64 DownloadController::getFileSize(const QString &url)
|
||||||
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)
|
|
||||||
{
|
{
|
||||||
QEventLoop event;
|
QEventLoop event;
|
||||||
QNetworkAccessManager requestManager;
|
QNetworkAccessManager requestManager;
|
||||||
@@ -267,20 +205,19 @@ qint64 DownloadController::getFileSize(const QString& url)
|
|||||||
request.setUrl(QUrl(url));
|
request.setUrl(QUrl(url));
|
||||||
request.setAttribute(QNetworkRequest::FollowRedirectsAttribute, true);
|
request.setAttribute(QNetworkRequest::FollowRedirectsAttribute, true);
|
||||||
QNetworkReply *reply = requestManager.head(request);
|
QNetworkReply *reply = requestManager.head(request);
|
||||||
connect(reply, static_cast<void(QNetworkReply::*)(QNetworkReply::NetworkError) > (&QNetworkReply::error),
|
connect(reply, static_cast<void (QNetworkReply::*)(QNetworkReply::NetworkError)>(&QNetworkReply::error),
|
||||||
[this, reply](QNetworkReply::NetworkError error)
|
[this, reply](QNetworkReply::NetworkError error)
|
||||||
{
|
{
|
||||||
if(error != QNetworkReply::NoError)
|
if (error != QNetworkReply::NoError)
|
||||||
{
|
{
|
||||||
emit errorOccur(reply->errorString());
|
emit errorOccur(reply->errorString());
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
connect(reply, &QNetworkReply::finished, &event, &QEventLoop::quit);
|
connect(reply, &QNetworkReply::finished, &event, &QEventLoop::quit);
|
||||||
event.exec();
|
event.exec();
|
||||||
|
|
||||||
qint64 fileSize = 0;
|
qint64 fileSize = 0;
|
||||||
if(reply->rawHeader("Accept-Ranges") == QByteArrayLiteral("bytes")
|
if (reply->rawHeader("Accept-Ranges") == QByteArrayLiteral("bytes") && reply->hasRawHeader(QString("Content-Length").toLocal8Bit()))
|
||||||
&& reply->hasRawHeader(QString("Content-Length").toLocal8Bit()))
|
|
||||||
{
|
{
|
||||||
fileSize = reply->header(QNetworkRequest::ContentLengthHeader).toUInt();
|
fileSize = reply->header(QNetworkRequest::ContentLengthHeader).toUInt();
|
||||||
}
|
}
|
||||||
@@ -289,10 +226,10 @@ qint64 DownloadController::getFileSize(const QString& url)
|
|||||||
return fileSize;
|
return fileSize;
|
||||||
}
|
}
|
||||||
|
|
||||||
QString DownloadController::replaceDomain(const QString& url, const QString domain)
|
QString DownloadController::replaceDomain(const QString &url, const QString domain)
|
||||||
{
|
{
|
||||||
QRegularExpression regex(R"((?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\.)+[a-z0-9][a-z0-9-]{0,61}[a-z0-9])");
|
QRegularExpression regex(R"((?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\.)+[a-z0-9][a-z0-9-]{0,61}[a-z0-9])");
|
||||||
if(regex.match(url).hasMatch())
|
if (regex.match(url).hasMatch())
|
||||||
{
|
{
|
||||||
return QString(url).replace(regex.match(url).captured(), domain);
|
return QString(url).replace(regex.match(url).captured(), domain);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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();
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|||||||
57
src/main.cpp
@@ -1,7 +1,8 @@
|
|||||||
#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 <QScreen>
|
#include <QScreen>
|
||||||
|
|
||||||
#include "widget.h"
|
#include "widget.h"
|
||||||
@@ -9,40 +10,48 @@
|
|||||||
DWIDGET_USE_NAMESPACE
|
DWIDGET_USE_NAMESPACE
|
||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
DApplication::loadDXcbPlugin(); // 让 bar 处在标题栏中
|
DApplication::loadDXcbPlugin(); // 已废弃,但是对于非deepin桌面可以正常使用标题栏
|
||||||
DApplication::setAttribute(Qt::AA_EnableHighDpiScaling); // 开启 Hidpi 支持
|
DApplication::setAttribute(Qt::AA_EnableHighDpiScaling); // 开启 Hidpi 支持
|
||||||
DApplication a(argc, argv);
|
// 程序内强制添加"-platformtheme deepin"参数喂给Qt让Qt正确使用Deepin主题修复各种奇怪样式问题
|
||||||
|
QVector<char*> fakeArgs(argc + 2);
|
||||||
|
fakeArgs[0] = argv[0];
|
||||||
|
fakeArgs[1] = "-platformtheme";
|
||||||
|
fakeArgs[2] = "deepin";
|
||||||
|
for(int i = 1; i < argc; i++) fakeArgs[i + 2] = argv[i];
|
||||||
|
int fakeArgc = argc + 2; // 为啥DApplication的argc要用引用啊?
|
||||||
|
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.4-1"));
|
||||||
* 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 LTS"));
|
a.setApplicationVersion(DApplication::buildVersion("3.1.4-1"));
|
||||||
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(
|
||||||
|
|||||||
9
src/spark-dstore-patch/spark-dstore-patch.pro
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
TARGET = spark-dstore-patch
|
||||||
|
TEMPLATE += app
|
||||||
|
QT += widgets
|
||||||
|
SOURCES += spark-dstore-tool.cpp
|
||||||
|
|
||||||
|
# Default rules for deployment.
|
||||||
|
qnx: target.path = /tmp/spark-store/bin
|
||||||
|
else: unix:!android: target.path = /opt/durapps/spark-store/bin
|
||||||
|
!isEmpty(target.path): INSTALLS += target
|
||||||
195
src/spark-dstore-patch/spark-dstore-tool.cpp
Normal file
@@ -0,0 +1,195 @@
|
|||||||
|
#include <QCoreApplication>
|
||||||
|
#include <QDir>
|
||||||
|
#include <QJsonObject>
|
||||||
|
#include <QJsonDocument>
|
||||||
|
#include <QDebug>
|
||||||
|
#include <QDirIterator>
|
||||||
|
#include <QProcess>
|
||||||
|
|
||||||
|
#include <unistd.h>
|
||||||
|
|
||||||
|
QList<QJsonObject> enumAppInfoList()
|
||||||
|
{
|
||||||
|
QList<QJsonObject> appInfoList;
|
||||||
|
QDir apps("/opt/apps");
|
||||||
|
auto list = apps.entryList(QDir::Dirs | QDir::NoDotAndDotDot);
|
||||||
|
for (auto &appID : list) {
|
||||||
|
auto infoPath = apps.absoluteFilePath(appID + "/info");
|
||||||
|
QFile infoFile(infoPath);
|
||||||
|
if (!infoFile.open(QIODevice::ReadOnly)) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
auto doc = QJsonDocument::fromJson(infoFile.readAll());
|
||||||
|
appInfoList.push_back(doc.object());
|
||||||
|
}
|
||||||
|
return appInfoList;
|
||||||
|
}
|
||||||
|
//这段是去找appid和info,没看懂用来干啥的,在此之后info文件也没再用过
|
||||||
|
//可能以后版本的实现会用到,等官方加功能再说
|
||||||
|
void linkDir(const QString &source, const QString &target)
|
||||||
|
{
|
||||||
|
auto ensureTargetDir = [](const QString &targetFile) {
|
||||||
|
QFileInfo t(targetFile);
|
||||||
|
QDir tDir(t.dir());
|
||||||
|
tDir.mkpath(".");
|
||||||
|
};
|
||||||
|
|
||||||
|
QDir sourceDir(source);
|
||||||
|
QDir targetDir(target);
|
||||||
|
QDirIterator iter(source, QDir::Files | QDir::NoDotAndDotDot, QDirIterator::Subdirectories);
|
||||||
|
while (iter.hasNext()) {
|
||||||
|
auto sourceFile = iter.next();
|
||||||
|
auto targetFile = targetDir.absoluteFilePath(sourceDir.relativeFilePath(sourceFile));
|
||||||
|
|
||||||
|
QFileInfo tfi(targetFile);
|
||||||
|
// if (tfi.isSymLink() && (tfi.canonicalFilePath() == sourceFile)) {
|
||||||
|
//这里官方应该是写错了,否则会每触发一次就把所有软链接都删了重新创建一次
|
||||||
|
if (tfi.isSymLink() && (tfi.symLinkTarget() == sourceFile)) {
|
||||||
|
continue;
|
||||||
|
} else {
|
||||||
|
QFile::remove(targetFile);
|
||||||
|
}
|
||||||
|
|
||||||
|
ensureTargetDir(targetFile);
|
||||||
|
auto ret = symlink(sourceFile.toStdString().c_str(), targetFile.toStdString().c_str());
|
||||||
|
if (0 != ret) {
|
||||||
|
qDebug() << "link failed" << sourceFile << "=>" << targetFile << ret;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//reset Dynamic library rpath
|
||||||
|
void setRpath(const QString &file, const QString &path)
|
||||||
|
{
|
||||||
|
if (!QFileInfo::exists(path))
|
||||||
|
return;
|
||||||
|
QProcess p;
|
||||||
|
auto cmd = "patchelf " + file + " --set-rpath " + path;
|
||||||
|
p.start("bash", QStringList {"-c", cmd});
|
||||||
|
p.waitForFinished();
|
||||||
|
}
|
||||||
|
|
||||||
|
QString getGlic()
|
||||||
|
{
|
||||||
|
//get arch & glibc
|
||||||
|
QProcess p;
|
||||||
|
auto cmd = "gcc -dumpmachine";
|
||||||
|
p.start("bash", QStringList {"-c", cmd});
|
||||||
|
p.waitForFinished();
|
||||||
|
return p.readAll();
|
||||||
|
}
|
||||||
|
|
||||||
|
void linkApp(const QJsonObject &app)
|
||||||
|
{
|
||||||
|
auto appID = app.value("appid").toString();
|
||||||
|
auto appEntriesDir = QDir("/opt/apps/" + appID + "/entries");
|
||||||
|
auto appLibsDir = QDir("/opt/apps/" + appID + "/files/lib");
|
||||||
|
auto autoStartDir = QDir(appEntriesDir.absoluteFilePath("autostart"));
|
||||||
|
|
||||||
|
bool autoStart = app.value("permissions").toObject().value("autostart").toBool();
|
||||||
|
if (autoStart) {
|
||||||
|
linkDir(appEntriesDir.absoluteFilePath("autostart"), "/etc/xdg/autostart");
|
||||||
|
}
|
||||||
|
|
||||||
|
// link application
|
||||||
|
auto sysShareDir = QDir("/usr/share");
|
||||||
|
linkDir(appEntriesDir.absoluteFilePath("applications"), sysShareDir.absoluteFilePath("applications"));
|
||||||
|
linkDir(appEntriesDir.absoluteFilePath("icons"), sysShareDir.absoluteFilePath("icons"));
|
||||||
|
linkDir(appEntriesDir.absoluteFilePath("mime"), sysShareDir.absoluteFilePath("mime"));
|
||||||
|
linkDir(appEntriesDir.absoluteFilePath("glib-2.0"), sysShareDir.absoluteFilePath("glib-2.0"));
|
||||||
|
linkDir(appEntriesDir.absoluteFilePath("services"), sysShareDir.absoluteFilePath("dbus-1/services"));
|
||||||
|
linkDir(appEntriesDir.absoluteFilePath("GConf"), sysShareDir.absoluteFilePath("GConf"));
|
||||||
|
linkDir(appEntriesDir.absoluteFilePath("help"), sysShareDir.absoluteFilePath("help"));
|
||||||
|
linkDir(appEntriesDir.absoluteFilePath("locale"), sysShareDir.absoluteFilePath("locale"));
|
||||||
|
linkDir(appEntriesDir.absoluteFilePath("fcitx"), sysShareDir.absoluteFilePath("fcitx"));
|
||||||
|
linkDir(appEntriesDir.absoluteFilePath("polkit"), sysShareDir.absoluteFilePath("polkit-1"));
|
||||||
|
linkDir(appEntriesDir.absoluteFilePath("fonts/conf"), "/etc/fonts/conf.d");
|
||||||
|
linkDir(appEntriesDir.absoluteFilePath("fonts/files"), sysShareDir.absoluteFilePath("fonts"));
|
||||||
|
|
||||||
|
|
||||||
|
//原来会导致Gtk相关应用翻译缺失,补足了
|
||||||
|
|
||||||
|
|
||||||
|
auto pluginDir = QDir(appEntriesDir.absoluteFilePath("plugins"));
|
||||||
|
if (pluginDir.exists()) {
|
||||||
|
QString arch = getGlic();
|
||||||
|
// if (pluginDir.exists()) {
|
||||||
|
// QDirIterator iter(pluginDir.absolutePath(), QDir::Files | QDir::NoDotAndDotDot, QDirIterator::Subdirectories);
|
||||||
|
// while (iter.hasNext()) {
|
||||||
|
// auto sourceFile = iter.next();
|
||||||
|
// setRpath(sourceFile, appLibsDir.absolutePath()); //set rpath
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
|
||||||
|
linkDir(appEntriesDir.absoluteFilePath("plugins/fcitx"), "/usr/lib/" + arch + "/fcitx");
|
||||||
|
linkDir(appEntriesDir.absoluteFilePath("plugins/browser"), "/usr/lib/mozilla/plugins");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void cleanLink()
|
||||||
|
{
|
||||||
|
auto cleanDirBrokenLink = [](const QString &dir) {
|
||||||
|
QProcess p;
|
||||||
|
auto cmd = "find " + dir + " -xtype l -delete";
|
||||||
|
p.start("bash", QStringList {"-c", cmd});
|
||||||
|
p.waitForFinished();
|
||||||
|
};
|
||||||
|
|
||||||
|
QString arch = getGlic();
|
||||||
|
auto sysShareDir = QDir("/usr/share");
|
||||||
|
cleanDirBrokenLink(sysShareDir.absoluteFilePath("applications"));
|
||||||
|
cleanDirBrokenLink(sysShareDir.absoluteFilePath("icons"));
|
||||||
|
cleanDirBrokenLink(sysShareDir.absoluteFilePath("mime/packages"));
|
||||||
|
cleanDirBrokenLink(sysShareDir.absoluteFilePath("glib-2.0"));
|
||||||
|
cleanDirBrokenLink(sysShareDir.absoluteFilePath("dbus-1/services"));
|
||||||
|
cleanDirBrokenLink("/etc/xdg/autostart");
|
||||||
|
cleanDirBrokenLink(sysShareDir.absoluteFilePath("fcitx"));
|
||||||
|
cleanDirBrokenLink(sysShareDir.absoluteFilePath("help"));
|
||||||
|
cleanDirBrokenLink(sysShareDir.absoluteFilePath("locale"));
|
||||||
|
cleanDirBrokenLink("/usr/lib/" + arch + "/fcitx");
|
||||||
|
cleanDirBrokenLink("/usr/lib/mozilla/plugins");
|
||||||
|
cleanDirBrokenLink(sysShareDir.absoluteFilePath("polkit-1/actions"));
|
||||||
|
cleanDirBrokenLink(sysShareDir.absoluteFilePath("fonts"));
|
||||||
|
cleanDirBrokenLink("/etc/fonts/conf.d");
|
||||||
|
}
|
||||||
|
|
||||||
|
void update()
|
||||||
|
{
|
||||||
|
QProcess p;
|
||||||
|
auto cmd = "glib-compile-schemas /usr/share/glib-2.0/schemas/";
|
||||||
|
p.start("bash", QStringList {"-c", cmd});
|
||||||
|
p.waitForFinished();
|
||||||
|
|
||||||
|
cmd = "update-icon-caches /usr/share/icons/*";
|
||||||
|
p.start("bash", QStringList {"-c", cmd});
|
||||||
|
p.waitForFinished();
|
||||||
|
|
||||||
|
cmd = "update-desktop-database -q";
|
||||||
|
p.start("bash", QStringList {"-c", cmd});
|
||||||
|
p.waitForFinished();
|
||||||
|
|
||||||
|
cmd = "update-mime-database -V /usr/share/mime";
|
||||||
|
p.start("bash", QStringList {"-c", cmd});
|
||||||
|
p.waitForFinished();
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
int main(int argc, char **argv)
|
||||||
|
{
|
||||||
|
QCoreApplication app(argc, argv);
|
||||||
|
|
||||||
|
cleanLink();
|
||||||
|
|
||||||
|
for (auto &a : enumAppInfoList()) {
|
||||||
|
linkApp(a);
|
||||||
|
}
|
||||||
|
qInfo()<<"Spark dstore patch (c) The Spark Project 2022-Now. Modified from deepin-app-store-tool";
|
||||||
|
|
||||||
|
// trigger
|
||||||
|
update();
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
@@ -26,10 +26,10 @@ DEFINES += QT_APP_DEBUG
|
|||||||
include(../third-party/QtNetworkService/QtNetworkService.pri)
|
include(../third-party/QtNetworkService/QtNetworkService.pri)
|
||||||
|
|
||||||
CONFIG += c++11 link_pkgconfig
|
CONFIG += c++11 link_pkgconfig
|
||||||
PKGCONFIG += dtkwidget glib-2.0 gdk-pixbuf-2.0 libnotify
|
PKGCONFIG += dtkcore dtkgui dtkwidget libnotify
|
||||||
|
|
||||||
# 禁止输出 qWarning / qDebug 信息
|
# 禁止输出 qWarning / qDebug 信息
|
||||||
CONFIG(release, debug|release): DEFINES += QT_NO_WARNING_OUTPUT QT_NO_DEBUG_OUTPUT
|
#CONFIG(release, debug|release): DEFINES += QT_NO_WARNING_OUTPUT QT_NO_DEBUG_OUTPUT
|
||||||
|
|
||||||
SOURCES += \
|
SOURCES += \
|
||||||
appitem.cpp \
|
appitem.cpp \
|
||||||
@@ -81,3 +81,8 @@ TRANSLATIONS += \
|
|||||||
../translations/spark-store_en.ts \
|
../translations/spark-store_en.ts \
|
||||||
../translations/spark-store_fr.ts \
|
../translations/spark-store_fr.ts \
|
||||||
../translations/spark-store_zh_CN.ts
|
../translations/spark-store_zh_CN.ts
|
||||||
|
|
||||||
|
# Default rules for deployment.
|
||||||
|
qnx: target.path = /tmp/$${TARGET}/bin
|
||||||
|
else: unix:!android: target.path = /opt/durapps/$${TARGET}/bin
|
||||||
|
!isEmpty(target.path): INSTALLS += target
|
||||||
|
|||||||
@@ -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)
|
||||||
@@ -129,10 +128,12 @@ Widget::Widget(DBlurEffectWidget *parent) :
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
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,14 +193,18 @@ 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 and Install Settings"));
|
||||||
|
|
||||||
QMenu *menu = new QMenu;
|
QMenu *menu = new QMenu;
|
||||||
menu->addAction(setting);
|
menu->addAction(setting);
|
||||||
|
menu->addAction(upgrade);
|
||||||
menu->addAction(actionSubmission);
|
menu->addAction(actionSubmission);
|
||||||
|
|
||||||
titlebar->setMenu(menu);
|
titlebar->setMenu(menu);
|
||||||
|
|
||||||
connect(actionSubmission, &QAction::triggered, this, [=]{QDesktopServices::openUrl(QUrl("https://upload.deepinos.org/"));});
|
connect(actionSubmission, &QAction::triggered, this, [=]{QDesktopServices::openUrl(QUrl("https://upload.deepinos.org/"));});
|
||||||
connect(setting, &QAction::triggered, this, &Widget::opensetting);
|
connect(setting, &QAction::triggered, this, &Widget::opensetting);
|
||||||
|
connect(upgrade, &QAction::triggered, this, [=]{QProcess::startDetached("x-terminal-emulator -e /opt/durapps/spark-store/bin/update-upgrade/ss-update-controler.sh");});
|
||||||
|
|
||||||
// 载入自定义字体
|
// 载入自定义字体
|
||||||
int loadedFontID = QFontDatabase::addApplicationFont(":/fonts/fonts/hksnzt.ttf");
|
int loadedFontID = QFontDatabase::addApplicationFont(":/fonts/fonts/hksnzt.ttf");
|
||||||
@@ -629,8 +634,8 @@ void Widget::on_pushButton_download_clicked()
|
|||||||
download_list[allDownload - 1].setFileName(fileName);
|
download_list[allDownload - 1].setFileName(fileName);
|
||||||
|
|
||||||
QPixmap icon;
|
QPixmap icon;
|
||||||
icon.load("icon.png");
|
icon.load("/tmp/spark-store/icon.png", "PNG");
|
||||||
system("cp icon.png icon_" + QString::number(allDownload - 1).toUtf8() + ".png");
|
system("cp /tmp/spark-store/icon.png /tmp/spark-store/icon_" + QString::number(allDownload - 1).toUtf8() + ".png");
|
||||||
download_list[allDownload - 1].seticon(icon);
|
download_list[allDownload - 1].seticon(icon);
|
||||||
|
|
||||||
if(!isBusy)
|
if(!isBusy)
|
||||||
@@ -663,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);});
|
||||||
@@ -783,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)
|
||||||
{
|
{
|
||||||
@@ -825,7 +831,7 @@ void Widget::sltAppinfoResetUi()
|
|||||||
ui->pushButton_uninstall->hide();
|
ui->pushButton_uninstall->hide();
|
||||||
ui->pushButton_website->setEnabled(false);
|
ui->pushButton_website->setEnabled(false);
|
||||||
ui->pushButton->setEnabled(false);
|
ui->pushButton->setEnabled(false);
|
||||||
ui->pushButton_translate->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();
|
||||||
}
|
}
|
||||||
@@ -909,7 +915,7 @@ void Widget::sltAppinfoIcon(QPixmap *icon)
|
|||||||
ui->label_appicon->show();
|
ui->label_appicon->show();
|
||||||
ui->pushButton_download->setEnabled(true);
|
ui->pushButton_download->setEnabled(true);
|
||||||
ui->pushButton->setEnabled(true);
|
ui->pushButton->setEnabled(true);
|
||||||
ui->pushButton_translate->setEnabled(true);
|
ui->pushButton_update->setEnabled(true);
|
||||||
ui->pushButton_website->setEnabled(true);
|
ui->pushButton_website->setEnabled(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -950,7 +956,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)
|
||||||
{
|
{
|
||||||
@@ -1034,7 +1042,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;
|
||||||
@@ -1159,16 +1167,24 @@ void Widget::on_pushButton_uninstall_clicked()
|
|||||||
ui->pushButton_uninstall->setEnabled(false);
|
ui->pushButton_uninstall->setEnabled(false);
|
||||||
|
|
||||||
QProcess uninstall;
|
QProcess uninstall;
|
||||||
uninstall.start("pkexec apt purge -y " + pkgName.toLower());
|
uninstall.start("pkexec", QStringList() << "apt" << "purge" << "-y" << pkgName.toLower());
|
||||||
uninstall.waitForFinished();
|
uninstall.waitForFinished();
|
||||||
|
|
||||||
ui->pushButton_download->setEnabled(true);
|
QProcess check;
|
||||||
ui->pushButton_download->setText("Install");
|
check.start("dpkg", QStringList() << "-s" << pkgName.toLower());
|
||||||
ui->pushButton_uninstall->hide();
|
check.waitForFinished();
|
||||||
ui->pushButton_uninstall->setEnabled(true);
|
|
||||||
|
|
||||||
updatesEnabled();
|
if (check.readAllStandardOutput().isEmpty())
|
||||||
sendNotification(tr("Uninstall succeeded"));
|
{
|
||||||
|
ui->pushButton_download->setText(tr("Install"));
|
||||||
|
ui->pushButton_uninstall->hide();
|
||||||
|
|
||||||
|
updatesEnabled();
|
||||||
|
sendNotification(tr("Uninstall succeeded"));
|
||||||
|
}
|
||||||
|
|
||||||
|
ui->pushButton_download->setEnabled(true);
|
||||||
|
ui->pushButton_uninstall->setEnabled(true);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1312,7 +1328,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;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -1359,22 +1375,8 @@ void Widget::on_webEngineView_loadFinished(bool arg1)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void Widget::on_pushButton_translate_clicked()
|
void Widget::on_pushButton_update_clicked()
|
||||||
{
|
{
|
||||||
DDialog tipDialog;
|
QDesktopServices::openUrl(QUrl("https://www.deepinos.org/"));
|
||||||
tipDialog.setWordWrapMessage(true);
|
|
||||||
tipDialog.addButtons({ tr("Yes"), tr("No") });
|
|
||||||
tipDialog.setTitle(tr("Information for Contributors"));
|
|
||||||
tipDialog.setMessage(tr("Currently the translation contribution is limited to English,\n"
|
|
||||||
"and you will be redirected to our Gitee repository at which you are\n"
|
|
||||||
"supposed to be creating pull requests to contribute app info\n"
|
|
||||||
"translations.\n"
|
|
||||||
"Tips:You can simply click the file to edit to create a flat pull request without create a full pull request\n"
|
|
||||||
"Tips:You can use github account to login to Gitee"
|
|
||||||
"\nClick yes to continue."));
|
|
||||||
|
|
||||||
if(!tipDialog.exec())
|
|
||||||
{
|
|
||||||
QDesktopServices::openUrl("https://gitee.com/deepin-community-store/json/tree/master/store/" + type_name + '/' + pkgName);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -69,7 +69,7 @@ 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();
|
||||||
@@ -101,9 +101,9 @@ private slots:
|
|||||||
void on_webEngineView_loadProgress(int progress);
|
void on_webEngineView_loadProgress(int progress);
|
||||||
void on_webEngineView_loadFinished(bool arg1);
|
void on_webEngineView_loadFinished(bool arg1);
|
||||||
void on_pushButton_refresh_clicked();
|
void on_pushButton_refresh_clicked();
|
||||||
void on_pushButton_translate_clicked();
|
void on_pushButton_update_clicked();
|
||||||
|
|
||||||
public:
|
public:
|
||||||
QUrl url;
|
QUrl url;
|
||||||
|
|
||||||
downloadlist download_list[LIST_MAX];
|
downloadlist download_list[LIST_MAX];
|
||||||
@@ -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;
|
||||||
|
|||||||
@@ -345,7 +345,7 @@
|
|||||||
<number>0</number>
|
<number>0</number>
|
||||||
</property>
|
</property>
|
||||||
<property name="currentIndex">
|
<property name="currentIndex">
|
||||||
<number>4</number>
|
<number>2</number>
|
||||||
</property>
|
</property>
|
||||||
<widget class="QWidget" name="page">
|
<widget class="QWidget" name="page">
|
||||||
<layout class="QVBoxLayout" name="verticalLayout_4">
|
<layout class="QVBoxLayout" name="verticalLayout_4">
|
||||||
@@ -489,7 +489,7 @@
|
|||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>582</width>
|
<width>903</width>
|
||||||
<height>849</height>
|
<height>849</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
@@ -559,6 +559,9 @@
|
|||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Name</string>
|
<string>Name</string>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="textInteractionFlags">
|
||||||
|
<set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByMouse</set>
|
||||||
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="3" column="3" rowspan="5" colspan="8">
|
<item row="3" column="3" rowspan="5" colspan="8">
|
||||||
@@ -577,6 +580,9 @@
|
|||||||
<property name="wordWrap">
|
<property name="wordWrap">
|
||||||
<bool>true</bool>
|
<bool>true</bool>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="textInteractionFlags">
|
||||||
|
<set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByMouse</set>
|
||||||
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="3" column="1">
|
<item row="3" column="1">
|
||||||
@@ -760,10 +766,10 @@
|
|||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
<property name="toolTip">
|
<property name="toolTip">
|
||||||
<string><html><head/><body><p>Capable to Ubuntu 20.04</p></body></html></string>
|
<string><html><head/><body><p>Capable to Ubuntu 22.04</p></body></html></string>
|
||||||
</property>
|
</property>
|
||||||
<property name="whatsThis">
|
<property name="whatsThis">
|
||||||
<string><html><head/><body><p>Capable to Ubuntu 20.04</p></body></html></string>
|
<string><html><head/><body><p>Capable to Ubuntu 22.04</p></body></html></string>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string><html><head/><body><p><img src=":/tags/ubuntu-small.png"/></p></body></html></string>
|
<string><html><head/><body><p><img src=":/tags/ubuntu-small.png"/></p></body></html></string>
|
||||||
@@ -901,9 +907,9 @@
|
|||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="0" column="9">
|
<item row="0" column="9">
|
||||||
<widget class="QPushButton" name="pushButton_translate">
|
<widget class="QPushButton" name="pushButton_update">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Contribute translation</string>
|
<string>Request Update</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
@@ -936,6 +942,9 @@
|
|||||||
<property name="wordWrap">
|
<property name="wordWrap">
|
||||||
<bool>true</bool>
|
<bool>true</bool>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="textInteractionFlags">
|
||||||
|
<set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByMouse</set>
|
||||||
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
@@ -984,8 +993,8 @@
|
|||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>98</width>
|
<width>869</width>
|
||||||
<height>28</height>
|
<height>325</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_4">
|
<layout class="QHBoxLayout" name="horizontalLayout_4">
|
||||||
@@ -1419,8 +1428,8 @@
|
|||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>903</width>
|
<width>100</width>
|
||||||
<height>681</height>
|
<height>30</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
|
|||||||
@@ -29,7 +29,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++)
|
||||||
@@ -109,6 +109,11 @@ void SpkAppInfoLoaderThread::run()
|
|||||||
QPixmap appicon;
|
QPixmap appicon;
|
||||||
appicon.loadFromData(imgData);
|
appicon.loadFromData(imgData);
|
||||||
emit finishedIconLoad(&appicon);
|
emit finishedIconLoad(&appicon);
|
||||||
|
|
||||||
|
QFile icon("/tmp/spark-store/icon.png");
|
||||||
|
icon.open(QFile::WriteOnly);
|
||||||
|
appicon.save(&icon, "PNG");
|
||||||
|
icon.close();
|
||||||
})
|
})
|
||||||
.onError([this](QString errorStr)
|
.onError([this](QString errorStr)
|
||||||
{
|
{
|
||||||
|
|||||||
147
tool/apt-fast-conf/apt-fast.conf
Normal 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'
|
||||||
1
tool/apt-fast-conf/sources.list.d/sparkstore.list
Normal file
@@ -0,0 +1 @@
|
|||||||
|
deb [by-hash=force] https://d.store.deepinos.org.cn /
|
||||||
18
tool/auto-install-policy/store.spark-app.ssinstall.policy
Normal 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>
|
||||||
17
tool/password-check/ss-certificate-passwd
Executable 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
|
||||||
42
tool/ss-apt-fast
Executable file
@@ -0,0 +1,42 @@
|
|||||||
|
#/bin/bash
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
if [ "$1" = "install" ] || [ "$1" = "upgrade" ] || [ "$1" = "full-upgrade" ] || [ "$1" = "download" ] ; then
|
||||||
|
|
||||||
|
###刷新apt-fast配置
|
||||||
|
mkdir -p /tmp/ss-apt-fast-conf/sources.list.d
|
||||||
|
# 创建文件夹
|
||||||
|
echo "从服务器获取配置和镜像列表..."
|
||||||
|
echo "Getting server and mirror lists..."
|
||||||
|
echo
|
||||||
|
curl --progress-bar -o /tmp/ss-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"
|
||||||
|
chmod -R 755 /tmp/ss-apt-fast-conf
|
||||||
|
|
||||||
|
|
||||||
|
DEPEND=`which apt-fast`
|
||||||
|
if [ "$DEPEND" = "" ] ; then
|
||||||
|
echo "未安装依赖:apt-fast 开始安装"
|
||||||
|
sudo ss-apt-fast ssupdate && sudo bwrap --dev-bind / / --bind '/opt/durapps/spark-store/bin/apt-fast-conf/sources.list.d/sparkstore.list' /etc/apt/sources.list.d/sparkstore.list apt install apt-fast -y
|
||||||
|
fi
|
||||||
|
###执行安装
|
||||||
|
bwrap --dev-bind / / \
|
||||||
|
--bind '/tmp/ss-apt-fast-conf/apt-fast.conf' /etc/apt-fast.conf \
|
||||||
|
--bind '/opt/durapps/spark-store/bin/apt-fast-conf/sources.list.d/sparkstore.list' /etc/apt/sources.list.d/sparkstore.list \
|
||||||
|
apt-fast "$@"
|
||||||
|
|
||||||
|
rm -rf /tmp/ss-apt-fast-conf
|
||||||
|
|
||||||
|
elif [ "$1" = "ssupdate" ];then
|
||||||
|
sudo curl --progress-bar -o /opt/durapps/spark-store/bin/apt-fast-conf/sources.list.d/sparkstore.list "https://gitee.com/deepin-community-store/repo_auto_update_script/raw/master/mirror-list-for-apt-fast/sources.list.d/sparkstore.list"
|
||||||
|
sudo bwrap --dev-bind / / --bind '/opt/durapps/spark-store/bin/apt-fast-conf/sources.list.d/sparkstore.list' /etc/apt/sources.list.d/sparkstore.list apt update -o Dir::Etc::sourcelist="sources.list.d/sparkstore.list" -o Dir::Etc::sourceparts="-" -o APT::Get::List-Cleanup="0"
|
||||||
|
#只更新星火源
|
||||||
|
|
||||||
|
else
|
||||||
|
bwrap --dev-bind / / \
|
||||||
|
--bind '/opt/durapps/spark-store/bin/apt-fast-conf/sources.list.d/sparkstore.list' /etc/apt/sources.list.d/sparkstore.list \
|
||||||
|
apt "$@"
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
99
tool/ssinstall
Executable file
@@ -0,0 +1,99 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
#将来可能可以换成apt-metalink来直接用种子/链接下载
|
||||||
|
|
||||||
|
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权限时
|
||||||
|
|
||||||
|
IS_INSTALLED=`which apt-fast`
|
||||||
|
if [ "$IS_INSTALLED" = "" ] ; then
|
||||||
|
echo "未安装依赖:apt-fast 开始安装"
|
||||||
|
echo "$upass" | sudo -S /usr/local/bin/ss-apt-fast ssupdate && echo "$upass" | sudo -S bwrap --dev-bind / / --bind '/opt/durapps/spark-store/bin/apt-fast-conf/sources.list.d/sparkstore.list' /etc/apt/sources.list.d/sparkstore.list apt install apt-fast -y
|
||||||
|
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "$DEPEND" != "" ] && [ "$isuos" != "" ]; then
|
||||||
|
echo "UOS中系统依赖无法使用第三方下载工具,放弃使用apt-fast"
|
||||||
|
echo ----------------------------------------------------------------------------------
|
||||||
|
echo "$upass" | sudo -S dpkg -i $1 || sudo /usr/local/bin/ss-apt-fast ssupdate && sudo bwrap --dev-bind / / --bind '/opt/durapps/spark-store/bin/apt-fast-conf/sources.list.d/sparkstore.list' /etc/apt/sources.list.d/sparkstore.list apt install -yf
|
||||||
|
|
||||||
|
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "$DEPEND" != "" ] && [ "$isuos" = "" ]; then
|
||||||
|
echo "检测到apt-fast,使用/usr/local/bin/ss-apt-fast进行多线程下载加速"
|
||||||
|
echo ----------------------------------------------------------------------------------
|
||||||
|
echo "$upass" | sudo -S dpkg -i $1 || sudo /usr/local/bin/ss-apt-fast ssupdate && sudo /usr/local/bin/ss-apt-fast install -yf
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
else
|
||||||
|
###########################有root权限时
|
||||||
|
|
||||||
|
IS_INSTALLED=`which apt-fast`
|
||||||
|
if [ "$IS_INSTALLED" = "" ] ; then
|
||||||
|
echo "未安装依赖:apt-fast 开始安装"
|
||||||
|
/usr/local/bin/ss-apt-fast ssupdate && bwrap --dev-bind / / --bind '/opt/durapps/spark-store/bin/apt-fast-conf/sources.list.d/sparkstore.list' /etc/apt/sources.list.d/sparkstore.list apt install apt-fast -y
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "$DEPEND" != "" ] && [ "$isuos" != "" ]; then
|
||||||
|
echo "UOS中系统依赖无法使用第三方下载工具,放弃使用apt-fast"
|
||||||
|
echo ----------------------------------------------------------------------------------
|
||||||
|
dpkg -i $1 || /usr/local/bin/ss-apt-fast ssupdate && bwrap --dev-bind / / --bind '/opt/durapps/spark-store/bin/apt-fast-conf/sources.list.d/sparkstore.list' /etc/apt/sources.list.d/sparkstore.list apt update && sudo bwrap --dev-bind / / --bind '/opt/durapps/spark-store/bin/apt-fast-conf/sources.list.d/sparkstore.list' /etc/apt/sources.list.d/sparkstore.list apt install -yf
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "$DEPEND" != "" ] && [ "$isuos" = "" ]; then
|
||||||
|
echo "检测到apt-fast,使用/usr/local/bin/ss-apt-fast进行多线程下载加速"
|
||||||
|
echo ----------------------------------------------------------------------------------
|
||||||
|
dpkg -i $1 || /usr/local/bin/ss-apt-fast ssupdate && /usr/local/bin/ss-apt-fast install -yf
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
fi
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
[Desktop Entry]
|
||||||
|
Encoding=UTF-8
|
||||||
|
Type=Application
|
||||||
|
Exec=/opt/durapps/spark-store/bin/update-upgrade/ss-update-notify.sh
|
||||||
|
Name=spark-update-notifier
|
||||||
14
tool/update-upgrade/ss-do-upgrade.sh
Executable file
@@ -0,0 +1,14 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
echo "以上可升级,是否升级?[y/n]"
|
||||||
|
read yes_or_no
|
||||||
|
if [ "$yes_or_no" = "y" ];then
|
||||||
|
mkdir -p /tmp/ss-apt-fast-conf/sources.list.d
|
||||||
|
|
||||||
|
|
||||||
|
sudo bwrap --dev-bind / / --bind '/opt/durapps/spark-store/bin/apt-fast-conf/sources.list.d/sparkstore.list' /etc/apt/sources.list.d/sparkstore.list ss-apt-fast upgrade -y -o Dir::Etc::sourcelist="sources.list.d/sparkstore.list" -o Dir::Etc::sourceparts="-" -o APT::Get::List-Cleanup="0"
|
||||||
|
|
||||||
|
|
||||||
|
else
|
||||||
|
exit
|
||||||
|
fi
|
||||||
120
tool/update-upgrade/ss-update-controler.sh
Executable file
@@ -0,0 +1,120 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
reset
|
||||||
|
|
||||||
|
endloop=0
|
||||||
|
|
||||||
|
#####################检测是否启动过了更新检测工具
|
||||||
|
while [ $endloop -eq 0 ] ;do
|
||||||
|
|
||||||
|
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 "输入0 查看自动更新相关功能使用前须知(重要)"
|
||||||
|
echo "输入1 $text_update_open星火更新检测工具(如果开启则会在系统启动后自动检测更新。如有更新则会弹出通知)"
|
||||||
|
echo "输入2 查看可更新软件包列表并决定是否更新"
|
||||||
|
echo "输入3 $text_auto_install_open点击安装免输入密码功能"
|
||||||
|
echo "输入4 退出脚本"
|
||||||
|
echo
|
||||||
|
read -e option
|
||||||
|
|
||||||
|
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)
|
||||||
|
echo "执行以下操作需要授权..."
|
||||||
|
if [ -f /etc/xdg/autostart/spark-update-notifier.desktop ];then
|
||||||
|
echo "---检测到已经启动了自动更新检测,执行关闭"
|
||||||
|
sudo systemctl disable spark-update-notifier
|
||||||
|
sudo rm /etc/xdg/autostart/spark-update-notifier.desktop
|
||||||
|
sleep 3
|
||||||
|
reset
|
||||||
|
else
|
||||||
|
echo "---未检测到自动更新检测,执行启动"
|
||||||
|
sudo systemctl enable spark-update-notifier
|
||||||
|
sudo service spark-update-notifier start
|
||||||
|
# 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
|
||||||
|
/opt/durapps/spark-store/bin/update-upgrade/ss-update-notify.sh now
|
||||||
|
sleep 3
|
||||||
|
reset
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
|
||||||
|
2)
|
||||||
|
echo "请注意:如果有些更新需要从系统获取更多依赖,你将需要手动操作 sudo ss-apt-fast upgrade"
|
||||||
|
echo "执行以下操作需要授权..."
|
||||||
|
sudo ss-apt-fast ssupdate
|
||||||
|
/opt/durapps/spark-store/bin/update-upgrade/ss-upgrade-list.sh
|
||||||
|
/opt/durapps/spark-store/bin/update-upgrade/ss-do-upgrade.sh
|
||||||
|
echo "---请按回车返回"
|
||||||
|
read
|
||||||
|
reset
|
||||||
|
;;
|
||||||
|
3)
|
||||||
|
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
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
echo "---无法识别的输入!请重新输入"
|
||||||
|
reset
|
||||||
|
esac
|
||||||
|
|
||||||
|
done
|
||||||
60
tool/update-upgrade/ss-update-notify-placer.sh
Executable file
@@ -0,0 +1,60 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
set -e
|
||||||
|
rm -rf /tmp/spark-store-updatenum/number
|
||||||
|
LANG=en.US
|
||||||
|
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
#检测网络链接畅通
|
||||||
|
function network()
|
||||||
|
{
|
||||||
|
#超时时间
|
||||||
|
local timeout=5
|
||||||
|
|
||||||
|
#目标网站
|
||||||
|
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
|
||||||
|
#网络畅通
|
||||||
|
return 0
|
||||||
|
else
|
||||||
|
#网络不畅通
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
network
|
||||||
|
if [ $? -eq 1 ];then
|
||||||
|
echo "Network fail. Stop to avoid bother dpkg"
|
||||||
|
exit -1
|
||||||
|
fi
|
||||||
|
|
||||||
|
#The code above is modified from https://blog.csdn.net/yaxuan88521/article/details/120516298
|
||||||
|
|
||||||
|
curl --progress-bar -o /opt/durapps/spark-store/bin/apt-fast-conf/sources.list.d/sparkstore.list "https://gitee.com/deepin-community-store/repo_auto_update_script/raw/master/mirror-list-for-apt-fast/sources.list.d/sparkstore.list"
|
||||||
|
# 每日更新星火源文件
|
||||||
|
|
||||||
|
updatetext=`ss-apt-fast ssupdate`
|
||||||
|
|
||||||
|
|
||||||
|
mkdir -p /tmp/spark-store-updatenum/
|
||||||
|
|
||||||
|
|
||||||
|
isupdate=`echo ${updatetext: -5}`
|
||||||
|
if [ "$isupdate" = "date." ];then
|
||||||
|
sudo echo "0" > /tmp/spark-store-updatenum/number
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
update_app_number=`echo ${updatetext%package*} #从右向左截取第一个 src 后的字符串`
|
||||||
|
update_app_number=`echo ${update_app_number##*information...}`
|
||||||
|
sudo echo "$update_app_number" > /tmp/spark-store-updatenum/number
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
28
tool/update-upgrade/ss-update-notify.sh
Executable file
@@ -0,0 +1,28 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
set -e
|
||||||
|
isexistnumber=0
|
||||||
|
if [ "$1" = "now" ];then
|
||||||
|
if [ -f /tmp/spark-store-updatenum/number ];then
|
||||||
|
update_app_number=`cat /tmp/spark-store-updatenum/number`
|
||||||
|
echo "$update_app_number"
|
||||||
|
if [ "$update_app_number" = "0" ];then
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
notify-send -i spark-store "星火更新提醒" "星火商店仓库中有$update_app_number个软件包可以更新啦!请到星火商店的菜单处理"
|
||||||
|
fi
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
until [ $isexistnumber -eq 1 ];do
|
||||||
|
if [ -f /tmp/spark-store-updatenum/number ];then
|
||||||
|
sleep 10
|
||||||
|
update_app_number=`cat /tmp/spark-store-updatenum/number`
|
||||||
|
echo "$update_app_number"
|
||||||
|
if [ "$update_app_number" = "0" ];then
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
notify-send -i spark-store "星火更新提醒" "星火商店仓库中有$update_app_number个软件包可以更新啦!请到星火商店的菜单处理"
|
||||||
|
isexistnumber=1
|
||||||
|
fi
|
||||||
|
sleep 10
|
||||||
|
done
|
||||||
6
tool/update-upgrade/ss-upgrade-list.sh
Executable file
@@ -0,0 +1,6 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
set -e
|
||||||
|
|
||||||
|
|
||||||
|
echo "---可更新的应用有:"
|
||||||
|
bwrap --dev-bind / / --bind '/opt/durapps/spark-store/bin/apt-fast-conf/sources.list.d/sparkstore.list' /etc/apt/sources.list.d/sparkstore.list apt list --upgradable -o Dir::Etc::sourcelist="sources.list.d/sparkstore.list" -o Dir::Etc::sourceparts="-" -o APT::Get::List-Cleanup="0"
|
||||||
91
tool/ussinstall
Executable file
@@ -0,0 +1,91 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
reset
|
||||||
|
|
||||||
|
echo "Copyright (c) 2019-2021 The Spark Project"
|
||||||
|
|
||||||
|
if [ -x "/usr/bin/deepin-deb-installer" ] ; then
|
||||||
|
echo "深度软件包安装器已安装,开始检测证书"
|
||||||
|
else
|
||||||
|
echo "未安装深度软件包安装器,拒绝执行"
|
||||||
|
echo "UOS需要深度软件包安装器来认证签名"
|
||||||
|
echo "如果你用的是UOS,你能卸载这玩意说明你已经开了开发者模式......悄悄告诉你,放屁是不用脱裤子的!"
|
||||||
|
echo "如果你用的不是统信系发行版......所以你为什么要打开这个脚本?"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -f "/usr/share/ca-certificates/deepin/private/priv.crt" ] ; then
|
||||||
|
echo "检测到已经生成过证书,直接跳过询问"
|
||||||
|
else
|
||||||
|
until [ -f "/usr/bin/cert-tool" ] ; do
|
||||||
|
#强制未安装证书工具的不通过
|
||||||
|
echo "该工具的原理是利用UOS的自签名安装包免开发者的特性,需要您的UOS ID账号和密码,请在使用工具前确保在应用商店中已安装过“证书工具”这个应用"
|
||||||
|
echo "如果没有安装,则无法使用。请确认安装后再进行下一步操作"
|
||||||
|
sleep 3
|
||||||
|
echo "如果你确认已经安装了该应用,请按回车"
|
||||||
|
read renyijian
|
||||||
|
|
||||||
|
#检测是否在说谎签名文件
|
||||||
|
if [ -f "/usr/bin/cert-tool" ] ; then
|
||||||
|
echo "成功检测到cert-tool存在,开始检测证书\n"
|
||||||
|
else
|
||||||
|
echo "没有检测到该应用,请您再次确认“证书工具”已经安装!"
|
||||||
|
sleep 3
|
||||||
|
clear
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
until [ -f "/usr/share/ca-certificates/deepin/private/priv.crt" ] ; do
|
||||||
|
echo "没有检测到证书,准备调用证书工具生成证书,请输入您的UOS账号/密码。本脚本不会上传任何信息"
|
||||||
|
echo "请在此行输入您的UOS账号用户名/电话号/邮箱"
|
||||||
|
read -e account
|
||||||
|
echo "请在此行输入您的UOS账号密码"
|
||||||
|
read -e passwd
|
||||||
|
echo "即将安装证书,请在弹出的窗口安装"
|
||||||
|
cert-tool -username="$account" -password="$passwd"
|
||||||
|
done
|
||||||
|
echo "检测到已经生成过证书,准备签名"
|
||||||
|
fi
|
||||||
|
#这个if是判断是否已经有证书
|
||||||
|
|
||||||
|
unset account
|
||||||
|
unset passwd
|
||||||
|
unset renyijian
|
||||||
|
|
||||||
|
debpath=""
|
||||||
|
cd /tmp
|
||||||
|
|
||||||
|
until [ -f "$debpath" ] ; do
|
||||||
|
if [ ! $1 ] ; then
|
||||||
|
echo "没有检测到参数,以交互式安装运行"
|
||||||
|
echo "请输入deb文件的绝对路径或直接拖入deb文件(仅限支持的文件管理器,比如深度文管),结束后回车"
|
||||||
|
echo "生成的签名过的deb将保存在/tmp/signed_deb"
|
||||||
|
read debpath
|
||||||
|
else
|
||||||
|
echo "参数存在,直接开始签名\n生成的签名过的deb保存在/tmp/signed_deb"
|
||||||
|
debpath="$1"
|
||||||
|
echo "读取到的deb路径为:$debpath"
|
||||||
|
fi
|
||||||
|
debpath=`echo "$debpath" | sed $'s/\'//g'`
|
||||||
|
echo "去除可能的单引号后得到:$debpath"
|
||||||
|
|
||||||
|
if [ -f $debpath ] ; then
|
||||||
|
echo "文件有效,开始签名"
|
||||||
|
echo "------------以下为签名工具输出------------"
|
||||||
|
deepin-elf-sign-deb "$debpath"
|
||||||
|
echo "------------签名工具输出已结束------------"
|
||||||
|
echo "签名结束,启动深度软件包管理器"
|
||||||
|
else
|
||||||
|
echo "路径出错,请确认你输入了正确的路径!"
|
||||||
|
sleep 3
|
||||||
|
clear
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
file_name=$(basename "$debpath")
|
||||||
|
|
||||||
|
echo "--------以下为深度软件包安装器输出--------"
|
||||||
|
deepin-deb-installer "/tmp/signed_deb/$file_name"
|
||||||
|
echo "--------深度软件包安装器输出已结束--------"
|
||||||
|
echo "删除临时文件"
|
||||||
|
rm /tmp/signed_deb/$file_name
|
||||||
142
tool/ussremove
Executable file
@@ -0,0 +1,142 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
reset
|
||||||
|
|
||||||
|
echo "Copyright (c) 2019-2021 The Spark Project"
|
||||||
|
|
||||||
|
if [ -x "/usr/bin/deepin-deb-installer" ] ; then
|
||||||
|
echo "深度软件包安装器已安装,开始检测证书"
|
||||||
|
else
|
||||||
|
echo "未安装深度软件包安装器,拒绝执行"
|
||||||
|
echo "UOS需要深度软件包安装器来认证签名"
|
||||||
|
echo "如果你用的是UOS,你能卸载这玩意说明你已经开了开发者模式......悄悄告诉你,放屁是不用脱裤子的!"
|
||||||
|
echo "如果你用的不是统信系发行版......所以你为什么要打开这个脚本?"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -f "/usr/share/ca-certificates/deepin/private/priv.crt" ] ; then
|
||||||
|
echo "检测到已经生成过证书,直接跳过询问"
|
||||||
|
else
|
||||||
|
until [ -f "/usr/bin/cert-tool" ] ; do
|
||||||
|
#强制未安装证书工具的不通过
|
||||||
|
echo "该工具的原理是利用UOS的自签名安装包免开发者的特性,需要您的UOS ID账号和密码,请在使用工具前确保在应用商店中已安装过“证书工具”这个应用"
|
||||||
|
echo "如果没有安装,则无法使用。请确认安装后再进行下一步操作"
|
||||||
|
echo "如果你确认已经安装了该应用,请按回车"
|
||||||
|
read renyijian
|
||||||
|
|
||||||
|
#检测是否在说谎签名文件
|
||||||
|
if [ -f "/usr/bin/cert-tool" ] ; then
|
||||||
|
echo "成功检测到cert-tool存在,开始检测证书\n"
|
||||||
|
else
|
||||||
|
echo "没有检测到该应用,请您再次确认“证书工具”已经安装!"
|
||||||
|
sleep 3
|
||||||
|
clear
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
until [ -f "/usr/share/ca-certificates/deepin/private/priv.crt" ] ; do
|
||||||
|
echo "没有检测到证书,准备调用证书工具生成证书,请输入您的UOS账号/密码。本脚本不会上传任何信息"
|
||||||
|
echo "请在此行输入您的UOS账号用户名/电话号/邮箱"
|
||||||
|
read account
|
||||||
|
echo "请在此行输入您的UOS账号密码"
|
||||||
|
read passwd
|
||||||
|
echo "即将安装证书,请在弹出的窗口安装"
|
||||||
|
cert-tool -username="$account" -password="$passwd"
|
||||||
|
done
|
||||||
|
echo "检测到已经生成过证书,准备签名"
|
||||||
|
fi
|
||||||
|
#这个if是判断是否已经有证书
|
||||||
|
|
||||||
|
unset account
|
||||||
|
unset passwd
|
||||||
|
unset renyijian
|
||||||
|
|
||||||
|
mkdir -p /tmp/spark-store-appremover
|
||||||
|
cd /tmp/spark-store-appremover
|
||||||
|
#工作目录应当为 /tmp/spark-store-appremover
|
||||||
|
|
||||||
|
while [ ! $pkgname ] ; do
|
||||||
|
if [ ! $1 ] ; then
|
||||||
|
echo "没有检测到包名,以交互式模式运行"
|
||||||
|
echo "请输入你要卸载的软件包名,输入结束后回车"
|
||||||
|
read pkgname
|
||||||
|
else
|
||||||
|
echo "检测到包名,跳过获取"
|
||||||
|
pkgname="$1"
|
||||||
|
echo "读取到的包名为:$pkgname"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ ! $pkgname ] ; then
|
||||||
|
echo "没有检测到包名,请重新输入!"
|
||||||
|
sleep 3
|
||||||
|
clear
|
||||||
|
else
|
||||||
|
echo "包名读取成功,进入下一步"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
#while [ ! $version ] ; do
|
||||||
|
# if [ ! $2 ] ; then
|
||||||
|
# echo "没有检测到版本号,以交互式模式运行"
|
||||||
|
# echo "请输入你要卸载的软件包版本号,输入结束后回车"
|
||||||
|
# read version
|
||||||
|
# else
|
||||||
|
# echo "检测到包名,跳过获取"
|
||||||
|
# version="$2"
|
||||||
|
# echo "读取到的版本号为:$version"
|
||||||
|
# fi
|
||||||
|
#
|
||||||
|
# if [ ! $version ] ; then
|
||||||
|
# echo "没有检测到版本号,请重新输入!"
|
||||||
|
# sleep 3
|
||||||
|
# clear
|
||||||
|
# else
|
||||||
|
# echo "版本号读取成功,进入下一步"
|
||||||
|
# fi
|
||||||
|
#done
|
||||||
|
|
||||||
|
#发现版本号不一定一致也可以卸载
|
||||||
|
version="1.0"
|
||||||
|
echo "开始生成deb包"
|
||||||
|
echo "输出的control文件为"
|
||||||
|
echo ""
|
||||||
|
echo "Package: $pkgname"
|
||||||
|
echo "Version: $version"
|
||||||
|
echo "Depends: "
|
||||||
|
echo "Maintainer: spark-store"
|
||||||
|
echo "Description: 这是一个假软件包,请点击卸载"
|
||||||
|
echo "Architecture: $(arch)"
|
||||||
|
echo "-----------------------开始生成-----------------------"
|
||||||
|
workdir=$(pwd)
|
||||||
|
echo "工作目录为$workdir"
|
||||||
|
mkdir DEBIAN
|
||||||
|
cd DEBIAN
|
||||||
|
touch control
|
||||||
|
echo "Package: $pkgname" >> ./control
|
||||||
|
echo "Version: $version" >> ./control
|
||||||
|
echo "Depends: " >> ./control
|
||||||
|
echo "Maintainer: spark-store" >> ./control
|
||||||
|
echo "Description: 这是一个假软件包,请点击卸载" >> ./control
|
||||||
|
echo "Architecture: $(arch)" >> ./control
|
||||||
|
|
||||||
|
echo "-----------------------开始打包-----------------------"
|
||||||
|
cd ..
|
||||||
|
workdir=$(pwd)
|
||||||
|
echo "回退到工作目录,当前目录位于$workdir"
|
||||||
|
fakeroot dpkg -b . ./uninstall.deb
|
||||||
|
echo "-----------------------打包结束-----------------------"
|
||||||
|
|
||||||
|
cd /tmp
|
||||||
|
|
||||||
|
echo "-----------------------开始签名-----------------------"
|
||||||
|
deepin-elf-sign-deb "/tmp/spark-store-appremover/uninstall.deb"
|
||||||
|
echo "-----------------------签名结束-----------------------"
|
||||||
|
echo "-----------------启动深度软件包管理器-------------------"
|
||||||
|
|
||||||
|
deepin-deb-installer "/tmp/signed_deb/uninstall.deb"
|
||||||
|
|
||||||
|
file_name=$(basename "/tmp/signed_deb/uninstall.deb")
|
||||||
|
echo "---------------以上为深度软件包管理器输出----------------"
|
||||||
|
echo "删除临时包"
|
||||||
|
rm "/tmp/signed_deb/$file_name"
|
||||||
|
rm -r /tmp/spark-store-appremover
|
||||||
10
translate_generation.sh
Executable file
@@ -0,0 +1,10 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
# this file is used to auto-generate .qm file from .ts file.
|
||||||
|
|
||||||
|
ts_list=(`ls ./translations/*.ts`)
|
||||||
|
|
||||||
|
for ts in "${ts_list[@]}"
|
||||||
|
do
|
||||||
|
printf "\nprocess ${ts}\n"
|
||||||
|
lrelease "${ts}"
|
||||||
|
done
|
||||||
@@ -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><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/><span style=' font-size:12pt;'>Spark developers</span></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><span style='font-size:10pt;font-weight:60;'>An appstore powered by deepin community</span><br/><a href='https://www.spark-app.store/'>https://www.spark-app.store</a><br/><span style='font-size:12pt;'>Spark developers</span><br/><br/>Published under GPL V3</source>
|
<source><span style='font-size:10pt;font-weight:60;'>An appstore powered by deepin community</span><br/><a href='https://www.spark-app.store/'>https://www.spark-app.store</a><br/><span style='font-size:12pt;'>Spark developers</span><br/><br/>Published under GPL V3</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
@@ -28,7 +45,7 @@
|
|||||||
<context>
|
<context>
|
||||||
<name>SpkAppInfoLoaderThread</name>
|
<name>SpkAppInfoLoaderThread</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/workerthreads.cpp" line="162"/>
|
<location filename="../src/workerthreads.cpp" line="167"/>
|
||||||
<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>
|
||||||
@@ -68,7 +85,7 @@
|
|||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/workerthreads.cpp" line="118"/>
|
<location filename="../src/workerthreads.cpp" line="123"/>
|
||||||
<source>Failed to load application icon.</source>
|
<source>Failed to load application icon.</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
@@ -121,56 +138,51 @@
|
|||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="600"/>
|
<location filename="../src/widget.ui" line="606"/>
|
||||||
<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="547"/>
|
||||||
<location filename="../src/widget.cpp" line="902"/>
|
<location filename="../src/widget.cpp" line="906"/>
|
||||||
|
<location filename="../src/widget.cpp" line="1175"/>
|
||||||
<source>Install</source>
|
<source>Install</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="655"/>
|
<location filename="../src/widget.ui" line="661"/>
|
||||||
<source>Uninstall</source>
|
<source>Uninstall</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="671"/>
|
<location filename="../src/widget.ui" line="677"/>
|
||||||
<source>Site</source>
|
<source>Site</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="744"/>
|
<location filename="../src/widget.ui" line="750"/>
|
||||||
<location filename="../src/widget.ui" line="747"/>
|
<location filename="../src/widget.ui" line="753"/>
|
||||||
<source><html><head/><body><p>This app is developed by community user,we give this tag to honor those who contribute to the Linux Ecology</p></body></html></source>
|
<source><html><head/><body><p>This app is developed by community user,we give this tag to honor those who contribute to the Linux Ecology</p></body></html></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="756"/>
|
||||||
<source><html><head/><body><p><img src=":/tags/community-small.png"/></p></body></html></source>
|
<source><html><head/><body><p><img src=":/tags/community-small.png"/></p></body></html></source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="763"/>
|
<location filename="../src/widget.ui" line="775"/>
|
||||||
<location filename="../src/widget.ui" line="766"/>
|
|
||||||
<source><html><head/><body><p>Capable to Ubuntu 20.04</p></body></html></source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../src/widget.ui" line="769"/>
|
|
||||||
<source><html><head/><body><p><img src=":/tags/ubuntu-small.png"/></p></body></html></source>
|
<source><html><head/><body><p><img src=":/tags/ubuntu-small.png"/></p></body></html></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="813"/>
|
||||||
<source><html><head/><body><p><img src=":/tags/uos-small.png"/></p></body></html></source>
|
<source><html><head/><body><p><img src=":/tags/uos-small.png"/></p></body></html></source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="782"/>
|
<location filename="../src/widget.ui" line="788"/>
|
||||||
<location filename="../src/widget.ui" line="785"/>
|
<location filename="../src/widget.ui" line="791"/>
|
||||||
<source><html><head/><body><p>Capable to deepin 20</p></body></html></source>
|
<source><html><head/><body><p>Capable to deepin 20</p></body></html></source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
@@ -215,46 +227,46 @@
|
|||||||
<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="794"/>
|
||||||
<source><html><head/><body><p><img src=":/tags/deepin-small.png"/></p></body></html></source>
|
<source><html><head/><body><p><img src=":/tags/deepin-small.png"/></p></body></html></source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="801"/>
|
<location filename="../src/widget.ui" line="807"/>
|
||||||
<location filename="../src/widget.ui" line="804"/>
|
<location filename="../src/widget.ui" line="810"/>
|
||||||
<source><html><head/><body><p>Capable to UOS home 20</p></body></html></source>
|
<source><html><head/><body><p>Capable to UOS home 20</p></body></html></source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="820"/>
|
<location filename="../src/widget.ui" line="826"/>
|
||||||
<location filename="../src/widget.ui" line="823"/>
|
<location filename="../src/widget.ui" line="829"/>
|
||||||
<source><html><head/><body><p>This is a DTK5 app,which means it would have better effect on Deepin Desktop Environment</p></body></html></source>
|
<source><html><head/><body><p>This is a DTK5 app,which means it would have better effect on Deepin Desktop Environment</p></body></html></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="832"/>
|
||||||
<source><html><head/><body><p><img src=":/tags/dtk-small.png"/></p></body></html></source>
|
<source><html><head/><body><p><img src=":/tags/dtk-small.png"/></p></body></html></source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="858"/>
|
<location filename="../src/widget.ui" line="864"/>
|
||||||
<location filename="../src/widget.ui" line="861"/>
|
<location filename="../src/widget.ui" line="867"/>
|
||||||
<source><html><head/><body><p>A deepin-wine5 app.If you are using ubuntu or other non-deepin distro,you should deploy deepin-wine5 by your self.</p></body></html></source>
|
<source><html><head/><body><p>A deepin-wine5 app.If you are using ubuntu or other non-deepin distro,you should deploy deepin-wine5 by your self.</p></body></html></source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="877"/>
|
<location filename="../src/widget.ui" line="883"/>
|
||||||
<location filename="../src/widget.ui" line="880"/>
|
<location filename="../src/widget.ui" line="886"/>
|
||||||
<source><html><head/><body><p>An Appimage to deb app.</p></body></html></source>
|
<source><html><head/><body><p>An Appimage to deb app.</p></body></html></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="889"/>
|
||||||
<source><html><head/><body><p><img src=":/tags/a2d-small.png"/></p></body></html></source>
|
<source><html><head/><body><p><img src=":/tags/a2d-small.png"/></p></body></html></source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="710"/>
|
<location filename="../src/widget.ui" line="716"/>
|
||||||
<source>Share</source>
|
<source>Share</source>
|
||||||
<translation type="unfinished">Spk share link</translation>
|
<translation type="unfinished">Spk share link</translation>
|
||||||
</message>
|
</message>
|
||||||
@@ -279,108 +291,109 @@
|
|||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="839"/>
|
<location filename="../src/widget.ui" line="769"/>
|
||||||
<location filename="../src/widget.ui" line="842"/>
|
<location filename="../src/widget.ui" line="772"/>
|
||||||
<source><html><head/><body><p>A deepin-wine2 app.If you are using ubuntu or other non-deepin distro,you should deploy deepin-wine2 by your self.</p></body></html></source>
|
<source><html><head/><body><p>Capable to Ubuntu 22.04</p></body></html></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="845"/>
|
||||||
|
<location filename="../src/widget.ui" line="848"/>
|
||||||
|
<source><html><head/><body><p>A deepin-wine2 app.If you are using ubuntu or other non-deepin distro,you should deploy deepin-wine2 by your self.</p></body></html></source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../src/widget.ui" line="851"/>
|
||||||
<source><html><head/><body><p><img src=":/tags/dwine2-small.png"/></p></body></html></source>
|
<source><html><head/><body><p><img src=":/tags/dwine2-small.png"/></p></body></html></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="870"/>
|
||||||
<source><html><head/><body><p><img src=":/tags/dwine5-small.png"/></p></body></html></source>
|
<source><html><head/><body><p><img src=":/tags/dwine5-small.png"/></p></body></html></source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="906"/>
|
<location filename="../src/widget.ui" line="930"/>
|
||||||
<source>Contribute translation</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../src/widget.ui" line="924"/>
|
|
||||||
<source>Info</source>
|
<source>Info</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="931"/>
|
<location filename="../src/widget.ui" line="937"/>
|
||||||
<source><html><head/><body><p>An app store developed by community enthusiasts</p></body></html></source>
|
<source><html><head/><body><p>An app store developed by community enthusiasts</p></body></html></source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="970"/>
|
<location filename="../src/widget.ui" line="979"/>
|
||||||
<source>Screenshots</source>
|
<source>Screenshots</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="1133"/>
|
<location filename="../src/widget.ui" line="1142"/>
|
||||||
<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="1149"/>
|
<location filename="../src/widget.ui" line="1158"/>
|
||||||
<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="1172"/>
|
<location filename="../src/widget.ui" line="1181"/>
|
||||||
<source>Refresh</source>
|
<source>Refresh</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="1214"/>
|
<location filename="../src/widget.ui" line="1223"/>
|
||||||
<source><html><head/><body><p>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. </p></body></html></source>
|
<source><html><head/><body><p>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. </p></body></html></source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="1224"/>
|
<location filename="../src/widget.ui" line="1233"/>
|
||||||
<source>Update</source>
|
<source>Update</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="1231"/>
|
<location filename="../src/widget.ui" line="1240"/>
|
||||||
<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="1251"/>
|
<location filename="../src/widget.ui" line="1260"/>
|
||||||
<source>Server</source>
|
<source>Server</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="1272"/>
|
<location filename="../src/widget.ui" line="1281"/>
|
||||||
<source>Temp</source>
|
<source>Temp</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="1295"/>
|
<location filename="../src/widget.ui" line="1304"/>
|
||||||
<source>Clean</source>
|
<source>Clean</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="1305"/>
|
<location filename="../src/widget.ui" line="1314"/>
|
||||||
<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="1318"/>
|
<location filename="../src/widget.ui" line="1327"/>
|
||||||
<source>Size:</source>
|
<source>Size:</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="1332"/>
|
<location filename="../src/widget.ui" line="1341"/>
|
||||||
<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="1353"/>
|
<location filename="../src/widget.ui" line="1362"/>
|
||||||
<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="1360"/>
|
<location filename="../src/widget.ui" line="1369"/>
|
||||||
<source><html><head/><body><p>We are <span style=" font-weight:600;">NOT</span> the official team, just like you, we are just one of the many Linux/deepin system enthusiasts and users, we develop and run the &quot;Spark Store&quot;! &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. </p><p>We don't make a profit from this, all developers and maintainers don't get paid, and we rely on the community'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. </p><p>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. </p><p>If any part of the store infringes your rights, please tell us &lt;jifengshenmo@outlook.com&gt; we will remove the infringing content as soon as possible. </p><p>If you'd like to get involved with us too, whether you're involved in development, design, pitching or submitting work, we welcome you to join us. </p><p>QQ group:872690351<br/></p></body></html></source>
|
<source><html><head/><body><p>We are <span style=" font-weight:600;">NOT</span> the official team, just like you, we are just one of the many Linux/deepin system enthusiasts and users, we develop and run the &quot;Spark Store&quot;! &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. </p><p>We don't make a profit from this, all developers and maintainers don't get paid, and we rely on the community'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. </p><p>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. </p><p>If any part of the store infringes your rights, please tell us &lt;jifengshenmo@outlook.com&gt; we will remove the infringing content as soon as possible. </p><p>If you'd like to get involved with us too, whether you're involved in development, design, pitching or submitting work, we welcome you to join us. </p><p>QQ group:872690351<br/></p></body></html></source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
@@ -395,17 +408,22 @@
|
|||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="572"/>
|
<location filename="../src/widget.ui" line="575"/>
|
||||||
<source><html><head/><body><p><br/></p></body></html></source>
|
<source><html><head/><body><p><br/></p></body></html></source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="1185"/>
|
<location filename="../src/widget.ui" line="912"/>
|
||||||
|
<source>Request Update</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../src/widget.ui" line="1194"/>
|
||||||
<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="1325"/>
|
<location filename="../src/widget.ui" line="1334"/>
|
||||||
<source>0B</source>
|
<source>0B</source>
|
||||||
<translation type="unfinished">0B</translation>
|
<translation type="unfinished">0B</translation>
|
||||||
</message>
|
</message>
|
||||||
@@ -430,98 +448,77 @@
|
|||||||
<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="895"/>
|
||||||
<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="900"/>
|
||||||
<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="1083"/>
|
||||||
<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="1144"/>
|
||||||
<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="1151"/>
|
||||||
<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="1366"/>
|
<location filename="../src/widget.cpp" line="1179"/>
|
||||||
<source>Yes</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../src/widget.cpp" line="1366"/>
|
|
||||||
<source>No</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../src/widget.cpp" line="1367"/>
|
|
||||||
<source>Information for Contributors</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../src/widget.cpp" line="1368"/>
|
|
||||||
<source>Currently the translation contribution is limited to English,
|
|
||||||
and you will be redirected to our Gitee repository at which you are
|
|
||||||
supposed to be creating pull requests to contribute app info
|
|
||||||
translations.
|
|
||||||
Tips:You can simply click the file to edit to create a flat pull request without create a full pull request
|
|
||||||
Tips:You can use github account to login to Gitee
|
|
||||||
Click yes to continue.</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../src/widget.cpp" line="1171"/>
|
|
||||||
<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="1189"/>
|
<location filename="../src/widget.cpp" line="1201"/>
|
||||||
<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="1271"/>
|
<location filename="../src/widget.cpp" line="1283"/>
|
||||||
<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>
|
||||||
@@ -584,52 +581,52 @@ Click yes to continue.</source>
|
|||||||
<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 Failed,Check Your Connection</source>
|
<source>Download Failed,Check 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="203"/>
|
<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="209"/>
|
<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="210"/>
|
<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="216"/>
|
<location filename="../src/downloadlist.cpp" line="203"/>
|
||||||
<source>dpkg progress had been aborted,you can retry installation</source>
|
<source>dpkg progress had been aborted,you can retry installation</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/downloadlist.cpp" line="238"/>
|
<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>
|
||||||
|
|||||||
@@ -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><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/><span style=' font-size:12pt;'>Spark developers</span></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><span style='font-size:10pt;font-weight:60;'>An appstore powered by deepin community</span><br/><a href='https://www.spark-app.store/'>https://www.spark-app.store</a><br/><span style='font-size:12pt;'>Spark developers</span><br/><br/>Published under GPL V3</source>
|
<source><span style='font-size:10pt;font-weight:60;'>An appstore powered by deepin community</span><br/><a href='https://www.spark-app.store/'>https://www.spark-app.store</a><br/><span style='font-size:12pt;'>Spark developers</span><br/><br/>Published under GPL V3</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
@@ -39,7 +56,7 @@ Nous sommes nés pour le changement.</translation>
|
|||||||
<context>
|
<context>
|
||||||
<name>SpkAppInfoLoaderThread</name>
|
<name>SpkAppInfoLoaderThread</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/workerthreads.cpp" line="162"/>
|
<location filename="../src/workerthreads.cpp" line="167"/>
|
||||||
<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>
|
||||||
@@ -79,7 +96,7 @@ Nous sommes nés pour le changement.</translation>
|
|||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/workerthreads.cpp" line="118"/>
|
<location filename="../src/workerthreads.cpp" line="123"/>
|
||||||
<source>Failed to load application icon.</source>
|
<source>Failed to load application icon.</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
@@ -188,7 +205,8 @@ Nous sommes nés pour le changement.</translation>
|
|||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="547"/>
|
<location filename="../src/widget.ui" line="547"/>
|
||||||
<location filename="../src/widget.cpp" line="902"/>
|
<location filename="../src/widget.cpp" line="906"/>
|
||||||
|
<location filename="../src/widget.cpp" line="1175"/>
|
||||||
<source>Install</source>
|
<source>Install</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
@@ -198,205 +216,205 @@ 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="600"/>
|
<location filename="../src/widget.ui" line="606"/>
|
||||||
<source>ICON</source>
|
<source>ICON</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="655"/>
|
<location filename="../src/widget.ui" line="661"/>
|
||||||
<source>Uninstall</source>
|
<source>Uninstall</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="671"/>
|
<location filename="../src/widget.ui" line="677"/>
|
||||||
<source>Site</source>
|
<source>Site</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="710"/>
|
<location filename="../src/widget.ui" line="716"/>
|
||||||
<source>Share</source>
|
<source>Share</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="744"/>
|
<location filename="../src/widget.ui" line="750"/>
|
||||||
<location filename="../src/widget.ui" line="747"/>
|
<location filename="../src/widget.ui" line="753"/>
|
||||||
<source><html><head/><body><p>This app is developed by community user,we give this tag to honor those who contribute to the Linux Ecology</p></body></html></source>
|
<source><html><head/><body><p>This app is developed by community user,we give this tag to honor those who contribute to the Linux Ecology</p></body></html></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="756"/>
|
||||||
<source><html><head/><body><p><img src=":/tags/community-small.png"/></p></body></html></source>
|
<source><html><head/><body><p><img src=":/tags/community-small.png"/></p></body></html></source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="763"/>
|
<location filename="../src/widget.ui" line="769"/>
|
||||||
<location filename="../src/widget.ui" line="766"/>
|
<location filename="../src/widget.ui" line="772"/>
|
||||||
<source><html><head/><body><p>Capable to Ubuntu 20.04</p></body></html></source>
|
<source><html><head/><body><p>Capable to Ubuntu 22.04</p></body></html></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="775"/>
|
||||||
<source><html><head/><body><p><img src=":/tags/ubuntu-small.png"/></p></body></html></source>
|
<source><html><head/><body><p><img src=":/tags/ubuntu-small.png"/></p></body></html></source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="782"/>
|
<location filename="../src/widget.ui" line="788"/>
|
||||||
<location filename="../src/widget.ui" line="785"/>
|
<location filename="../src/widget.ui" line="791"/>
|
||||||
<source><html><head/><body><p>Capable to deepin 20</p></body></html></source>
|
<source><html><head/><body><p>Capable to deepin 20</p></body></html></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="794"/>
|
||||||
<source><html><head/><body><p><img src=":/tags/deepin-small.png"/></p></body></html></source>
|
<source><html><head/><body><p><img src=":/tags/deepin-small.png"/></p></body></html></source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="801"/>
|
<location filename="../src/widget.ui" line="807"/>
|
||||||
<location filename="../src/widget.ui" line="804"/>
|
<location filename="../src/widget.ui" line="810"/>
|
||||||
<source><html><head/><body><p>Capable to UOS home 20</p></body></html></source>
|
<source><html><head/><body><p>Capable to UOS home 20</p></body></html></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="813"/>
|
||||||
<source><html><head/><body><p><img src=":/tags/uos-small.png"/></p></body></html></source>
|
<source><html><head/><body><p><img src=":/tags/uos-small.png"/></p></body></html></source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="820"/>
|
<location filename="../src/widget.ui" line="826"/>
|
||||||
<location filename="../src/widget.ui" line="823"/>
|
<location filename="../src/widget.ui" line="829"/>
|
||||||
<source><html><head/><body><p>This is a DTK5 app,which means it would have better effect on Deepin Desktop Environment</p></body></html></source>
|
<source><html><head/><body><p>This is a DTK5 app,which means it would have better effect on Deepin Desktop Environment</p></body></html></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="832"/>
|
||||||
<source><html><head/><body><p><img src=":/tags/dtk-small.png"/></p></body></html></source>
|
<source><html><head/><body><p><img src=":/tags/dtk-small.png"/></p></body></html></source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="839"/>
|
<location filename="../src/widget.ui" line="845"/>
|
||||||
<location filename="../src/widget.ui" line="842"/>
|
<location filename="../src/widget.ui" line="848"/>
|
||||||
<source><html><head/><body><p>A deepin-wine2 app.If you are using ubuntu or other non-deepin distro,you should deploy deepin-wine2 by your self.</p></body></html></source>
|
<source><html><head/><body><p>A deepin-wine2 app.If you are using ubuntu or other non-deepin distro,you should deploy deepin-wine2 by your self.</p></body></html></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="851"/>
|
||||||
<source><html><head/><body><p><img src=":/tags/dwine2-small.png"/></p></body></html></source>
|
<source><html><head/><body><p><img src=":/tags/dwine2-small.png"/></p></body></html></source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="858"/>
|
<location filename="../src/widget.ui" line="864"/>
|
||||||
<location filename="../src/widget.ui" line="861"/>
|
<location filename="../src/widget.ui" line="867"/>
|
||||||
<source><html><head/><body><p>A deepin-wine5 app.If you are using ubuntu or other non-deepin distro,you should deploy deepin-wine5 by your self.</p></body></html></source>
|
<source><html><head/><body><p>A deepin-wine5 app.If you are using ubuntu or other non-deepin distro,you should deploy deepin-wine5 by your self.</p></body></html></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="870"/>
|
||||||
<source><html><head/><body><p><img src=":/tags/dwine5-small.png"/></p></body></html></source>
|
<source><html><head/><body><p><img src=":/tags/dwine5-small.png"/></p></body></html></source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="877"/>
|
<location filename="../src/widget.ui" line="883"/>
|
||||||
<location filename="../src/widget.ui" line="880"/>
|
<location filename="../src/widget.ui" line="886"/>
|
||||||
<source><html><head/><body><p>An Appimage to deb app.</p></body></html></source>
|
<source><html><head/><body><p>An Appimage to deb app.</p></body></html></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="889"/>
|
||||||
<source><html><head/><body><p><img src=":/tags/a2d-small.png"/></p></body></html></source>
|
<source><html><head/><body><p><img src=":/tags/a2d-small.png"/></p></body></html></source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="906"/>
|
<location filename="../src/widget.ui" line="912"/>
|
||||||
<source>Contribute translation</source>
|
<source>Request Update</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="924"/>
|
<location filename="../src/widget.ui" line="930"/>
|
||||||
<source>Info</source>
|
<source>Info</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="931"/>
|
<location filename="../src/widget.ui" line="937"/>
|
||||||
<source><html><head/><body><p>An app store developed by community enthusiasts</p></body></html></source>
|
<source><html><head/><body><p>An app store developed by community enthusiasts</p></body></html></source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="970"/>
|
<location filename="../src/widget.ui" line="979"/>
|
||||||
<source>Screenshots</source>
|
<source>Screenshots</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="1133"/>
|
<location filename="../src/widget.ui" line="1142"/>
|
||||||
<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="1149"/>
|
<location filename="../src/widget.ui" line="1158"/>
|
||||||
<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="1172"/>
|
<location filename="../src/widget.ui" line="1181"/>
|
||||||
<source>Refresh</source>
|
<source>Refresh</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="1185"/>
|
<location filename="../src/widget.ui" line="1194"/>
|
||||||
<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="1214"/>
|
<location filename="../src/widget.ui" line="1223"/>
|
||||||
<source><html><head/><body><p>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. </p></body></html></source>
|
<source><html><head/><body><p>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. </p></body></html></source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="1224"/>
|
<location filename="../src/widget.ui" line="1233"/>
|
||||||
<source>Update</source>
|
<source>Update</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="1231"/>
|
<location filename="../src/widget.ui" line="1240"/>
|
||||||
<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="1251"/>
|
<location filename="../src/widget.ui" line="1260"/>
|
||||||
<source>Server</source>
|
<source>Server</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="1272"/>
|
<location filename="../src/widget.ui" line="1281"/>
|
||||||
<source>Temp</source>
|
<source>Temp</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="1295"/>
|
<location filename="../src/widget.ui" line="1304"/>
|
||||||
<source>Clean</source>
|
<source>Clean</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="1305"/>
|
<location filename="../src/widget.ui" line="1314"/>
|
||||||
<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="1318"/>
|
<location filename="../src/widget.ui" line="1327"/>
|
||||||
<source>Size:</source>
|
<source>Size:</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="1332"/>
|
<location filename="../src/widget.ui" line="1341"/>
|
||||||
<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="1353"/>
|
<location filename="../src/widget.ui" line="1362"/>
|
||||||
<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="1360"/>
|
<location filename="../src/widget.ui" line="1369"/>
|
||||||
<source><html><head/><body><p>We are <span style=" font-weight:600;">NOT</span> the official team, just like you, we are just one of the many Linux/deepin system enthusiasts and users, we develop and run the &quot;Spark Store&quot;! &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. </p><p>We don't make a profit from this, all developers and maintainers don't get paid, and we rely on the community'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. </p><p>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. </p><p>If any part of the store infringes your rights, please tell us &lt;jifengshenmo@outlook.com&gt; we will remove the infringing content as soon as possible. </p><p>If you'd like to get involved with us too, whether you're involved in development, design, pitching or submitting work, we welcome you to join us. </p><p>QQ group:872690351<br/></p></body></html></source>
|
<source><html><head/><body><p>We are <span style=" font-weight:600;">NOT</span> the official team, just like you, we are just one of the many Linux/deepin system enthusiasts and users, we develop and run the &quot;Spark Store&quot;! &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. </p><p>We don't make a profit from this, all developers and maintainers don't get paid, and we rely on the community'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. </p><p>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. </p><p>If any part of the store infringes your rights, please tell us &lt;jifengshenmo@outlook.com&gt; we will remove the infringing content as soon as possible. </p><p>If you'd like to get involved with us too, whether you're involved in development, design, pitching or submitting work, we welcome you to join us. </p><p>QQ group:872690351<br/></p></body></html></source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
@@ -493,7 +511,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="572"/>
|
<location filename="../src/widget.ui" line="575"/>
|
||||||
<source><html><head/><body><p><br/></p></body></html></source>
|
<source><html><head/><body><p><br/></p></body></html></source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
@@ -566,7 +584,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="1325"/>
|
<location filename="../src/widget.ui" line="1334"/>
|
||||||
<source>0B</source>
|
<source>0B</source>
|
||||||
<translation type="unfinished">0B</translation>
|
<translation type="unfinished">0B</translation>
|
||||||
</message>
|
</message>
|
||||||
@@ -584,10 +602,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>
|
||||||
@@ -612,92 +630,71 @@ 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="895"/>
|
||||||
<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="900"/>
|
||||||
<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="1083"/>
|
||||||
<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="1144"/>
|
||||||
<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="1151"/>
|
||||||
<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="1171"/>
|
<location filename="../src/widget.cpp" line="1179"/>
|
||||||
<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="1189"/>
|
<location filename="../src/widget.cpp" line="1201"/>
|
||||||
<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="1271"/>
|
<location filename="../src/widget.cpp" line="1283"/>
|
||||||
<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>
|
||||||
<message>
|
|
||||||
<location filename="../src/widget.cpp" line="1366"/>
|
|
||||||
<source>Yes</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../src/widget.cpp" line="1366"/>
|
|
||||||
<source>No</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../src/widget.cpp" line="1367"/>
|
|
||||||
<source>Information for Contributors</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../src/widget.cpp" line="1368"/>
|
|
||||||
<source>Currently the translation contribution is limited to English,
|
|
||||||
and you will be redirected to our Gitee repository at which you are
|
|
||||||
supposed to be creating pull requests to contribute app info
|
|
||||||
translations.
|
|
||||||
Tips:You can simply click the file to edit to create a flat pull request without create a full pull request
|
|
||||||
Tips:You can use github account to login to Gitee
|
|
||||||
Click yes to continue.</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>downloadlist</name>
|
<name>downloadlist</name>
|
||||||
@@ -778,52 +775,52 @@ Click yes to continue.</source>
|
|||||||
<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 Failed,Check Your Connection</source>
|
<source>Download Failed,Check 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="203"/>
|
<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="209"/>
|
<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="210"/>
|
<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="216"/>
|
<location filename="../src/downloadlist.cpp" line="203"/>
|
||||||
<source>dpkg progress had been aborted,you can retry installation</source>
|
<source>dpkg progress had been aborted,you can retry installation</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/downloadlist.cpp" line="238"/>
|
<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>
|
||||||
|
|||||||
@@ -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><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/><span style=' font-size:12pt;'>Spark developers</span></source>
|
||||||
|
<translation type="unfinished"><span style=' font-size:10pt;font-weight:60;'>一款社区维护的应用商店</span><br/><a href='https://www.spark-app.store/'>https://www.spark-app.store</a><br/><span style=' font-size:12pt;'>星火计划开发者</span></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>Version 2.0+2</source>
|
<source>Version 2.0+2</source>
|
||||||
@@ -32,15 +40,16 @@
|
|||||||
<translation type="vanished"><span style=' font-size:10pt;font-weight:60;'>deepin 社区驱动的一款第三方应用商店</span><br/><a href='https://www.spark-app.store/'>https://www.spark-app.store</a><br/><span style=' font-size:12pt;'>Spark developers</span></translation>
|
<translation type="vanished"><span style=' font-size:10pt;font-weight:60;'>deepin 社区驱动的一款第三方应用商店</span><br/><a href='https://www.spark-app.store/'>https://www.spark-app.store</a><br/><span style=' font-size:12pt;'>Spark developers</span></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 type="unfinished">星火计划 The Spark Project</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source><span style=' font-size:10pt;font-weight:60;'>An appstore powered by deepin community</span><br/><a href='https://www.spark-app.store/'>https://www.spark-app.store</a><br/><span style=' font-size:12pt;'>Spark developers</span><br/>We publish this program under GPL V3</source>
|
<source><span style=' font-size:10pt;font-weight:60;'>An appstore powered by deepin community</span><br/><a href='https://www.spark-app.store/'>https://www.spark-app.store</a><br/><span style=' font-size:12pt;'>Spark developers</span><br/>We publish this program under GPL V3</source>
|
||||||
<translation type="vanished"><span style=' font-size:10pt;font-weight:60;'>一款由 深度社区 出品的应用商店</span><br/>""<a href='https://www.spark-app.store/'>https://www.spark-app.store</a><br/>""<span style=' font-size:12pt;'>星火开发者联盟</span><br/>本程序遵循 GPL V3 协议发布</translation>
|
<translation type="vanished"><span style=' font-size:10pt;font-weight:60;'>一款由 深度社区 出品的应用商店</span><br/>""<a href='https://www.spark-app.store/'>https://www.spark-app.store</a><br/>""<span style=' font-size:12pt;'>星火开发者联盟</span><br/>本程序遵循 GPL V3 协议发布</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/main.cpp" line="48"/>
|
<location filename="../src/main.cpp" line="57"/>
|
||||||
<source><span style='font-size:10pt;font-weight:60;'>An appstore powered by deepin community</span><br/><a href='https://www.spark-app.store/'>https://www.spark-app.store</a><br/><span style='font-size:12pt;'>Spark developers</span><br/><br/>Published under GPL V3</source>
|
<source><span style='font-size:10pt;font-weight:60;'>An appstore powered by deepin community</span><br/><a href='https://www.spark-app.store/'>https://www.spark-app.store</a><br/><span style='font-size:12pt;'>Spark developers</span><br/><br/>Published under GPL V3</source>
|
||||||
<translation><span style='font-size:10pt;font-weight:60;'>由 Deepin 社区出品的应用商店</span><br/><a href='https://www.spark-app.store/'>https://www.spark-app.store</a><br/><span style='font-size:12pt;'>星火商店开发组</span><br/><br/>遵循 GPL V3 协议发布</translation>
|
<translation><span style='font-size:10pt;font-weight:60;'>由 Deepin 社区出品的应用商店</span><br/><a href='https://www.spark-app.store/'>https://www.spark-app.store</a><br/><span style='font-size:12pt;'>星火商店开发组</span><br/><br/>遵循 GPL V3 协议发布</translation>
|
||||||
</message>
|
</message>
|
||||||
@@ -48,7 +57,7 @@
|
|||||||
<context>
|
<context>
|
||||||
<name>SpkAppInfoLoaderThread</name>
|
<name>SpkAppInfoLoaderThread</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/workerthreads.cpp" line="162"/>
|
<location filename="../src/workerthreads.cpp" line="167"/>
|
||||||
<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>
|
||||||
@@ -88,7 +97,7 @@
|
|||||||
<translation>大小: </translation>
|
<translation>大小: </translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/workerthreads.cpp" line="118"/>
|
<location filename="../src/workerthreads.cpp" line="123"/>
|
||||||
<source>Failed to load application icon.</source>
|
<source>Failed to load application icon.</source>
|
||||||
<translation>加载应用程序图标失败。</translation>
|
<translation>加载应用程序图标失败。</translation>
|
||||||
</message>
|
</message>
|
||||||
@@ -184,13 +193,14 @@
|
|||||||
<translation>软件名</translation>
|
<translation>软件名</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="600"/>
|
<location filename="../src/widget.ui" line="606"/>
|
||||||
<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="547"/>
|
||||||
<location filename="../src/widget.cpp" line="902"/>
|
<location filename="../src/widget.cpp" line="906"/>
|
||||||
|
<location filename="../src/widget.cpp" line="1175"/>
|
||||||
<source>Install</source>
|
<source>Install</source>
|
||||||
<translation>安装</translation>
|
<translation>安装</translation>
|
||||||
</message>
|
</message>
|
||||||
@@ -215,79 +225,79 @@
|
|||||||
<translation>社交沟通</translation>
|
<translation>社交沟通</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="655"/>
|
<location filename="../src/widget.ui" line="661"/>
|
||||||
<source>Uninstall</source>
|
<source>Uninstall</source>
|
||||||
<translation>卸载</translation>
|
<translation>卸载</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="671"/>
|
<location filename="../src/widget.ui" line="677"/>
|
||||||
<source>Site</source>
|
<source>Site</source>
|
||||||
<translation>官网</translation>
|
<translation>官网</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="744"/>
|
<location filename="../src/widget.ui" line="750"/>
|
||||||
<location filename="../src/widget.ui" line="747"/>
|
<location filename="../src/widget.ui" line="753"/>
|
||||||
<source><html><head/><body><p>This app is developed by community user,we give this tag to honor those who contribute to the Linux Ecology</p></body></html></source>
|
<source><html><head/><body><p>This app is developed by community user,we give this tag to honor those who contribute to the Linux Ecology</p></body></html></source>
|
||||||
<translation><html><head/><body><p>这款应用是社区开发者开发的,我们为社区开发者颁发这款勋章以表彰他们对Linux生态的贡献</p></body></html></translation>
|
<translation><html><head/><body><p>这款应用是社区开发者开发的,我们为社区开发者颁发这款勋章以表彰他们对Linux生态的贡献</p></body></html></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="750"/>
|
<location filename="../src/widget.ui" line="756"/>
|
||||||
<source><html><head/><body><p><img src=":/tags/community-small.png"/></p></body></html></source>
|
<source><html><head/><body><p><img src=":/tags/community-small.png"/></p></body></html></source>
|
||||||
<translation></translation>
|
<translation></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="763"/>
|
<location filename="../src/widget.ui" line="769"/>
|
||||||
<location filename="../src/widget.ui" line="766"/>
|
<location filename="../src/widget.ui" line="772"/>
|
||||||
<source><html><head/><body><p>Capable to Ubuntu 20.04</p></body></html></source>
|
<source><html><head/><body><p>Capable to Ubuntu 22.04</p></body></html></source>
|
||||||
<translation><html><head/><body><p>支持Ubuntu 20.04</p></body></html></translation>
|
<translation><html><head/><body><p>支持Ubuntu 22.04</p></body></html></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="782"/>
|
<location filename="../src/widget.ui" line="788"/>
|
||||||
<location filename="../src/widget.ui" line="785"/>
|
<location filename="../src/widget.ui" line="791"/>
|
||||||
<source><html><head/><body><p>Capable to deepin 20</p></body></html></source>
|
<source><html><head/><body><p>Capable to deepin 20</p></body></html></source>
|
||||||
<translation><html><head/><body><p>支持deepin 20</p></body></html></translation>
|
<translation><html><head/><body><p>支持deepin 20</p></body></html></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="788"/>
|
<location filename="../src/widget.ui" line="794"/>
|
||||||
<source><html><head/><body><p><img src=":/tags/deepin-small.png"/></p></body></html></source>
|
<source><html><head/><body><p><img src=":/tags/deepin-small.png"/></p></body></html></source>
|
||||||
<translation></translation>
|
<translation></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="801"/>
|
<location filename="../src/widget.ui" line="807"/>
|
||||||
<location filename="../src/widget.ui" line="804"/>
|
<location filename="../src/widget.ui" line="810"/>
|
||||||
<source><html><head/><body><p>Capable to UOS home 20</p></body></html></source>
|
<source><html><head/><body><p>Capable to UOS home 20</p></body></html></source>
|
||||||
<translation><html><head/><body><p>支持UOS家庭版 20</p></body></html></translation>
|
<translation><html><head/><body><p>支持UOS家庭版 20</p></body></html></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="820"/>
|
<location filename="../src/widget.ui" line="826"/>
|
||||||
<location filename="../src/widget.ui" line="823"/>
|
<location filename="../src/widget.ui" line="829"/>
|
||||||
<source><html><head/><body><p>This is a DTK5 app,which means it would have better effect on Deepin Desktop Environment</p></body></html></source>
|
<source><html><head/><body><p>This is a DTK5 app,which means it would have better effect on Deepin Desktop Environment</p></body></html></source>
|
||||||
<translation><html><head/><body><p>这是一款DTK5应用,请使用深度桌面环境来获得最完美的体验</p></body></html></translation>
|
<translation><html><head/><body><p>这是一款DTK5应用,请使用深度桌面环境来获得最完美的体验</p></body></html></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="826"/>
|
<location filename="../src/widget.ui" line="832"/>
|
||||||
<source><html><head/><body><p><img src=":/tags/dtk-small.png"/></p></body></html></source>
|
<source><html><head/><body><p><img src=":/tags/dtk-small.png"/></p></body></html></source>
|
||||||
<translation></translation>
|
<translation></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="858"/>
|
<location filename="../src/widget.ui" line="864"/>
|
||||||
<location filename="../src/widget.ui" line="861"/>
|
<location filename="../src/widget.ui" line="867"/>
|
||||||
<source><html><head/><body><p>A deepin-wine5 app.If you are using ubuntu or other non-deepin distro,you should deploy deepin-wine5 by your self.</p></body></html></source>
|
<source><html><head/><body><p>A deepin-wine5 app.If you are using ubuntu or other non-deepin distro,you should deploy deepin-wine5 by your self.</p></body></html></source>
|
||||||
<translation><html><head/><body><p>这是一款deepin-wine5应用,如果你并没有在使用深度系列发行版(比如您在使用ubuntu),你需要自行配置deepin-wine5环境</p></body></html></translation>
|
<translation><html><head/><body><p>这是一款deepin-wine5应用,如果你并没有在使用深度系列发行版(比如您在使用ubuntu),你需要自行配置deepin-wine5环境</p></body></html></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="877"/>
|
<location filename="../src/widget.ui" line="883"/>
|
||||||
<location filename="../src/widget.ui" line="880"/>
|
<location filename="../src/widget.ui" line="886"/>
|
||||||
<source><html><head/><body><p>An Appimage to deb app.</p></body></html></source>
|
<source><html><head/><body><p>An Appimage to deb app.</p></body></html></source>
|
||||||
<translation><html><head/><body><p>这是一款Appimage转制应用.</p></body></html></translation>
|
<translation><html><head/><body><p>这是一款Appimage转制应用.</p></body></html></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="883"/>
|
<location filename="../src/widget.ui" line="889"/>
|
||||||
<source><html><head/><body><p><img src=":/tags/a2d-small.png"/></p></body></html></source>
|
<source><html><head/><body><p><img src=":/tags/a2d-small.png"/></p></body></html></source>
|
||||||
<translation></translation>
|
<translation></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="710"/>
|
<location filename="../src/widget.ui" line="716"/>
|
||||||
<source>Share</source>
|
<source>Share</source>
|
||||||
<translation>Spk分享链接</translation>
|
<translation>Spk分享链接</translation>
|
||||||
</message>
|
</message>
|
||||||
@@ -310,53 +320,52 @@
|
|||||||
<translation type="vanished">社交沟通</translation>
|
<translation type="vanished">社交沟通</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="839"/>
|
<location filename="../src/widget.ui" line="845"/>
|
||||||
<location filename="../src/widget.ui" line="842"/>
|
<location filename="../src/widget.ui" line="848"/>
|
||||||
<source><html><head/><body><p>A deepin-wine2 app.If you are using ubuntu or other non-deepin distro,you should deploy deepin-wine2 by your self.</p></body></html></source>
|
<source><html><head/><body><p>A deepin-wine2 app.If you are using ubuntu or other non-deepin distro,you should deploy deepin-wine2 by your self.</p></body></html></source>
|
||||||
<translation><html><head/><body><p>这是一款 deepin-wine2 应用,如果你并没有在使用深度系列发行版(比如您在使用ubuntu),你需要自行配置 deepin-wine2 环境</p></body></html></translation>
|
<translation><html><head/><body><p>这是一款 deepin-wine2 应用,如果你并没有在使用深度系列发行版(比如您在使用ubuntu),你需要自行配置 deepin-wine2 环境</p></body></html></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="845"/>
|
<location filename="../src/widget.ui" line="851"/>
|
||||||
<source><html><head/><body><p><img src=":/tags/dwine2-small.png"/></p></body></html></source>
|
<source><html><head/><body><p><img src=":/tags/dwine2-small.png"/></p></body></html></source>
|
||||||
<translation></translation>
|
<translation></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="864"/>
|
<location filename="../src/widget.ui" line="870"/>
|
||||||
<source><html><head/><body><p><img src=":/tags/dwine5-small.png"/></p></body></html></source>
|
<source><html><head/><body><p><img src=":/tags/dwine5-small.png"/></p></body></html></source>
|
||||||
<translation></translation>
|
<translation></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="906"/>
|
|
||||||
<source>Contribute translation</source>
|
<source>Contribute translation</source>
|
||||||
<translation>贡献翻译/应用反馈</translation>
|
<translation type="vanished">贡献翻译/应用反馈</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="924"/>
|
<location filename="../src/widget.ui" line="930"/>
|
||||||
<source>Info</source>
|
<source>Info</source>
|
||||||
<translation>详细</translation>
|
<translation>详细</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="931"/>
|
<location filename="../src/widget.ui" line="937"/>
|
||||||
<source><html><head/><body><p>An app store developed by community enthusiasts</p></body></html></source>
|
<source><html><head/><body><p>An app store developed by community enthusiasts</p></body></html></source>
|
||||||
<translation><html><head/><body><p>由社区爱好者开发的一款应用商店</p></body></html></translation>
|
<translation><html><head/><body><p>由社区爱好者开发的一款应用商店</p></body></html></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="970"/>
|
<location filename="../src/widget.ui" line="979"/>
|
||||||
<source>Screenshots</source>
|
<source>Screenshots</source>
|
||||||
<translation>屏幕截图</translation>
|
<translation>屏幕截图</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="1133"/>
|
<location filename="../src/widget.ui" line="1142"/>
|
||||||
<source>Line Settings</source>
|
<source>Line Settings</source>
|
||||||
<translation>线路设置</translation>
|
<translation>线路设置</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="1149"/>
|
<location filename="../src/widget.ui" line="1158"/>
|
||||||
<source>Choose Line:</source>
|
<source>Choose Line:</source>
|
||||||
<translation>线路选择:</translation>
|
<translation>线路选择:</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="1172"/>
|
<location filename="../src/widget.ui" line="1181"/>
|
||||||
<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="1214"/>
|
<location filename="../src/widget.ui" line="1223"/>
|
||||||
<source><html><head/><body><p>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. </p></body></html></source>
|
<source><html><head/><body><p>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. </p></body></html></source>
|
||||||
<translation><html><head/><body><p>源服务器的作用是保证软件更新,并且支持使用apt工具获取软件。通常我们更建议你使用第一个线路作为更新源,一般是最稳定的。</p></body></html></translation>
|
<translation><html><head/><body><p>源服务器的作用是保证软件更新,并且支持使用apt工具获取软件。通常我们更建议你使用第一个线路作为更新源,一般是最稳定的。</p></body></html></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="1224"/>
|
<location filename="../src/widget.ui" line="1233"/>
|
||||||
<source>Update</source>
|
<source>Update</source>
|
||||||
<translation>更新源</translation>
|
<translation>更新源</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="1231"/>
|
<location filename="../src/widget.ui" line="1240"/>
|
||||||
<source>Source Server</source>
|
<source>Source Server</source>
|
||||||
<translation>更新源服务器</translation>
|
<translation>更新源服务器</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="1251"/>
|
<location filename="../src/widget.ui" line="1260"/>
|
||||||
<source>Server</source>
|
<source>Server</source>
|
||||||
<translation></translation>
|
<translation></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="1272"/>
|
<location filename="../src/widget.ui" line="1281"/>
|
||||||
<source>Temp</source>
|
<source>Temp</source>
|
||||||
<translation>缓存目录</translation>
|
<translation>缓存目录</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="1295"/>
|
<location filename="../src/widget.ui" line="1304"/>
|
||||||
<source>Clean</source>
|
<source>Clean</source>
|
||||||
<translation>清空</translation>
|
<translation>清空</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="1305"/>
|
<location filename="../src/widget.ui" line="1314"/>
|
||||||
<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="1318"/>
|
<location filename="../src/widget.ui" line="1327"/>
|
||||||
<source>Size:</source>
|
<source>Size:</source>
|
||||||
<translation>目录大小:</translation>
|
<translation>目录大小:</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="1332"/>
|
<location filename="../src/widget.ui" line="1341"/>
|
||||||
<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="1353"/>
|
<location filename="../src/widget.ui" line="1362"/>
|
||||||
<source>About us</source>
|
<source>About us</source>
|
||||||
<translation>关于我们</translation>
|
<translation>关于我们</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="1360"/>
|
<location filename="../src/widget.ui" line="1369"/>
|
||||||
<source><html><head/><body><p>We are <span style=" font-weight:600;">NOT</span> the official team, just like you, we are just one of the many Linux/deepin system enthusiasts and users, we develop and run the &quot;Spark Store&quot;! &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. </p><p>We don't make a profit from this, all developers and maintainers don't get paid, and we rely on the community'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. </p><p>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. </p><p>If any part of the store infringes your rights, please tell us &lt;jifengshenmo@outlook.com&gt; we will remove the infringing content as soon as possible. </p><p>If you'd like to get involved with us too, whether you're involved in development, design, pitching or submitting work, we welcome you to join us. </p><p>QQ group:872690351<br/></p></body></html></source>
|
<source><html><head/><body><p>We are <span style=" font-weight:600;">NOT</span> the official team, just like you, we are just one of the many Linux/deepin system enthusiasts and users, we develop and run the &quot;Spark Store&quot;! &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. </p><p>We don't make a profit from this, all developers and maintainers don't get paid, and we rely on the community'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. </p><p>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. </p><p>If any part of the store infringes your rights, please tell us &lt;jifengshenmo@outlook.com&gt; we will remove the infringing content as soon as possible. </p><p>If you'd like to get involved with us too, whether you're involved in development, design, pitching or submitting work, we welcome you to join us. </p><p>QQ group:872690351<br/></p></body></html></source>
|
||||||
<translation><html><head/><body><p>我们并<span style=" font-weight:600;">不是</span>官方团队,和你一样,我们也只是众多Linux/deepin系统爱好者和用户之中的一员,我们开发并且运营这个“Spark应用商店”,是为了让社区的朋友们一起分享好用的软件,或者一起参与开发,让大家都用到最新的,最优秀的软件。</p><p>我们并没有因此盈利,所有开发和维护人员都不会获得报酬,我们的主要支出大部分依赖于社区对我们的捐助,很感谢大家,这部分捐助让我们并不需要耗费太多精力去担心资金问题。</p><p>我们的服务和开发的软件都是免费供给大家使用,交流,学习的,但是在您的使用过程中一定要遵守当地的法律法规,否则出现任何问题和我们无关。</p><p>如果商店中任何一部分有侵犯您权益的行为,请告知我们 &lt;jifengshenmo@outlook.com&gt;,我们会第一时间删除侵权内容。</p><p>如果你也想参与我们,不管是参与开发,设计,投递还是投稿作品,我们都欢迎你的加入。</p><p>QQ 群:872690351<br/></p></body></html></translation>
|
<translation><html><head/><body><p>我们并<span style=" font-weight:600;">不是</span>官方团队,和你一样,我们也只是众多Linux/deepin系统爱好者和用户之中的一员,我们开发并且运营这个“Spark应用商店”,是为了让社区的朋友们一起分享好用的软件,或者一起参与开发,让大家都用到最新的,最优秀的软件。</p><p>我们并没有因此盈利,所有开发和维护人员都不会获得报酬,我们的主要支出大部分依赖于社区对我们的捐助,很感谢大家,这部分捐助让我们并不需要耗费太多精力去担心资金问题。</p><p>我们的服务和开发的软件都是免费供给大家使用,交流,学习的,但是在您的使用过程中一定要遵守当地的法律法规,否则出现任何问题和我们无关。</p><p>如果商店中任何一部分有侵犯您权益的行为,请告知我们 &lt;jifengshenmo@outlook.com&gt;,我们会第一时间删除侵权内容。</p><p>如果你也想参与我们,不管是参与开发,设计,投递还是投稿作品,我们都欢迎你的加入。</p><p>QQ 群:872690351<br/></p></body></html></translation>
|
||||||
</message>
|
</message>
|
||||||
@@ -445,27 +454,32 @@
|
|||||||
<translation></translation>
|
<translation></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="572"/>
|
<location filename="../src/widget.ui" line="575"/>
|
||||||
<source><html><head/><body><p><br/></p></body></html></source>
|
<source><html><head/><body><p><br/></p></body></html></source>
|
||||||
<translation></translation>
|
<translation></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="769"/>
|
<location filename="../src/widget.ui" line="775"/>
|
||||||
<source><html><head/><body><p><img src=":/tags/ubuntu-small.png"/></p></body></html></source>
|
<source><html><head/><body><p><img src=":/tags/ubuntu-small.png"/></p></body></html></source>
|
||||||
<translation></translation>
|
<translation></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="807"/>
|
<location filename="../src/widget.ui" line="813"/>
|
||||||
<source><html><head/><body><p><img src=":/tags/uos-small.png"/></p></body></html></source>
|
<source><html><head/><body><p><img src=":/tags/uos-small.png"/></p></body></html></source>
|
||||||
<translation></translation>
|
<translation></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="1185"/>
|
<location filename="../src/widget.ui" line="912"/>
|
||||||
|
<source>Request Update</source>
|
||||||
|
<translation type="unfinished">软件催更/应用反馈</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../src/widget.ui" line="1194"/>
|
||||||
<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="1325"/>
|
<location filename="../src/widget.ui" line="1334"/>
|
||||||
<source>0B</source>
|
<source>0B</source>
|
||||||
<translation></translation>
|
<translation></translation>
|
||||||
</message>
|
</message>
|
||||||
@@ -490,16 +504,21 @@
|
|||||||
<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>
|
<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>
|
||||||
@@ -536,8 +555,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="895"/>
|
||||||
<source>Reinstall</source>
|
<source>Reinstall</source>
|
||||||
<translation>重新安装</translation>
|
<translation>重新安装</translation>
|
||||||
</message>
|
</message>
|
||||||
@@ -546,17 +565,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>
|
||||||
@@ -565,42 +584,38 @@
|
|||||||
<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="900"/>
|
||||||
<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="1083"/>
|
||||||
<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="1144"/>
|
||||||
<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="1151"/>
|
||||||
<source>Unknown error!</source>
|
<source>Unknown error!</source>
|
||||||
<translation>未知错误!</translation>
|
<translation>未知错误!</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.cpp" line="1366"/>
|
|
||||||
<source>Yes</source>
|
<source>Yes</source>
|
||||||
<translation>是</translation>
|
<translation type="vanished">是</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.cpp" line="1366"/>
|
|
||||||
<source>No</source>
|
<source>No</source>
|
||||||
<translation>否</translation>
|
<translation type="vanished">否</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.cpp" line="1367"/>
|
|
||||||
<source>Information for Contributors</source>
|
<source>Information for Contributors</source>
|
||||||
<translation>贡献者须知</translation>
|
<translation type="vanished">贡献者须知</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.cpp" line="1368"/>
|
|
||||||
<source>Currently the translation contribution is limited to English,
|
<source>Currently the translation contribution is limited to English,
|
||||||
and you will be redirected to our Gitee repository at which you are
|
and you will be redirected to our Gitee repository at which you are
|
||||||
supposed to be creating pull requests to contribute app info
|
supposed to be creating pull requests to contribute app info
|
||||||
@@ -608,7 +623,7 @@ translations.
|
|||||||
Tips:You can simply click the file to edit to create a flat pull request without create a full pull request
|
Tips:You can simply click the file to edit to create a flat pull request without create a full pull request
|
||||||
Tips:You can use github account to login to Gitee
|
Tips:You can use github account to login to Gitee
|
||||||
Click yes to continue.</source>
|
Click yes to continue.</source>
|
||||||
<translation>目前商店仅支持应用程序英文详细信息的贡献。
|
<translation type="vanished">目前商店仅支持应用程序英文详细信息的贡献。
|
||||||
在你确认后你会被导向到我们的 Gitee 页面,
|
在你确认后你会被导向到我们的 Gitee 页面,
|
||||||
请在此创建 Pull Request 以进行翻译贡献。
|
请在此创建 Pull Request 以进行翻译贡献。
|
||||||
备注:你可以直接在页面编辑以快速创建轻量级pr
|
备注:你可以直接在页面编辑以快速创建轻量级pr
|
||||||
@@ -636,17 +651,17 @@ Click yes to continue.</source>
|
|||||||
<translation type="vanished">服务器未知错误</translation>
|
<translation type="vanished">服务器未知错误</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.cpp" line="1171"/>
|
<location filename="../src/widget.cpp" line="1179"/>
|
||||||
<source>Uninstall succeeded</source>
|
<source>Uninstall succeeded</source>
|
||||||
<translation>卸载成功</translation>
|
<translation>卸载成功</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.cpp" line="1189"/>
|
<location filename="../src/widget.cpp" line="1201"/>
|
||||||
<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="1271"/>
|
<location filename="../src/widget.cpp" line="1283"/>
|
||||||
<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>
|
||||||
@@ -713,27 +728,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 Failed,Check Your Connection</source>
|
<source>Download Failed,Check 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>
|
||||||
@@ -742,27 +756,32 @@ Click yes to continue.</source>
|
|||||||
<translation type="obsolete">正在安装</translation>
|
<translation type="obsolete">正在安装</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/downloadlist.cpp" line="203"/>
|
<location filename="../src/downloadlist.cpp" line="74"/>
|
||||||
|
<source>Downloaded. Open APP Upgrade and Install Settings to enable password-free installation</source>
|
||||||
|
<translation type="unfinished">下载完成 可进入应用更新和安装设置来启动免密码安装</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="209"/>
|
<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="210"/>
|
<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="216"/>
|
<location filename="../src/downloadlist.cpp" line="203"/>
|
||||||
<source>dpkg progress had been aborted,you can retry installation</source>
|
<source>dpkg progress had been aborted,you can retry installation</source>
|
||||||
<translation>安装被中止,可重新安装</translation>
|
<translation>安装被中止,可重新安装</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/downloadlist.cpp" line="238"/>
|
<location filename="../src/downloadlist.cpp" line="225"/>
|
||||||
<source>Download canceled</source>
|
<source>Download canceled</source>
|
||||||
<translation>下载已取消</translation>
|
<translation>下载已取消</translation>
|
||||||
</message>
|
</message>
|
||||||
|
|||||||