From ed64eb6f5b2403c7bd86486861ddcdd0155f8923 Mon Sep 17 00:00:00 2001 From: metanoia1989 Date: Mon, 19 Oct 2020 22:16:59 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E5=8D=B8=E8=BD=BD=E5=AE=89=E8=A3=85?= =?UTF-8?q?=E5=8C=85=E6=97=B6=EF=BC=8C=E5=B0=86pkg-name=E8=BD=AC=E6=8D=A2?= =?UTF-8?q?=E4=B8=BA=E5=B0=8F=E5=86=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- widget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/widget.cpp b/widget.cpp index 2d0c759..962b5a8 100644 --- a/widget.cpp +++ b/widget.cpp @@ -988,7 +988,7 @@ void Widget::on_pushButton_uninstall_clicked() ui->pushButton_download->setEnabled(false); ui->pushButton_uninstall->setEnabled(false); QProcess uninstall; - uninstall.start("pkexec apt purge -y "+pkgName); + uninstall.start("pkexec apt purge -y "+pkgName.toLower()); uninstall.waitForFinished(); ui->pushButton_download->setEnabled(true); ui->pushButton_download->setText("Install"); From 970648093149b8ffda4cf3c246892770c6cf095d Mon Sep 17 00:00:00 2001 From: metanoia1989 Date: Mon, 19 Oct 2020 22:17:22 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E6=B7=BB=E5=8A=A0.vscode=E5=92=8Cbuild?= =?UTF-8?q?=E4=B8=BA=E5=BF=BD=E7=95=A5=E7=9B=AE=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitignore b/.gitignore index 4fa3a07..18b01f0 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ spark-store.pro.user* +build/ +.vscode/ \ No newline at end of file From beae3e3efac74d01c835809864d2a30366540d99 Mon Sep 17 00:00:00 2001 From: metanoia1989 Date: Mon, 19 Oct 2020 22:44:44 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E5=BA=94=E7=94=A8=E4=B8=8B=E8=BD=BD?= =?UTF-8?q?=E5=90=8E=E9=9D=A2=E6=8D=A2=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 6da7c5f..2b97773 100644 --- a/README.md +++ b/README.md @@ -224,7 +224,7 @@ void SpkAppInfoLoaderThread::run() ``` -**应用下载** +**应用下载** Widget::on_pushButton_download_clicked() 是点击下载的安装方法。 最终使用的是 `QNetwrokAccessManager` 进行GET请求获取数据写入文件。 ```cpp