mirror of
https://gitee.com/spark-store-project/spark-store
synced 2025-09-12 14:22:20 +08:00
更新
This commit is contained in:
parent
8e3f235910
commit
72501163d4
14
README.md
14
README.md
@ -1,14 +1,14 @@
|
||||
# deepin-community-store
|
||||
# 深度社区应用商店
|
||||
|
||||
#### 介绍
|
||||
deepin社区商店,由社区维护
|
||||
web页面部分正在开发当中
|
||||
web页面部分正在开发当中,详情请见[web仓库](https://gitee.com/deepin-community-store/DCSAPP_WEB)
|
||||
|
||||
#### 说明
|
||||
|
||||
需要在运行目录下放置服务器线路列表`server.list`,每行一个,在末尾需要添加“/”
|
||||
|
||||
当前服务器线路列表(直接复制到相应文件即可):
|
||||
当前服务器线路列表(项目中包含):
|
||||
|
||||
```
|
||||
http://dcstore.shenmo.tech/
|
||||
@ -17,6 +17,14 @@ http://store2.shenmo.tech/
|
||||
http://store.moshengren.xyz/
|
||||
```
|
||||
|
||||
#### 目录结构
|
||||
|
||||
安装软件过程中产生的包,图标,截图等被储存到`/tmp/deepin-community-store/`中。
|
||||
|
||||
配置文件被储存到`~/.config/deepin-community-store/`中。
|
||||
|
||||
线路文件:当前运行目录下的`./server.list`
|
||||
|
||||
#### 参与贡献
|
||||
|
||||
1. Fork 本仓库
|
||||
|
@ -55,7 +55,7 @@ void downloadlist::readyInstall()
|
||||
ui->pushButton->setEnabled(true);
|
||||
ui->pushButton->show();
|
||||
ui->pushButton_2->hide();
|
||||
system("notify-send \""+ui->label->text().toUtf8()+"下载完成,等待安装\"");
|
||||
system("notify-send \""+ui->label->text().toUtf8()+"下载完成,等待安装\"" +" --icon=/tmp/deepin-community-store/icon_"+QString::number(num).toUtf8()+".png");
|
||||
}
|
||||
}
|
||||
|
||||
@ -98,18 +98,24 @@ void downloadlist::on_pushButton_clicked()
|
||||
QString error=QString::fromStdString(installer.readAllStandardError().toStdString());
|
||||
QStringList everyError=error.split("\n");
|
||||
bool haveError=false;
|
||||
bool notRoot=false;
|
||||
for (int i=0;i<everyError.size();i++) {
|
||||
qDebug()<<everyError[i].left(2);
|
||||
if(everyError[i].left(2)=="E:"){
|
||||
haveError=true;
|
||||
}
|
||||
if(everyError[i].right(14)=="Not authorized"){
|
||||
notRoot=true;
|
||||
}
|
||||
}
|
||||
if(!haveError){
|
||||
if(!haveError && !notRoot){
|
||||
ui->pushButton->hide();
|
||||
ui->label_2->setText("安装完成");
|
||||
}else {
|
||||
}else if(haveError){
|
||||
ui->pushButton->hide();
|
||||
ui->label_2->setText("安装出现错误");
|
||||
}else {
|
||||
ui->label_2->setText("安装被终止");
|
||||
}
|
||||
isInstall=false;
|
||||
});
|
||||
|
2
main.cpp
2
main.cpp
@ -14,7 +14,7 @@ int main(int argc, char *argv[])
|
||||
a.setApplicationVersion(DApplication::buildVersion("1.0"));
|
||||
a.setApplicationAcknowledgementPage("https://gitee.com/deepin-community-store/deepin-community-store");
|
||||
a.setProductIcon(QIcon::fromTheme("deepin-community-store")); //设置Logo
|
||||
a.setProductName("deepin-community-store");
|
||||
a.setProductName("深度社区应用商店");
|
||||
a.setApplicationName("社区应用商店"); //只有在这儿修改窗口标题才有效
|
||||
|
||||
MainWindow w;
|
||||
|
12
widget.cpp
12
widget.cpp
@ -78,12 +78,15 @@ Widget::Widget(QWidget *parent) :
|
||||
for (int i =0; i<15;i++){
|
||||
download_list[i].num=i;
|
||||
}
|
||||
QGraphicsOpacityEffect *opacityEffect=new QGraphicsOpacityEffect;
|
||||
QGraphicsOpacityEffect *opacityEffect_1=new QGraphicsOpacityEffect;
|
||||
QGraphicsOpacityEffect *opacityEffect_2=new QGraphicsOpacityEffect;
|
||||
ui->line1_widget->setStyleSheet("background-color:#808080");
|
||||
ui->line2_widget->setStyleSheet("background-color:#808080");
|
||||
ui->line1_widget->setGraphicsEffect(opacityEffect);
|
||||
ui->line2_widget->setGraphicsEffect(opacityEffect);
|
||||
opacityEffect->setOpacity(0.2);
|
||||
opacityEffect_1->setOpacity(0.2);
|
||||
opacityEffect_2->setOpacity(0.2);
|
||||
ui->line1_widget->setGraphicsEffect(opacityEffect_1);
|
||||
ui->line2_widget->setGraphicsEffect(opacityEffect_2);
|
||||
|
||||
}
|
||||
|
||||
Widget::~Widget()
|
||||
@ -260,6 +263,7 @@ void Widget::on_pushButton_clicked()
|
||||
download_list[allDownload-1].setFileName(fileName);
|
||||
QPixmap icon;
|
||||
icon.load("icon.png");
|
||||
system("cp icon.png icon_"+QString::number(allDownload-1).toUtf8()+".png");
|
||||
download_list[allDownload-1].seticon(icon);
|
||||
if(!isBusy){
|
||||
file = new QFile(fileName);
|
||||
|
14
widget.ui
14
widget.ui
@ -136,7 +136,7 @@
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>781</width>
|
||||
<width>299</width>
|
||||
<height>770</height>
|
||||
</rect>
|
||||
</property>
|
||||
@ -367,7 +367,7 @@
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>747</width>
|
||||
<width>376</width>
|
||||
<height>325</height>
|
||||
</rect>
|
||||
</property>
|
||||
@ -495,8 +495,8 @@
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>765</width>
|
||||
<height>595</height>
|
||||
<width>547</width>
|
||||
<height>130</height>
|
||||
</rect>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_23">
|
||||
@ -1257,11 +1257,11 @@
|
||||
<property name="maximumSize">
|
||||
<size>
|
||||
<width>16777215</width>
|
||||
<height>1</height>
|
||||
<height>4</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="styleSheet">
|
||||
<string notr="true">background-color:#E0E0E1</string>
|
||||
<string notr="true">background-color:#808080</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@ -1388,7 +1388,7 @@
|
||||
</size>
|
||||
</property>
|
||||
<property name="styleSheet">
|
||||
<string notr="true">background-color:#cccccc</string>
|
||||
<string notr="true">background-color:#808080</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
Loading…
x
Reference in New Issue
Block a user