mirror of
https://gitee.com/spark-store-project/spark-store
synced 2025-12-15 21:32:05 +08:00
Compare commits
92 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 6fe06667eb | |||
| f61e3a6ede | |||
| bddbbcc2e8 | |||
| 8310a59df8 | |||
| 05cfdbb318 | |||
| b5488b6c32 | |||
| 6cec12be9d | |||
| 53f9746ebf | |||
| b68ef5aab1 | |||
| c6daf5159c | |||
| b0453c7a8a | |||
| c7ee32a452 | |||
| e1d25e401f | |||
| 6b78dce87e | |||
| e5a198e1d8 | |||
| 1780110e33 | |||
| 19901b0d7d | |||
| d24af0461b | |||
| 31a574ec8b | |||
| 3feae61b1b | |||
| eaf65a326c | |||
| 13da2bc441 | |||
| 5420bad0ee | |||
| 8465c9ad2d | |||
| 5562e2b5d1 | |||
| a09425f361 | |||
| 18db530c0d | |||
| 03263edf8c | |||
| cd13a1ce08 | |||
| 1c5f31da6f | |||
| cafb4d1dfe | |||
| 828f1a0f05 | |||
| b03795e364 | |||
| c54c13d822 | |||
| fdc9550100 | |||
| 458cc49302 | |||
| e11afad89b | |||
| 43ae031131 | |||
| dd6780d636 | |||
| 42368a0245 | |||
| 8ca0035107 | |||
| 10332c59e0 | |||
| 09a1c9f710 | |||
| ba29c4171c | |||
| 3b9dde23e7 | |||
| 746e9bd3d6 | |||
| d7f0ee983b | |||
| 3feec88f7b | |||
| c0ffb64a86 | |||
| 8c08b7e995 | |||
| 4d7e766d75 | |||
| 09115c3961 | |||
| 63998bbce4 | |||
| 967f62f825 | |||
| e8ae0325e0 | |||
| 66a4563b51 | |||
| 330ae3eeb8 | |||
| 0534c39ee5 | |||
| 04047c1e44 | |||
| 5e501b9d17 | |||
| 5a434a9b7d | |||
| e554aec98d | |||
| ab0f5e6613 | |||
| 59607f6b34 | |||
| a13f0ddcb7 | |||
| fec604b481 | |||
| 085eddd66f | |||
| 30860802dd | |||
| 30f36ff35d | |||
|
|
81993625ba | ||
| 87b68aca1e | |||
| 10125c5816 | |||
| 21d33ec347 | |||
| ad57aa26ff | |||
| 8902c81b9e | |||
| 0ad4b6c82c | |||
| 189a0b4939 | |||
| c65d7b86df | |||
| e269e6ca57 | |||
| beaeac60a3 | |||
| 11d68fb4b5 | |||
| e7680fe2a0 | |||
| 19dff7fb56 | |||
| 67b314d0d2 | |||
| 63b28adaf8 | |||
| 8741973cca | |||
| 829a08d40a | |||
| 411bbe5935 | |||
| 5d5fbfbad4 | |||
| c93c221cf1 | |||
| afee0966c8 | |||
| 2df5363c2c |
@@ -12,8 +12,10 @@ All packages will be shared in our repository for users to get freely.
|
|||||||
Distrobution supported:Deepin 20 ; Ubuntu 22.04 LTS / Ubuntu 20.04 LTS(May stop support in the future) ; UniontechOS Home 21
|
Distrobution supported:Deepin 20 ; Ubuntu 22.04 LTS / Ubuntu 20.04 LTS(May stop support in the future) ; UniontechOS Home 21
|
||||||
|
|
||||||
|
|
||||||
|
You can track our Issue resoving progress here https://gitee.com/deepin-community-store/spark-store/board
|
||||||
|
|
||||||
I hope people who see here can also join our team,development help or submit applications are welcomed
|
|
||||||
|
We 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)
|
If you want to submit an APP to share with others,Please [Click here](https://upload.deepinos.org/index)
|
||||||
|
|
||||||
|
|||||||
@@ -10,6 +10,8 @@
|
|||||||
|
|
||||||
希望看到这里的人也可以加入我们的队伍,开发或者投递应用都很欢迎,共同构建Linux应用生态
|
希望看到这里的人也可以加入我们的队伍,开发或者投递应用都很欢迎,共同构建Linux应用生态
|
||||||
|
|
||||||
|
在这里追踪我们的Issue处理情况 https://gitee.com/deepin-community-store/spark-store/board
|
||||||
|
|
||||||
如果有想要提交的软件包,请 [在这里投稿](https://upload.deepinos.org/index)
|
如果有想要提交的软件包,请 [在这里投稿](https://upload.deepinos.org/index)
|
||||||
|
|
||||||
|
|
||||||
@@ -26,7 +28,7 @@
|
|||||||
Deepin V20/UOS 21 系统下, 安装依赖
|
Deepin V20/UOS 21 系统下, 安装依赖
|
||||||
|
|
||||||
```shell
|
```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
|
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 fakeroot
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -32,6 +32,8 @@
|
|||||||
<file>icons/category_active.svg</file>
|
<file>icons/category_active.svg</file>
|
||||||
<file>icons/refresh-page-dark.svg</file>
|
<file>icons/refresh-page-dark.svg</file>
|
||||||
<file>icons/refresh-page.svg</file>
|
<file>icons/refresh-page.svg</file>
|
||||||
|
<file>icons/upgrades-symbolic_dark.svg</file>
|
||||||
|
<file>icons/upgrades-symbolic.svg</file>
|
||||||
</qresource>
|
</qresource>
|
||||||
<qresource prefix="/">
|
<qresource prefix="/">
|
||||||
<file>tags/a2d.png</file>
|
<file>tags/a2d.png</file>
|
||||||
|
|||||||
7
assets/icons/upgrades-symbolic.svg
Normal file
7
assets/icons/upgrades-symbolic.svg
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
<svg width="16" height="16" xmlns="http://www.w3.org/2000/svg" stroke="null" style="vector-effect: non-scaling-stroke;">
|
||||||
|
|
||||||
|
<g stroke="null">
|
||||||
|
<title stroke="null">Layer 1</title>
|
||||||
|
<path transform="rotate(-180 8 8)" stroke="null" id="svg_1" d="m8,1c3.86599,0 7,3.13401 7,7c0,3.86599 -3.13401,7 -7,7c-3.86599,0 -7,-3.13401 -7,-7c0,-3.86599 3.13401,-7 7,-7zm1.5,7l-3,0c-0.27614,0 -0.5,0.22386 -0.5,0.5c0,0.27614 -0.22386,0.5 -0.5,0.5l0,0l-0.5,0c-0.10986,0 -0.21521,0.04364 -0.29289,0.12132c-0.16176,0.16176 -0.16176,0.42403 0,0.58579l0,0l2.93934,2.93934c0.19526,0.19526 0.51184,0.19526 0.7071,0l0,0l2.93934,-2.93934c0.07768,-0.07768 0.12132,-0.18304 0.12132,-0.2929c0,-0.22876 -0.18545,-0.41421 -0.41421,-0.41421l0,0l-0.5,0c-0.27614,0 -0.5,-0.22386 -0.5,-0.5c0,-0.27614 -0.22386,-0.5 -0.5,-0.5l0,0zm0,-2l-3,0c-0.27614,0 -0.5,0.22386 -0.5,0.5c0,0.27614 0.22386,0.5 0.5,0.5l0,0l3,0c0.27614,0 0.5,-0.22386 0.5,-0.5c0,-0.27614 -0.22386,-0.5 -0.5,-0.5l0,0zm0,-2l-3,0c-0.27614,0 -0.5,0.22386 -0.5,0.5c0,0.27614 0.22386,0.5 0.5,0.5l0,0l3,0c0.27614,0 0.5,-0.22386 0.5,-0.5c0,-0.27614 -0.22386,-0.5 -0.5,-0.5l0,0z" fill-rule="evenodd"/>
|
||||||
|
</g>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 1.1 KiB |
58
assets/icons/upgrades-symbolic_dark.svg
Normal file
58
assets/icons/upgrades-symbolic_dark.svg
Normal file
@@ -0,0 +1,58 @@
|
|||||||
|
<?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="16"
|
||||||
|
height="16"
|
||||||
|
viewBox="0 0 16 16"
|
||||||
|
version="1.1"
|
||||||
|
id="svg4"
|
||||||
|
sodipodi:docname="downloads-symbolic_dark.svg"
|
||||||
|
inkscape:version="0.92.4 (5da689c313, 2019-01-14)">
|
||||||
|
<metadata
|
||||||
|
id="metadata10">
|
||||||
|
<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>
|
||||||
|
<defs
|
||||||
|
id="defs8" />
|
||||||
|
<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="982"
|
||||||
|
id="namedview6"
|
||||||
|
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="svg4" />
|
||||||
|
<path
|
||||||
|
transform="rotate(-180 8 8)"
|
||||||
|
fill="#FFF"
|
||||||
|
fill-opacity=".8"
|
||||||
|
fill-rule="evenodd"
|
||||||
|
d="M8,1 C11.8659932,1 15,4.13400675 15,8 C15,11.8659932 11.8659932,15 8,15 C4.13400675,15 1,11.8659932 1,8 C1,4.13400675 4.13400675,1 8,1 Z M9.5,8 L6.5,8 C6.22385763,8 6,8.22385763 6,8.5 C6,8.77614237 5.77614237,9 5.5,9 L5.5,9 L5,9 C4.89014373,9 4.78478689,9.04364023 4.70710678,9.12132034 C4.54534632,9.2830808 4.54534632,9.54534632 4.70710678,9.70710678 L4.70710678,9.70710678 L7.64644661,12.6464466 C7.84170876,12.8417088 8.15829124,12.8417088 8.35355339,12.6464466 L8.35355339,12.6464466 L11.2928932,9.70710678 C11.3705733,9.62942667 11.4142136,9.52406983 11.4142136,9.41421356 C11.4142136,9.18544973 11.2287638,9 11,9 L11,9 L10.5,9 C10.2238576,9 10,8.77614237 10,8.5 C10,8.22385763 9.77614237,8 9.5,8 L9.5,8 Z M9.5,6 L6.5,6 C6.22385763,6 6,6.22385763 6,6.5 C6,6.77614237 6.22385763,7 6.5,7 L6.5,7 L9.5,7 C9.77614237,7 10,6.77614237 10,6.5 C10,6.22385763 9.77614237,6 9.5,6 L9.5,6 Z M9.5,4 L6.5,4 C6.22385763,4 6,4.22385763 6,4.5 C6,4.77614237 6.22385763,5 6.5,5 L6.5,5 L9.5,5 C9.77614237,5 10,4.77614237 10,4.5 C10,4.22385763 9.77614237,4 9.5,4 L9.5,4 Z"
|
||||||
|
id="path2"
|
||||||
|
style="fill:#ffffff;fill-opacity:0.60000002" />
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 2.6 KiB |
98
debian/changelog
vendored
98
debian/changelog
vendored
@@ -1,3 +1,101 @@
|
|||||||
|
spark-store (3.3.0.3) stable; urgency=medium
|
||||||
|
|
||||||
|
* 回滚 更新中行为到进度条而不是实时输出
|
||||||
|
* 更新应用时显示正在更新哪个应用
|
||||||
|
|
||||||
|
|
||||||
|
-- shenmo <shenmo@spark-app.store> Fri, 30 Jan 2022 00:00:00 +0800
|
||||||
|
|
||||||
|
spark-store (3.3.0.2) stable; urgency=medium
|
||||||
|
|
||||||
|
* 修复 pkexec未执行
|
||||||
|
|
||||||
|
|
||||||
|
-- shenmo <shenmo@spark-app.store> Fri, 30 Jan 2022 00:00:00 +0800
|
||||||
|
|
||||||
|
spark-store (3.3.0.1) stable; urgency=medium
|
||||||
|
|
||||||
|
* 修复 检查更新的更新进程未实际运行
|
||||||
|
|
||||||
|
|
||||||
|
-- shenmo <shenmo@spark-app.store> Fri, 30 Jan 2022 00:00:00 +0800
|
||||||
|
|
||||||
|
spark-store (3.3) stable; urgency=medium
|
||||||
|
|
||||||
|
* 修复 检查更新 未刷新软件源
|
||||||
|
* 把检查更新单独拿出作为左列
|
||||||
|
|
||||||
|
-- shenmo <shenmo@spark-app.store> Fri, 30 Jan 2022 00:00:00 +0800
|
||||||
|
|
||||||
|
spark-store (3.3~test3) stable; urgency=medium
|
||||||
|
|
||||||
|
* 把检查更新加入免密码
|
||||||
|
|
||||||
|
-- shenmo <shenmo@spark-app.store> Fri, 30 Jan 2022 00:00:00 +0800
|
||||||
|
|
||||||
|
spark-store (3.3~test2) stable; urgency=medium
|
||||||
|
|
||||||
|
* 更新检测功能全部更改到zenity
|
||||||
|
|
||||||
|
-- shenmo <shenmo@spark-app.store> Fri, 30 Jan 2022 00:00:00 +0800
|
||||||
|
|
||||||
|
spark-store (3.3~test1) stable; urgency=medium
|
||||||
|
|
||||||
|
* zenity,选择可更新应用
|
||||||
|
* 自动更新检测现在会跳过hold
|
||||||
|
|
||||||
|
-- shenmo <shenmo@spark-app.store> Fri, 30 Jan 2022 00:00:00 +0800
|
||||||
|
|
||||||
|
spark-store (3.2.4) stable; urgency=medium
|
||||||
|
|
||||||
|
* 修改tag相关的文案内容:wine相关环境已可自动配置了
|
||||||
|
* 准备发版
|
||||||
|
|
||||||
|
-- shenmo <shenmo@spark-app.store> Fri, 30 Jan 2022 00:00:00 +0800
|
||||||
|
|
||||||
|
spark-store (3.2.4~test4) stable; urgency=medium
|
||||||
|
|
||||||
|
* 现在在商店启动后点击spk链接仍会正常启动 https://gitee.com/deepin-community-store/spark-store/commit/dd6780d636042bf12d77414e6f1552cc7d1ed24c
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
-- shenmo <shenmo@spark-app.store> Fri, 30 Jan 2022 00:00:00 +0800
|
||||||
|
|
||||||
|
spark-store (3.2.4~test3) stable; urgency=medium
|
||||||
|
|
||||||
|
* 发版,合入到master
|
||||||
|
* 翻译完毕
|
||||||
|
* 合入先前的各项改动,为:客户端集成投稿器入口和支持,修复:安装依赖时间较长时错误地返回“安装完毕”结果,现在客户端版本更新时不关闭免密码登录,UOS安装进程合并正常aptss中
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
-- shenmo <shenmo@spark-app.store> Fri, 30 Jan 2022 00:00:00 +0800
|
||||||
|
|
||||||
|
spark-store (3.2.4~test2) stable; urgency=medium
|
||||||
|
|
||||||
|
* 客户端集成投稿器入口和支持
|
||||||
|
* 修复:安装依赖时间较长时错误地返回“安装完毕”结果
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
-- shenmo <shenmo@spark-app.store> Fri, 30 Jan 2022 00:00:00 +0800
|
||||||
|
|
||||||
|
spark-store (3.2.4~test1) stable; urgency=medium
|
||||||
|
|
||||||
|
* 客户端更新时不关闭免密码登录
|
||||||
|
* UOS合并正常aptss中
|
||||||
|
|
||||||
|
|
||||||
|
-- shenmo <shenmo@spark-app.store> Fri, 30 Jan 2022 00:00:00 +0800
|
||||||
|
|
||||||
|
spark-store (3.2.3) stable; urgency=medium
|
||||||
|
|
||||||
|
* 客户端异常退出时仍然占用资源问题修复
|
||||||
|
* 降低dtk依赖版本,Debian 11 stable可直接安装
|
||||||
|
|
||||||
|
-- shenmo <shenmo@spark-app.store> Fri, 30 Jan 2022 00:00:00 +0800
|
||||||
|
|
||||||
spark-store (3.2.2) stable; urgency=medium
|
spark-store (3.2.2) stable; urgency=medium
|
||||||
|
|
||||||
* aptss will now refresh the system source before doing install, policy....etc
|
* aptss will now refresh the system source before doing install, policy....etc
|
||||||
|
|||||||
10
debian/control
vendored
10
debian/control
vendored
@@ -11,9 +11,9 @@ Build-Depends:
|
|||||||
libqt5widgets5,
|
libqt5widgets5,
|
||||||
libqt5network5,
|
libqt5network5,
|
||||||
libqt5concurrent5,
|
libqt5concurrent5,
|
||||||
libdtkcore-dev(>=5.2),
|
libdtkcore-dev(>=5.0),
|
||||||
libdtkgui-dev(>=5.2),
|
libdtkgui-dev(>=5.0),
|
||||||
libdtkwidget-dev(>=5.2),
|
libdtkwidget-dev(>=5.0),
|
||||||
qttools5-private-dev,
|
qttools5-private-dev,
|
||||||
libnotify-dev,
|
libnotify-dev,
|
||||||
qtwebengine5-dev
|
qtwebengine5-dev
|
||||||
@@ -35,10 +35,12 @@ Depends:${shlibs:Depends}, ${misc:Depends},
|
|||||||
libnotify4,
|
libnotify4,
|
||||||
curl,
|
curl,
|
||||||
openssl,
|
openssl,
|
||||||
|
libssl-dev,
|
||||||
dde-qt5integration,
|
dde-qt5integration,
|
||||||
bubblewrap,
|
bubblewrap,
|
||||||
aria2,
|
aria2,
|
||||||
gcc
|
gcc,
|
||||||
|
zenity
|
||||||
Description: Spark Store
|
Description: Spark Store
|
||||||
A community powered app store, based on DTK.
|
A community powered app store, based on DTK.
|
||||||
Recommends: apt-fast
|
Recommends: apt-fast
|
||||||
|
|||||||
2
debian/spark-store.preinst
vendored
2
debian/spark-store.preinst
vendored
@@ -3,7 +3,7 @@
|
|||||||
function network-check()
|
function network-check()
|
||||||
{
|
{
|
||||||
#超时时间
|
#超时时间
|
||||||
local timeout=5
|
local timeout=15
|
||||||
|
|
||||||
#目标网站
|
#目标网站
|
||||||
local target=www.baidu.com
|
local target=www.baidu.com
|
||||||
|
|||||||
6
debian/spark-store.prerm
vendored
6
debian/spark-store.prerm
vendored
@@ -1,5 +1,6 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
if [ "$1" = "remove" ] || [ "$1" = "purge" ];then
|
||||||
# Remove residual symbol links
|
# Remove residual symbol links
|
||||||
rm /usr/local/bin/spark-store
|
rm /usr/local/bin/spark-store
|
||||||
rm /usr/local/bin/ssinstall
|
rm /usr/local/bin/ssinstall
|
||||||
@@ -39,3 +40,8 @@ fi
|
|||||||
|
|
||||||
apt-key del '9D9A A859 F750 24B1 A1EC E16E 0E41 D354 A29A 440C'
|
apt-key del '9D9A A859 F750 24B1 A1EC E16E 0E41 D354 A29A 440C'
|
||||||
|
|
||||||
|
else
|
||||||
|
|
||||||
|
echo "非卸载操作,不进行配置清理"
|
||||||
|
|
||||||
|
fi
|
||||||
|
|||||||
@@ -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="store.spark-app.ss-do-upgrade">
|
||||||
|
<description>运行ss-do-upgrade需要权限</description>
|
||||||
|
<message>要使用ss-do-upgrade需要权限</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">/opt/durapps/spark-store/bin/update-upgrade/ss-do-upgrade.sh</annotate>
|
||||||
|
<annotate key="org.freedesktop.policykit.exec.allow_gui">true</annotate>
|
||||||
|
</action>
|
||||||
|
</policyconfig>
|
||||||
@@ -36,7 +36,7 @@ desktop.path = /usr/share/applications
|
|||||||
service.files += pkg/usr/lib/systemd/system/spark-update-notifier.service
|
service.files += pkg/usr/lib/systemd/system/spark-update-notifier.service
|
||||||
service.path = /usr/lib/systemd/system/
|
service.path = /usr/lib/systemd/system/
|
||||||
|
|
||||||
polkit-1.files +=pkg/usr/share/polkit-1/actions/store.spark-app.ssinstall.policy
|
polkit-1.files +=pkg/usr/share/polkit-1/actions/store.spark-app.ss-do-upgrade.policy
|
||||||
polkit-1.path = /usr/share/polkit-1/actions/
|
polkit-1.path = /usr/share/polkit-1/actions/
|
||||||
|
|
||||||
|
|
||||||
@@ -55,6 +55,6 @@ INSTALLS += \
|
|||||||
preferences \
|
preferences \
|
||||||
tmp \
|
tmp \
|
||||||
service \
|
service \
|
||||||
bash_completion
|
bash_completion \
|
||||||
# polkit-1
|
polkit-1
|
||||||
# 暂时不添加
|
# 暂时不添加
|
||||||
|
|||||||
12
src/dbus/dbussparkstore.cpp
Normal file
12
src/dbus/dbussparkstore.cpp
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
#include "dbussparkstore.h"
|
||||||
|
#include <QDebug>
|
||||||
|
DBusSparkStoreService::DBusSparkStoreService(QObject *parent)
|
||||||
|
: QDBusAbstractAdaptor(parent)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
void DBusSparkStoreService::activeWindow(const QString & arg)
|
||||||
|
{
|
||||||
|
emit sigOpenUrl(arg);
|
||||||
|
}
|
||||||
24
src/dbus/dbussparkstore.h
Normal file
24
src/dbus/dbussparkstore.h
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
#ifndef DBUSSPARKSTORE_H
|
||||||
|
#define DBUSSPARKSTORE_H
|
||||||
|
|
||||||
|
#include <QObject>
|
||||||
|
#include <QUrl>
|
||||||
|
#include <QtDBus/QtDBus>
|
||||||
|
|
||||||
|
class Wallpaper;
|
||||||
|
class DBusSparkStoreService : public QDBusAbstractAdaptor
|
||||||
|
{
|
||||||
|
Q_OBJECT
|
||||||
|
Q_CLASSINFO("D-Bus Interface", "com.gitee.spark.store")
|
||||||
|
public:
|
||||||
|
explicit DBusSparkStoreService(QObject *parent);
|
||||||
|
|
||||||
|
signals :
|
||||||
|
void sigOpenUrl(const QString &url);
|
||||||
|
public Q_SLOTS:
|
||||||
|
|
||||||
|
void activeWindow(const QString &arg);
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif // DBUSSPARKSTORE_H
|
||||||
@@ -151,7 +151,7 @@ void downloadlist::install(int t)
|
|||||||
|
|
||||||
bool haveError = false;
|
bool haveError = false;
|
||||||
bool notRoot = false;
|
bool notRoot = false;
|
||||||
installer.waitForFinished();
|
installer.waitForFinished(-1); // 不设置超时
|
||||||
out = installer.readAllStandardOutput();
|
out = installer.readAllStandardOutput();
|
||||||
|
|
||||||
QStringList everyOut = out.split("\n");
|
QStringList everyOut = out.split("\n");
|
||||||
@@ -169,7 +169,7 @@ void downloadlist::install(int t)
|
|||||||
|
|
||||||
QProcess isInstall;
|
QProcess isInstall;
|
||||||
isInstall.start("dpkg -s " + pkgName);
|
isInstall.start("dpkg -s " + pkgName);
|
||||||
isInstall.waitForFinished();
|
isInstall.waitForFinished(180); // 默认超时 3 分钟
|
||||||
int error = QString::fromStdString(isInstall.readAllStandardError().toStdString()).length();
|
int error = QString::fromStdString(isInstall.readAllStandardError().toStdString()).length();
|
||||||
if(error == 0)
|
if(error == 0)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -116,7 +116,7 @@ void DownloadController::startDownload(const QString &url)
|
|||||||
else{
|
else{
|
||||||
for (int i = 0; i < domains.size(); i++)
|
for (int i = 0; i < domains.size(); i++)
|
||||||
{
|
{
|
||||||
command.append(replaceDomain(url, domains.at(i)).toUtf8());
|
command.append(replaceDomain(url, domains.at(i)).replace("+","%2B").toUtf8()); //对+进行转译,避免oss出错
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
20
src/main.cpp
20
src/main.cpp
@@ -4,6 +4,9 @@
|
|||||||
#include <DAboutDialog>
|
#include <DAboutDialog>
|
||||||
#include <QVector>
|
#include <QVector>
|
||||||
#include <QScreen>
|
#include <QScreen>
|
||||||
|
//新增dbus
|
||||||
|
#include <QDBusInterface>
|
||||||
|
#include <QDBusPendingCall>
|
||||||
|
|
||||||
#include "widget.h"
|
#include "widget.h"
|
||||||
|
|
||||||
@@ -15,7 +18,7 @@ int main(int argc, char *argv[])
|
|||||||
// 程序内强制添加"-platformtheme deepin"参数喂给Qt让Qt正确使用Deepin主题修复各种奇怪样式问题
|
// 程序内强制添加"-platformtheme deepin"参数喂给Qt让Qt正确使用Deepin主题修复各种奇怪样式问题
|
||||||
|
|
||||||
// 浏览器开启 GPU 支持
|
// 浏览器开启 GPU 支持
|
||||||
qputenv("QTWEBENGINE_CHROMIUM_FLAGS", "--ignore-gpu-blacklist --enable-gpu-rasterization --enable-native-gpu-memory-buffers --enable-accelerated-video-decode");
|
qputenv("QTWEBENGINE_CHROMIUM_FLAGS", "--ignore-gpu-blocklist --enable-gpu-rasterization --enable-native-gpu-memory-buffers --enable-accelerated-video-decode");
|
||||||
|
|
||||||
QVector<char*> fakeArgs(argc + 2);
|
QVector<char*> fakeArgs(argc + 2);
|
||||||
fakeArgs[0] = argv[0];
|
fakeArgs[0] = argv[0];
|
||||||
@@ -34,7 +37,7 @@ int main(int argc, char *argv[])
|
|||||||
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 3.2.2"));
|
dialog.setVersion(DApplication::buildVersion("Version 3.3.0.3"));
|
||||||
dialog.setProductIcon(QIcon::fromTheme("spark-store")); // 设置Logo
|
dialog.setProductIcon(QIcon::fromTheme("spark-store")); // 设置Logo
|
||||||
dialog.setProductName(QLabel::tr("Spark Store"));
|
dialog.setProductName(QLabel::tr("Spark Store"));
|
||||||
dialog.setDescription(
|
dialog.setDescription(
|
||||||
@@ -55,7 +58,7 @@ int main(int argc, char *argv[])
|
|||||||
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.2.2"));
|
a.setApplicationVersion(DApplication::buildVersion("3.3.0.3"));
|
||||||
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(
|
||||||
@@ -69,6 +72,17 @@ int main(int argc, char *argv[])
|
|||||||
// 限制单实例运行
|
// 限制单实例运行
|
||||||
if(!a.setSingleInstance("spark-store"))
|
if(!a.setSingleInstance("spark-store"))
|
||||||
{
|
{
|
||||||
|
qDebug() << "The application is already running!";
|
||||||
|
QDBusInterface iface("com.gitee.spark.store",
|
||||||
|
"/com/gitee/spark/store",
|
||||||
|
"com.gitee.spark.store",
|
||||||
|
QDBusConnection::sessionBus());
|
||||||
|
|
||||||
|
QString arg1 = argv[1];
|
||||||
|
|
||||||
|
iface.asyncCall("activeWindow",arg1);
|
||||||
|
|
||||||
|
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ QT += core gui network concurrent webenginewidgets
|
|||||||
|
|
||||||
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
|
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
|
||||||
|
|
||||||
|
QT += dbus
|
||||||
TARGET = spark-store
|
TARGET = spark-store
|
||||||
TEMPLATE = app
|
TEMPLATE = app
|
||||||
|
|
||||||
@@ -41,7 +42,8 @@ SOURCES += \
|
|||||||
main.cpp \
|
main.cpp \
|
||||||
progressload.cpp \
|
progressload.cpp \
|
||||||
widget.cpp \
|
widget.cpp \
|
||||||
workerthreads.cpp
|
workerthreads.cpp \
|
||||||
|
dbus/dbussparkstore.cpp
|
||||||
|
|
||||||
HEADERS += \
|
HEADERS += \
|
||||||
appitem.h \
|
appitem.h \
|
||||||
@@ -52,7 +54,8 @@ HEADERS += \
|
|||||||
image_show.h \
|
image_show.h \
|
||||||
progressload.h \
|
progressload.h \
|
||||||
widget.h \
|
widget.h \
|
||||||
workerthreads.h
|
workerthreads.h \
|
||||||
|
dbus/dbussparkstore.h
|
||||||
|
|
||||||
FORMS += \
|
FORMS += \
|
||||||
appitem.ui \
|
appitem.ui \
|
||||||
|
|||||||
125
src/widget.cpp
125
src/widget.cpp
@@ -18,6 +18,7 @@
|
|||||||
#include <QSettings>
|
#include <QSettings>
|
||||||
#include <QGraphicsOpacityEffect>
|
#include <QGraphicsOpacityEffect>
|
||||||
#include <QtConcurrent> // 并发
|
#include <QtConcurrent> // 并发
|
||||||
|
#include <QCloseEvent> // close event
|
||||||
|
|
||||||
#include <DApplication>
|
#include <DApplication>
|
||||||
#include <DGuiApplicationHelper>
|
#include <DGuiApplicationHelper>
|
||||||
@@ -32,6 +33,7 @@
|
|||||||
#include "HttpClient.h"
|
#include "HttpClient.h"
|
||||||
#include "downloadworker.h"
|
#include "downloadworker.h"
|
||||||
|
|
||||||
|
#include "./dbus/dbussparkstore.h"
|
||||||
DWIDGET_USE_NAMESPACE
|
DWIDGET_USE_NAMESPACE
|
||||||
|
|
||||||
Widget::Widget(DBlurEffectWidget *parent) :
|
Widget::Widget(DBlurEffectWidget *parent) :
|
||||||
@@ -61,7 +63,8 @@ Widget::Widget(DBlurEffectWidget *parent) :
|
|||||||
connect(ui->menu_system, &QPushButton::clicked, this, [=](){Widget::chooseLeftMenu(10);});
|
connect(ui->menu_system, &QPushButton::clicked, this, [=](){Widget::chooseLeftMenu(10);});
|
||||||
connect(ui->menu_theme, &QPushButton::clicked, this, [=](){Widget::chooseLeftMenu(11);});
|
connect(ui->menu_theme, &QPushButton::clicked, this, [=](){Widget::chooseLeftMenu(11);});
|
||||||
connect(ui->menu_other, &QPushButton::clicked, this, [=](){Widget::chooseLeftMenu(12);});
|
connect(ui->menu_other, &QPushButton::clicked, this, [=](){Widget::chooseLeftMenu(12);});
|
||||||
connect(ui->menu_download, &QPushButton::clicked, this, [=](){Widget::chooseLeftMenu(13);});
|
connect(ui->menu_upgrade, &QPushButton::clicked, this, [=](){Widget::chooseLeftMenu(13);});
|
||||||
|
connect(ui->menu_download, &QPushButton::clicked, this, [=](){Widget::chooseLeftMenu(14);});
|
||||||
|
|
||||||
connect(DGuiApplicationHelper::instance(), &DGuiApplicationHelper::themeTypeChanged, this, [=](DGuiApplicationHelper::ColorType themeType)
|
connect(DGuiApplicationHelper::instance(), &DGuiApplicationHelper::themeTypeChanged, this, [=](DGuiApplicationHelper::ColorType themeType)
|
||||||
{
|
{
|
||||||
@@ -137,6 +140,9 @@ Widget::Widget(DBlurEffectWidget *parent) :
|
|||||||
});
|
});
|
||||||
|
|
||||||
notify_init(tr("Spark\\ Store").toLocal8Bit());
|
notify_init(tr("Spark\\ Store").toLocal8Bit());
|
||||||
|
|
||||||
|
//初始化dbus服务
|
||||||
|
initDbus();
|
||||||
}
|
}
|
||||||
|
|
||||||
Widget::~Widget()
|
Widget::~Widget()
|
||||||
@@ -192,6 +198,7 @@ void Widget::initUI()
|
|||||||
|
|
||||||
// 添加菜单项
|
// 添加菜单项
|
||||||
QAction *actionSubmission = new QAction(tr("Submit App"), this);
|
QAction *actionSubmission = new QAction(tr("Submit App"), this);
|
||||||
|
QAction *actionSubmissionWithClient = new QAction(tr("Submit App with client(Recommanded)"), this);
|
||||||
QAction *setting = new QAction(tr("Settings"));
|
QAction *setting = new QAction(tr("Settings"));
|
||||||
QAction *upgrade = new QAction(tr("APP Upgrade and Install Settings"));
|
QAction *upgrade = new QAction(tr("APP Upgrade and Install Settings"));
|
||||||
|
|
||||||
@@ -199,12 +206,30 @@ void Widget::initUI()
|
|||||||
menu->addAction(setting);
|
menu->addAction(setting);
|
||||||
menu->addAction(upgrade);
|
menu->addAction(upgrade);
|
||||||
menu->addAction(actionSubmission);
|
menu->addAction(actionSubmission);
|
||||||
|
menu->addAction(actionSubmissionWithClient);
|
||||||
|
|
||||||
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");});
|
connect(upgrade, &QAction::triggered, this, [=]{QProcess::startDetached("/opt/durapps/spark-store/bin/update-upgrade/ss-update-controler.sh");});
|
||||||
|
|
||||||
|
// 投稿器
|
||||||
|
connect(actionSubmissionWithClient, &QAction::triggered, this, [=]
|
||||||
|
{
|
||||||
|
QString submitterSpk = "spk://store/tools/spark-store-submitter";
|
||||||
|
QFile actionSubmissionClientStatus("/opt/spark-store-submitter/bin/spark-store-submitter");
|
||||||
|
if (actionSubmissionClientStatus.exists())
|
||||||
|
{
|
||||||
|
qDebug() << "投稿器存在";
|
||||||
|
QProcess::startDetached("/opt/spark-store-submitter/bin/spark-store-submitter");
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
qDebug() << "投稿器不存在,跳转页面";
|
||||||
|
openUrl(submitterSpk);
|
||||||
|
}
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
// 载入自定义字体
|
// 载入自定义字体
|
||||||
int loadedFontID = QFontDatabase::addApplicationFont(":/fonts/fonts/hksnzt.ttf");
|
int loadedFontID = QFontDatabase::addApplicationFont(":/fonts/fonts/hksnzt.ttf");
|
||||||
@@ -231,7 +256,8 @@ void Widget::initUI()
|
|||||||
left_list[10] = ui->menu_system;
|
left_list[10] = ui->menu_system;
|
||||||
left_list[11] = ui->menu_theme;
|
left_list[11] = ui->menu_theme;
|
||||||
left_list[12] = ui->menu_other;
|
left_list[12] = ui->menu_other;
|
||||||
left_list[13] = ui->menu_download;
|
left_list[13] = ui->menu_upgrade;
|
||||||
|
left_list[14] = ui->menu_download;
|
||||||
|
|
||||||
ui->label_show->hide();
|
ui->label_show->hide();
|
||||||
|
|
||||||
@@ -432,6 +458,15 @@ void Widget::sendNotification(const char *message, const int msTimeout, const QS
|
|||||||
notify_notification_show(_notify, nullptr);
|
notify_notification_show(_notify, nullptr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void Widget::initDbus()
|
||||||
|
{
|
||||||
|
DBusSparkStoreService *dbusInter = new DBusSparkStoreService(this);
|
||||||
|
|
||||||
|
QDBusConnection::sessionBus().registerService("com.gitee.spark.store");
|
||||||
|
QDBusConnection::sessionBus().registerObject("/com/gitee/spark/store", "com.gitee.spark.store", this);
|
||||||
|
connect(dbusInter,&DBusSparkStoreService::sigOpenUrl,this,&Widget::onGetUrl);
|
||||||
|
}
|
||||||
|
|
||||||
void Widget::updateUI()
|
void Widget::updateUI()
|
||||||
{
|
{
|
||||||
if(themeIsDark)
|
if(themeIsDark)
|
||||||
@@ -449,7 +484,8 @@ void Widget::updateUI()
|
|||||||
left_list[10]->setIcon(QIcon(":/icons/icons/category_system_dark.svg"));
|
left_list[10]->setIcon(QIcon(":/icons/icons/category_system_dark.svg"));
|
||||||
left_list[11]->setIcon(QIcon(":/icons/icons/theme-symbolic_dark.svg"));
|
left_list[11]->setIcon(QIcon(":/icons/icons/theme-symbolic_dark.svg"));
|
||||||
left_list[12]->setIcon(QIcon(":/icons/icons/category_others_dark.svg"));
|
left_list[12]->setIcon(QIcon(":/icons/icons/category_others_dark.svg"));
|
||||||
left_list[13]->setIcon(QIcon(":/icons/icons/downloads-symbolic_dark.svg"));
|
left_list[13]->setIcon(QIcon(":/icons/icons/upgrades-symbolic_dark.svg"));
|
||||||
|
left_list[14]->setIcon(QIcon(":/icons/icons/downloads-symbolic_dark.svg"));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@@ -466,10 +502,11 @@ void Widget::updateUI()
|
|||||||
left_list[10]->setIcon(QIcon(":/icons/icons/category_system.svg"));
|
left_list[10]->setIcon(QIcon(":/icons/icons/category_system.svg"));
|
||||||
left_list[11]->setIcon(QIcon(":/icons/icons/theme-symbolic.svg"));
|
left_list[11]->setIcon(QIcon(":/icons/icons/theme-symbolic.svg"));
|
||||||
left_list[12]->setIcon(QIcon(":/icons/icons/category_others.svg"));
|
left_list[12]->setIcon(QIcon(":/icons/icons/category_others.svg"));
|
||||||
left_list[13]->setIcon(QIcon(":/icons/icons/downloads-symbolic.svg"));
|
left_list[13]->setIcon(QIcon(":/icons/icons/upgrades-symbolic.svg"));
|
||||||
|
left_list[14]->setIcon(QIcon(":/icons/icons/downloads-symbolic.svg"));
|
||||||
}
|
}
|
||||||
|
|
||||||
for(int i = 0; i < 14; i++)
|
for(int i = 0; i < 15; i++)
|
||||||
{
|
{
|
||||||
/* 设置左侧菜单字体
|
/* 设置左侧菜单字体
|
||||||
* QFont temp = font;
|
* QFont temp = font;
|
||||||
@@ -477,6 +514,9 @@ void Widget::updateUI()
|
|||||||
* left_list[i]->setFont(temp);
|
* left_list[i]->setFont(temp);
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
QFont temp;
|
||||||
|
temp.setFamily(temp.defaultFamily());
|
||||||
|
left_list[i]->setFont(temp);
|
||||||
left_list[i]->setFixedHeight(38);
|
left_list[i]->setFixedHeight(38);
|
||||||
if(themeIsDark)
|
if(themeIsDark)
|
||||||
{
|
{
|
||||||
@@ -554,7 +594,10 @@ void Widget::updateUI()
|
|||||||
left_list[12]->setIcon(QIcon(":/icons/icons/category_others_dark.svg"));
|
left_list[12]->setIcon(QIcon(":/icons/icons/category_others_dark.svg"));
|
||||||
break;
|
break;
|
||||||
case 13:
|
case 13:
|
||||||
left_list[13]->setIcon(QIcon(":/icons/icons/downloads-symbolic_dark.svg"));
|
left_list[13]->setIcon(QIcon(":/icons/icons/upgrades-symbolic_dark.svg"));
|
||||||
|
break;
|
||||||
|
case 14:
|
||||||
|
left_list[14]->setIcon(QIcon(":/icons/icons/downloads-symbolic_dark.svg"));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -572,14 +615,14 @@ void Widget::chooseLeftMenu(int index)
|
|||||||
|
|
||||||
updateUI();
|
updateUI();
|
||||||
|
|
||||||
if(index <= 12)
|
if (index <= 12)
|
||||||
{
|
{
|
||||||
if(themeIsDark)
|
if (themeIsDark)
|
||||||
{
|
{
|
||||||
QString darkurl = menuUrl[index].toString();
|
QString darkurl = menuUrl[index].toString();
|
||||||
QStringList list = darkurl.split("/");
|
QStringList list = darkurl.split("/");
|
||||||
darkurl.clear();
|
darkurl.clear();
|
||||||
for(int i = 0; i < list.size() - 1; i++)
|
for (int i = 0; i < list.size() - 1; i++)
|
||||||
{
|
{
|
||||||
darkurl += list[i] + "/";
|
darkurl += list[i] + "/";
|
||||||
}
|
}
|
||||||
@@ -594,6 +637,16 @@ void Widget::chooseLeftMenu(int index)
|
|||||||
|
|
||||||
ui->stackedWidget->setCurrentIndex(0);
|
ui->stackedWidget->setCurrentIndex(0);
|
||||||
}
|
}
|
||||||
|
else if (index == 13){
|
||||||
|
QtConcurrent::run([=]{
|
||||||
|
auto upgradeP = new QProcess();
|
||||||
|
upgradeP->startDetached("/opt/durapps/spark-store/bin/update-upgrade/ss-do-upgrade.sh");
|
||||||
|
upgradeP->waitForStarted();
|
||||||
|
upgradeP->waitForFinished(-1);
|
||||||
|
|
||||||
|
});
|
||||||
|
ui->stackedWidget->setCurrentIndex(0);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ui->stackedWidget->setCurrentIndex(1);
|
ui->stackedWidget->setCurrentIndex(1);
|
||||||
@@ -613,7 +666,7 @@ void Widget::updatefoot()
|
|||||||
|
|
||||||
void Widget::on_pushButton_download_clicked()
|
void Widget::on_pushButton_download_clicked()
|
||||||
{
|
{
|
||||||
chooseLeftMenu(13);
|
chooseLeftMenu(14);
|
||||||
|
|
||||||
allDownload += 1;
|
allDownload += 1;
|
||||||
|
|
||||||
@@ -687,22 +740,18 @@ void Widget::searchApp(QString text)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// sendNotification(tr("Spark store could only process spk:// links for now. The search feature is coming soon!"));
|
|
||||||
// ui->webView->setUrl(QUrl("http://www.baidu.com/s?wd="+text)); // 这东西对接百度
|
|
||||||
// ui->stackedWidget->setCurrentIndex(0);
|
|
||||||
|
|
||||||
// 禁止同时进行多次搜索
|
// 禁止同时进行多次搜索
|
||||||
if(!mutex.tryLock())
|
if (!mutex.tryLock())
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 关键字搜索处理
|
// 关键字搜索处理
|
||||||
httpClient->get("https://search.deepinos.org.cn/appinfo/search")
|
httpClient->get("https://search.deepinos.org.cn/appinfo/search")
|
||||||
.header("content-type", "application/json")
|
.header("content-type", "application/json")
|
||||||
.queryParam("keyword", text)
|
.queryParam("keyword", text)
|
||||||
.onResponse([this](QByteArray result)
|
.onResponse([this](QByteArray result)
|
||||||
{
|
{
|
||||||
auto json = QJsonDocument::fromJson(result).array();
|
auto json = QJsonDocument::fromJson(result).array();
|
||||||
if (json.empty())
|
if (json.empty())
|
||||||
{
|
{
|
||||||
@@ -711,20 +760,24 @@ void Widget::searchApp(QString text)
|
|||||||
mutex.unlock();
|
mutex.unlock();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
displaySearchApp(json);
|
displaySearchApp(json); })
|
||||||
})
|
.onError([this](QString errorStr)
|
||||||
.onError([this](QString errorStr)
|
{
|
||||||
{
|
|
||||||
qDebug() << "请求出错:" << errorStr;
|
qDebug() << "请求出错:" << errorStr;
|
||||||
sendNotification(QString(tr("Request Error: %1")).arg(errorStr));
|
sendNotification(QString(tr("Request Error: %1")).arg(errorStr));
|
||||||
mutex.unlock();
|
mutex.unlock();
|
||||||
return;
|
return; })
|
||||||
})
|
.timeout(10 * 1000)
|
||||||
.timeout(10 * 1000)
|
.exec();
|
||||||
.exec();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void Widget::closeEvent(QCloseEvent *event)
|
||||||
|
{
|
||||||
|
mutex.unlock();
|
||||||
|
httpClient->deleteLater();
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief 展示搜索的APP信息
|
* @brief 展示搜索的APP信息
|
||||||
*/
|
*/
|
||||||
@@ -1108,11 +1161,11 @@ void Widget::on_pushButton_uninstall_clicked()
|
|||||||
|
|
||||||
QProcess uninstall;
|
QProcess uninstall;
|
||||||
uninstall.start("pkexec", QStringList() << "apt" << "purge" << "-y" << pkgName.toLower());
|
uninstall.start("pkexec", QStringList() << "apt" << "purge" << "-y" << pkgName.toLower());
|
||||||
uninstall.waitForFinished();
|
uninstall.waitForFinished(-1); // 默认无限时长
|
||||||
|
|
||||||
QProcess check;
|
QProcess check;
|
||||||
check.start("dpkg", QStringList() << "-s" << pkgName.toLower());
|
check.start("dpkg", QStringList() << "-s" << pkgName.toLower());
|
||||||
check.waitForFinished();
|
check.waitForFinished(180); // 默认超时 3 分钟
|
||||||
|
|
||||||
if (check.readAllStandardOutput().isEmpty())
|
if (check.readAllStandardOutput().isEmpty())
|
||||||
{
|
{
|
||||||
@@ -1283,6 +1336,7 @@ void Widget::on_webEngineView_urlChanged(const QUrl &arg1)
|
|||||||
ui->stackedWidget->setCurrentIndex(2);
|
ui->stackedWidget->setCurrentIndex(2);
|
||||||
|
|
||||||
qDebug() << "程序跳转链接地址:" << arg1;
|
qDebug() << "程序跳转链接地址:" << arg1;
|
||||||
|
QString url = arg1.toString();
|
||||||
|
|
||||||
/*
|
/*
|
||||||
load.cancel(); // 打开并发加载线程前关闭正在执行的线程
|
load.cancel(); // 打开并发加载线程前关闭正在执行的线程
|
||||||
@@ -1293,7 +1347,7 @@ void Widget::on_webEngineView_urlChanged(const QUrl &arg1)
|
|||||||
*/
|
*/
|
||||||
appinfoLoadThread.requestInterruption();
|
appinfoLoadThread.requestInterruption();
|
||||||
appinfoLoadThread.wait(100);
|
appinfoLoadThread.wait(100);
|
||||||
appinfoLoadThread.setUrl(arg1);
|
appinfoLoadThread.setUrl(url.replace("+","%2B")); //对+进行转译,避免oss出错
|
||||||
appinfoLoadThread.start();
|
appinfoLoadThread.start();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1333,3 +1387,12 @@ void Widget::on_pushButton_update_clicked()
|
|||||||
QDesktopServices::openUrl(QUrl("https://www.deepinos.org/"));
|
QDesktopServices::openUrl(QUrl("https://www.deepinos.org/"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void Widget::onGetUrl(const QString &url)
|
||||||
|
{
|
||||||
|
if(url.left(6)=="spk://")
|
||||||
|
{
|
||||||
|
openUrl(QUrl(url));
|
||||||
|
}
|
||||||
|
activateWindow();
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -64,6 +64,7 @@ public:
|
|||||||
static void sendNotification(const QString &message, const int msTimeout = 5000, const QString &icon = "spark-store");
|
static void sendNotification(const QString &message, const int msTimeout = 5000, const QString &icon = "spark-store");
|
||||||
static void sendNotification(const char *message, const int msTimeout = 5000, const QString &icon = "spark-store");
|
static void sendNotification(const char *message, const int msTimeout = 5000, const QString &icon = "spark-store");
|
||||||
|
|
||||||
|
void initDbus();
|
||||||
private slots:
|
private slots:
|
||||||
|
|
||||||
void httpFinished();
|
void httpFinished();
|
||||||
@@ -103,6 +104,9 @@ private slots:
|
|||||||
void on_pushButton_refresh_clicked();
|
void on_pushButton_refresh_clicked();
|
||||||
void on_pushButton_update_clicked();
|
void on_pushButton_update_clicked();
|
||||||
|
|
||||||
|
//接受来自dbus的url
|
||||||
|
void onGetUrl(const QString &url);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
QUrl url;
|
QUrl url;
|
||||||
QString cdnSeverUrl;
|
QString cdnSeverUrl;
|
||||||
@@ -128,6 +132,7 @@ private:
|
|||||||
void setfoot(int);
|
void setfoot(int);
|
||||||
void updatefoot();
|
void updatefoot();
|
||||||
void updateUI();
|
void updateUI();
|
||||||
|
void closeEvent(QCloseEvent *event);
|
||||||
|
|
||||||
quint64 dirFileSize(const QString &path);
|
quint64 dirFileSize(const QString &path);
|
||||||
|
|
||||||
|
|||||||
253
src/widget.ui
253
src/widget.ui
@@ -7,7 +7,7 @@
|
|||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>1053</width>
|
<width>1053</width>
|
||||||
<height>711</height>
|
<height>754</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
@@ -93,6 +93,20 @@
|
|||||||
<property name="rightMargin">
|
<property name="rightMargin">
|
||||||
<number>5</number>
|
<number>5</number>
|
||||||
</property>
|
</property>
|
||||||
|
<item row="13" column="0" colspan="6">
|
||||||
|
<widget class="QPushButton" name="menu_theme">
|
||||||
|
<property name="text">
|
||||||
|
<string>Beautify</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="4" column="0" colspan="6">
|
||||||
|
<widget class="QPushButton" name="menu_chat">
|
||||||
|
<property name="text">
|
||||||
|
<string>Chat</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
<item row="1" column="0">
|
<item row="1" column="0">
|
||||||
<spacer name="verticalSpacer_7">
|
<spacer name="verticalSpacer_7">
|
||||||
<property name="orientation">
|
<property name="orientation">
|
||||||
@@ -109,86 +123,30 @@
|
|||||||
</property>
|
</property>
|
||||||
</spacer>
|
</spacer>
|
||||||
</item>
|
</item>
|
||||||
<item row="5" column="0" colspan="6">
|
<item row="3" column="0" colspan="6">
|
||||||
<widget class="QPushButton" name="menu_music">
|
<widget class="QPushButton" name="menu_network">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Music</string>
|
<string>Network</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="7" column="0" colspan="6">
|
<item row="18" column="0">
|
||||||
<widget class="QPushButton" name="menu_photo">
|
<spacer name="verticalSpacer">
|
||||||
<property name="text">
|
|
||||||
<string>Graphics</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="11" column="0" colspan="6">
|
|
||||||
<widget class="QPushButton" name="menu_dev">
|
|
||||||
<property name="text">
|
|
||||||
<string>Development</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="0" column="0" colspan="2">
|
|
||||||
<widget class="QLabel" name="icon">
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>0</width>
|
|
||||||
<height>36</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="maximumSize">
|
|
||||||
<size>
|
|
||||||
<width>16777215</width>
|
|
||||||
<height>36</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>icon</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="0" column="5">
|
|
||||||
<spacer name="horizontalSpacer_8">
|
|
||||||
<property name="orientation">
|
<property name="orientation">
|
||||||
<enum>Qt::Horizontal</enum>
|
<enum>Qt::Vertical</enum>
|
||||||
</property>
|
|
||||||
<property name="sizeType">
|
|
||||||
<enum>QSizePolicy::Fixed</enum>
|
|
||||||
</property>
|
</property>
|
||||||
<property name="sizeHint" stdset="0">
|
<property name="sizeHint" stdset="0">
|
||||||
<size>
|
<size>
|
||||||
<width>3</width>
|
<width>20</width>
|
||||||
<height>20</height>
|
<height>40</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
</spacer>
|
</spacer>
|
||||||
</item>
|
</item>
|
||||||
<item row="0" column="2">
|
<item row="8" column="0" colspan="6">
|
||||||
<spacer name="horizontalSpacer_9">
|
<widget class="QPushButton" name="menu_game">
|
||||||
<property name="orientation">
|
|
||||||
<enum>Qt::Horizontal</enum>
|
|
||||||
</property>
|
|
||||||
<property name="sizeHint" stdset="0">
|
|
||||||
<size>
|
|
||||||
<width>40</width>
|
|
||||||
<height>20</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
</spacer>
|
|
||||||
</item>
|
|
||||||
<item row="12" column="0" colspan="6">
|
|
||||||
<widget class="QPushButton" name="menu_system">
|
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Tools</string>
|
<string>Games</string>
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="10" column="0" colspan="6">
|
|
||||||
<widget class="QPushButton" name="menu_read">
|
|
||||||
<property name="text">
|
|
||||||
<string>Reading</string>
|
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
@@ -199,6 +157,13 @@
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
<item row="17" column="0" colspan="6">
|
||||||
|
<widget class="QPushButton" name="menu_download">
|
||||||
|
<property name="text">
|
||||||
|
<string>Download</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
<item row="0" column="3">
|
<item row="0" column="3">
|
||||||
<widget class="QPushButton" name="pushButton_refresh">
|
<widget class="QPushButton" name="pushButton_refresh">
|
||||||
<property name="maximumSize">
|
<property name="maximumSize">
|
||||||
@@ -219,10 +184,10 @@
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="4" column="0" colspan="6">
|
<item row="6" column="0" colspan="6">
|
||||||
<widget class="QPushButton" name="menu_chat">
|
<widget class="QPushButton" name="menu_video">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Chat</string>
|
<string>Video</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
@@ -246,44 +211,10 @@
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="17" column="0">
|
<item row="12" column="0" colspan="6">
|
||||||
<spacer name="verticalSpacer">
|
<widget class="QPushButton" name="menu_system">
|
||||||
<property name="orientation">
|
|
||||||
<enum>Qt::Vertical</enum>
|
|
||||||
</property>
|
|
||||||
<property name="sizeHint" stdset="0">
|
|
||||||
<size>
|
|
||||||
<width>20</width>
|
|
||||||
<height>40</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
</spacer>
|
|
||||||
</item>
|
|
||||||
<item row="13" column="0" colspan="6">
|
|
||||||
<widget class="QPushButton" name="menu_theme">
|
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Beautify</string>
|
<string>Tools</string>
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="3" column="0" colspan="6">
|
|
||||||
<widget class="QPushButton" name="menu_network">
|
|
||||||
<property name="text">
|
|
||||||
<string>Network</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="8" column="0" colspan="6">
|
|
||||||
<widget class="QPushButton" name="menu_game">
|
|
||||||
<property name="text">
|
|
||||||
<string>Games</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="14" column="0" colspan="6">
|
|
||||||
<widget class="QPushButton" name="menu_other">
|
|
||||||
<property name="text">
|
|
||||||
<string>Others</string>
|
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
@@ -300,17 +231,63 @@
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="16" column="0" colspan="6">
|
<item row="10" column="0" colspan="6">
|
||||||
<widget class="QPushButton" name="menu_download">
|
<widget class="QPushButton" name="menu_read">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Download</string>
|
<string>Reading</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="6" column="0" colspan="6">
|
<item row="14" column="0" colspan="6">
|
||||||
<widget class="QPushButton" name="menu_video">
|
<widget class="QPushButton" name="menu_other">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Video</string>
|
<string>Others</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="7" column="0" colspan="6">
|
||||||
|
<widget class="QPushButton" name="menu_photo">
|
||||||
|
<property name="text">
|
||||||
|
<string>Graphics</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="0" column="0" colspan="2">
|
||||||
|
<widget class="QLabel" name="icon">
|
||||||
|
<property name="minimumSize">
|
||||||
|
<size>
|
||||||
|
<width>0</width>
|
||||||
|
<height>36</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="maximumSize">
|
||||||
|
<size>
|
||||||
|
<width>16777215</width>
|
||||||
|
<height>36</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>icon</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="0" column="2">
|
||||||
|
<spacer name="horizontalSpacer_9">
|
||||||
|
<property name="orientation">
|
||||||
|
<enum>Qt::Horizontal</enum>
|
||||||
|
</property>
|
||||||
|
<property name="sizeHint" stdset="0">
|
||||||
|
<size>
|
||||||
|
<width>40</width>
|
||||||
|
<height>20</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
</spacer>
|
||||||
|
</item>
|
||||||
|
<item row="11" column="0" colspan="6">
|
||||||
|
<widget class="QPushButton" name="menu_dev">
|
||||||
|
<property name="text">
|
||||||
|
<string>Development</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
@@ -333,6 +310,36 @@
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
<item row="0" column="5">
|
||||||
|
<spacer name="horizontalSpacer_8">
|
||||||
|
<property name="orientation">
|
||||||
|
<enum>Qt::Horizontal</enum>
|
||||||
|
</property>
|
||||||
|
<property name="sizeType">
|
||||||
|
<enum>QSizePolicy::Fixed</enum>
|
||||||
|
</property>
|
||||||
|
<property name="sizeHint" stdset="0">
|
||||||
|
<size>
|
||||||
|
<width>3</width>
|
||||||
|
<height>20</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
</spacer>
|
||||||
|
</item>
|
||||||
|
<item row="5" column="0" colspan="6">
|
||||||
|
<widget class="QPushButton" name="menu_music">
|
||||||
|
<property name="text">
|
||||||
|
<string>Music</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="16" column="0" colspan="6">
|
||||||
|
<widget class="QPushButton" name="menu_upgrade">
|
||||||
|
<property name="text">
|
||||||
|
<string>Upgrade</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
@@ -345,7 +352,7 @@
|
|||||||
<number>0</number>
|
<number>0</number>
|
||||||
</property>
|
</property>
|
||||||
<property name="currentIndex">
|
<property name="currentIndex">
|
||||||
<number>3</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,8 +496,8 @@
|
|||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>889</width>
|
<width>903</width>
|
||||||
<height>849</height>
|
<height>848</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QVBoxLayout" name="verticalLayout_17">
|
<layout class="QVBoxLayout" name="verticalLayout_17">
|
||||||
@@ -842,7 +849,7 @@
|
|||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
<property name="toolTip">
|
<property name="toolTip">
|
||||||
<string><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></string>
|
<string><html><head/><body><p>A deepin-wine2 app. Spark Store will configure the wine environment for you, so don‘t worry.</p></body></html></string>
|
||||||
</property>
|
</property>
|
||||||
<property name="whatsThis">
|
<property name="whatsThis">
|
||||||
<string><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></string>
|
<string><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></string>
|
||||||
@@ -861,7 +868,7 @@
|
|||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
<property name="toolTip">
|
<property name="toolTip">
|
||||||
<string><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></string>
|
<string><html><head/><body><p>A deepin-wine5 app.Spark Store will configure the wine environment for you, so don‘t worry.</p></body></html></string>
|
||||||
</property>
|
</property>
|
||||||
<property name="whatsThis">
|
<property name="whatsThis">
|
||||||
<string><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></string>
|
<string><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></string>
|
||||||
@@ -993,8 +1000,8 @@
|
|||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>851</width>
|
<width>869</width>
|
||||||
<height>324</height>
|
<height>326</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_4">
|
<layout class="QHBoxLayout" name="horizontalLayout_4">
|
||||||
@@ -1123,8 +1130,8 @@
|
|||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>889</width>
|
<width>738</width>
|
||||||
<height>716</height>
|
<height>833</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QVBoxLayout" name="verticalLayout_23">
|
<layout class="QVBoxLayout" name="verticalLayout_23">
|
||||||
|
|||||||
@@ -92,7 +92,7 @@ void SpkAppInfoLoaderThread::run()
|
|||||||
QProcess isInstall;
|
QProcess isInstall;
|
||||||
packagename = json["Pkgname"].toString();
|
packagename = json["Pkgname"].toString();
|
||||||
isInstall.start("dpkg -s " + json["Pkgname"].toString());
|
isInstall.start("dpkg -s " + json["Pkgname"].toString());
|
||||||
isInstall.waitForFinished();
|
isInstall.waitForFinished(180); // 默认超时 3 分钟
|
||||||
int error = QString::fromStdString(isInstall.readAllStandardError().toStdString()).length();
|
int error = QString::fromStdString(isInstall.readAllStandardError().toStdString()).length();
|
||||||
if(error == 0)
|
if(error == 0)
|
||||||
{
|
{
|
||||||
@@ -100,12 +100,12 @@ void SpkAppInfoLoaderThread::run()
|
|||||||
|
|
||||||
QProcess isUpdate;
|
QProcess isUpdate;
|
||||||
isUpdate.start("dpkg-query --showformat='${Version}' --show " + json["Pkgname"].toString());
|
isUpdate.start("dpkg-query --showformat='${Version}' --show " + json["Pkgname"].toString());
|
||||||
isUpdate.waitForFinished();
|
isUpdate.waitForFinished(180); // 默认超时 3 分钟
|
||||||
QString localVersion = isUpdate.readAllStandardOutput();
|
QString localVersion = isUpdate.readAllStandardOutput();
|
||||||
localVersion.replace("'", "");
|
localVersion.replace("'", "");
|
||||||
|
|
||||||
isUpdate.start("dpkg --compare-versions " + localVersion + " ge " + json["Version"].toString());
|
isUpdate.start("dpkg --compare-versions " + localVersion + " ge " + json["Version"].toString());
|
||||||
isUpdate.waitForFinished();
|
isUpdate.waitForFinished(180); // 默认超时 3 分钟
|
||||||
if(!isUpdate.exitCode())
|
if(!isUpdate.exitCode())
|
||||||
{
|
{
|
||||||
isUpdated = true;
|
isUpdated = true;
|
||||||
|
|||||||
@@ -14,6 +14,17 @@
|
|||||||
_APTMGR=apt
|
_APTMGR=apt
|
||||||
|
|
||||||
|
|
||||||
|
####
|
||||||
|
#
|
||||||
|
# UOS sources auth config
|
||||||
|
#
|
||||||
|
#
|
||||||
|
if grep -Eqi "UnionTech" /etc/issue || grep -Eq "UnionTech" /etc/*-release;then
|
||||||
|
AUTH_UOS_USER="uos-https://license.chinauos.com-apt"
|
||||||
|
AUTH_UOS_PASSWD="`cat /etc/apt/auth.conf.d/uos.conf | grep home-packages.chinauos.com`"
|
||||||
|
AUTH_UOS_PASSWD=`echo ${AUTH_UOS_PASSWD#*password }`
|
||||||
|
|
||||||
|
fi
|
||||||
# Enable DOWNLOADBEFORE to suppress apt-fast confirmation dialog and download
|
# Enable DOWNLOADBEFORE to suppress apt-fast confirmation dialog and download
|
||||||
# packages directly.
|
# packages directly.
|
||||||
#
|
#
|
||||||
@@ -54,7 +65,7 @@ DOWNLOADBEFORE=true
|
|||||||
#
|
#
|
||||||
# Default: disabled
|
# 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/' )
|
MIRRORS=( 'https://d.store.deepinos.org.cn/,https://mirrors.sdu.edu.cn/spark-store-repository/,http://cdn.dl.uniartisan.com:9000/deepinos/,https://d1.store.deepinos.org.cn/,https://d2.store.deepinos.org.cn/,https://d4.store.deepinos.org.cn/,https://d5.store.deepinos.org.cn/' )
|
||||||
|
|
||||||
|
|
||||||
# Maximum number of connections
|
# Maximum number of connections
|
||||||
@@ -68,14 +79,10 @@ _MAXNUM=5
|
|||||||
# Maximum number of connections per server
|
# Maximum number of connections per server
|
||||||
# Default: 10
|
# Default: 10
|
||||||
#
|
#
|
||||||
_MAXCONPERSRV=10
|
_MAXCONPERSRV=1
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# 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
|
# Split size i.e. size of each piece
|
||||||
@@ -93,6 +100,7 @@ _MINSPLITSZ=1M
|
|||||||
_PIECEALGO=default
|
_PIECEALGO=default
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Downloadmanager listfile
|
# Downloadmanager listfile
|
||||||
# You can use this value in _DOWNLOADER command. Escape with ${}: ${DLLIST}
|
# You can use this value in _DOWNLOADER command. Escape with ${}: ${DLLIST}
|
||||||
#
|
#
|
||||||
@@ -118,7 +126,7 @@ DLLIST='/tmp/apt-fast.list'
|
|||||||
#
|
#
|
||||||
# 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'
|
# 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'
|
_DOWNLOADER='aria2c --no-conf -c -j ${_MAXNUM} -x ${_MAXCONPERSRV} --min-split-size=${_MINSPLITSZ} --stream-piece-selector=${_PIECEALGO} -i ${DLLIST} --connect-timeout=600 --timeout=600 -m0 --http-user ${AUTH_UOS_USER} --http-passwd ${AUTH_UOS_PASSWD}'
|
||||||
|
|
||||||
|
|
||||||
# Download temp folder for Downloadmanager
|
# Download temp folder for Downloadmanager
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
<policyconfig>
|
<policyconfig>
|
||||||
<vendor>Spark Store</vendor>
|
<vendor>Spark Store</vendor>
|
||||||
<icon_name>x-package-repository</icon_name>
|
<icon_name>x-package-repository</icon_name>
|
||||||
<action id="org.maicss.dnf">
|
<action id="store.spark-app.ssinstall">
|
||||||
<description>运行ssinstall需要权限</description>
|
<description>运行ssinstall需要权限</description>
|
||||||
<message>要使用ssinstall需要权限</message>
|
<message>要使用ssinstall需要权限</message>
|
||||||
<defaults>
|
<defaults>
|
||||||
|
|||||||
@@ -40,8 +40,6 @@ fi
|
|||||||
|
|
||||||
##################apt-fast/metalink测试
|
##################apt-fast/metalink测试
|
||||||
DEPEND="这里一定会安装所以放弃处理"
|
DEPEND="这里一定会安装所以放弃处理"
|
||||||
isuos=`cat /etc/os-release | grep UnionTech`
|
|
||||||
|
|
||||||
|
|
||||||
##############判断是否是root运行,如果是,则正常走;如果不是,则代输密码
|
##############判断是否是root运行,如果是,则正常走;如果不是,则代输密码
|
||||||
if [ "$(id -u)" != "0" ];then
|
if [ "$(id -u)" != "0" ];then
|
||||||
@@ -54,15 +52,8 @@ echo "$upass" | sudo -S aptss ssupdate && echo "$upass" | sudo -S bwrap --dev-bi
|
|||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$DEPEND" != "" ] && [ "$isuos" != "" ]; then
|
|
||||||
echo "UOS中系统依赖无法使用第三方下载工具,放弃使用apt-fast"
|
|
||||||
echo ----------------------------------------------------------------------------------
|
|
||||||
echo "$upass" | sudo -S dpkg -i $1 || sudo aptss 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
|
|
||||||
|
|
||||||
|
if [ "$DEPEND" != "" ]; then
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "$DEPEND" != "" ] && [ "$isuos" = "" ]; then
|
|
||||||
echo "检测到apt-fast,使用aptss进行多线程下载加速"
|
echo "检测到apt-fast,使用aptss进行多线程下载加速"
|
||||||
echo ----------------------------------------------------------------------------------
|
echo ----------------------------------------------------------------------------------
|
||||||
echo "$upass" | sudo -S dpkg -i $1 || sudo aptss install -yf
|
echo "$upass" | sudo -S dpkg -i $1 || sudo aptss install -yf
|
||||||
@@ -81,13 +72,8 @@ echo "未安装依赖:apt-fast 开始安装"
|
|||||||
aptss 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
|
aptss 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
|
fi
|
||||||
|
|
||||||
if [ "$DEPEND" != "" ] && [ "$isuos" != "" ]; then
|
|
||||||
echo "UOS中系统依赖无法使用第三方下载工具,放弃使用apt-fast"
|
|
||||||
echo ----------------------------------------------------------------------------------
|
|
||||||
dpkg -i $1 || aptss 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
|
if [ "$DEPEND" != "" ]; then
|
||||||
echo "检测到apt-fast,使用aptss进行多线程下载加速"
|
echo "检测到apt-fast,使用aptss进行多线程下载加速"
|
||||||
echo ----------------------------------------------------------------------------------
|
echo ----------------------------------------------------------------------------------
|
||||||
dpkg -i $1 || aptss install -yf
|
dpkg -i $1 || aptss install -yf
|
||||||
|
|||||||
@@ -1,52 +1,45 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
if [ "$(id -u)" != "0" ];then
|
||||||
|
pkexec $0
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
echo "以上可升级,是否升级?[y/n]"
|
bash aptss ssupdate | zenity --progress --auto-close --no-cancel --pulsate --text=正在更新检查,请稍候... --height 70 --width 400 --title="星火商店更新模块"
|
||||||
read yes_or_no
|
PKG_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 list --upgradable -o Dir::Etc::sourcelist="sources.list.d/sparkstore.list" -o Dir::Etc::sourceparts="-" -o APT::Get::List-Cleanup="0" | awk 'BEGIN {FS="/"} {print $1}' | awk NR\>1)"
|
||||||
if [ "$yes_or_no" = "y" ];then ###这是确定是否同意
|
####如果没更新,就弹出不需要更新
|
||||||
|
if [ -z "$PKG_LIST" ];then
|
||||||
|
zenity --info --icon-name=spark-store --text "没有软件需要更新\n但是你并没有站在世界之巅" --title "星火商店更新检测服务" --height 150 --width 300
|
||||||
|
else
|
||||||
|
PKG_UPGRADE_LIST=`for PKG_NAME in $PKG_LIST;
|
||||||
|
do
|
||||||
|
#### 检测是否是hold状态
|
||||||
|
if [ "$(dpkg-query -W -f='${Status}' $PKG_NAME | grep hold)" = "" ];then
|
||||||
|
echo "true"
|
||||||
|
echo "$PKG_NAME"
|
||||||
|
else
|
||||||
|
echo "false"
|
||||||
|
echo "$PKG_NAME (无法更新:已被标记为保留)"
|
||||||
|
fi
|
||||||
|
done | zenity --list --text="选择你想更新的应用" --column=是否更新 --column=应用包名 --separator=" " --checklist --print-column=2 --multiple --height 350 --width 550 `
|
||||||
|
|
||||||
echo "获取更新列表..."
|
#### 如果没有选择,则直接退出
|
||||||
PKG_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 list --upgradable -o Dir::Etc::sourcelist="sources.list.d/sparkstore.list" -o Dir::Etc::sourceparts="-" -o APT::Get::List-Cleanup="0" | awk 'BEGIN {FS="/"} {print $1}' | awk NR\>1)"
|
|
||||||
|
|
||||||
|
if [ "$PKG_UPGRADE_LIST" = "" ];then
|
||||||
|
zenity --info --icon-name=spark-store --text "没有选中任何软件\n但是你并没有站在世界之巅" --title "星火商店更新检测服务" --height 150 --width 300
|
||||||
|
else
|
||||||
|
|
||||||
isuos=`cat /etc/os-release | grep UnionTech`
|
for PKG_NAME_UPGRADE in $PKG_UPGRADE_LIST;do
|
||||||
if [ "$isuos" != "" ]; then ###这是确定是否为UOS 如果是
|
bash aptss install $PKG_NAME_UPGRADE -y | zenity --progress --auto-close --no-cancel --pulsate --text="正在更新 $PKG_NAME_UPGRADE ,请稍候..." --height 70 --width 400 --title="星火商店更新模块"
|
||||||
echo "UOS中系统依赖无法使用第三方下载工具,使用apt-fast下载本体"
|
done
|
||||||
|
|
||||||
cd /var/cache/apt/archives
|
if [ "$?" = "0" ];then
|
||||||
for PKG_NAME in $PKG_LIST;
|
|
||||||
do
|
|
||||||
echo "$PKG_NAME 正在下载..."
|
|
||||||
sudo aptss download "$PKG_NAME" -y >/dev/null 2>&1;
|
|
||||||
done
|
|
||||||
|
|
||||||
echo "----开始安装"
|
|
||||||
for PKG_NAME in $PKG_LIST;
|
|
||||||
do
|
|
||||||
echo "$PKG_NAME 正在更新..."
|
|
||||||
if 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 "$PKG_NAME" -y >/dev/null 2>&1;
|
|
||||||
then
|
|
||||||
echo "$PKG_NAME 已更新"
|
|
||||||
else
|
|
||||||
echo "WARNING: $PKG_NAME 无法更新"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
|
zenity --info --icon-name=spark-store --text "已选中的软件已经更新完毕" --title "星火商店更新检测服务" --height 150 --width 300
|
||||||
|
else
|
||||||
|
zenity --error --text "更新出现错误!请手动执行 sudo aptss full-upgrade 查看问题" --title "星火商店更新检测服务" --height 150 --width 300
|
||||||
|
fi
|
||||||
|
|
||||||
|
fi
|
||||||
|
|
||||||
else ###这是确定是否为UOS,如果不是
|
fi
|
||||||
|
####从最开头
|
||||||
for PKG_NAME in $PKG_LIST;
|
|
||||||
do
|
|
||||||
echo "$PKG_NAME 正在更新..."
|
|
||||||
if sudo aptss install "$PKG_NAME" -y >/dev/null 2>&1;
|
|
||||||
then
|
|
||||||
echo "$PKG_NAME 已更新"
|
|
||||||
else
|
|
||||||
echo "WARNING: $PKG_NAME 无法更新"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
|
|
||||||
fi ###这是确定是否为UOS
|
|
||||||
|
|
||||||
fi ###这是确定是否同意
|
|
||||||
@@ -1,6 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
reset
|
|
||||||
|
|
||||||
endloop=0
|
endloop=0
|
||||||
|
|
||||||
@@ -21,85 +20,44 @@ else
|
|||||||
text_auto_install_open="开启"
|
text_auto_install_open="开启"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
option=`zenity --list --text="欢迎使用星火更新和安装设置工具\n请在以下操作中选择一个进行~" --column 数字 --column=操作选项 --print-column=2 --height 350 --width 760 0 "查看自动更新相关功能使用前须知(重要)" 1 "$text_update_open星火更新检测工具(如果开启则会在系统启动后自动检测更新。如有更新则会弹出通知)" 2 查看可更新软件包列表并决定是否更新 3 "$text_auto_install_open点击安装免输入密码功能" 4 退出脚本 --hide-column=1 --print-column=1`
|
||||||
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
|
case $option in
|
||||||
0)
|
0)
|
||||||
reset
|
zenity --info --icon-name=spark-store --height 450 --width 500 --text "此须知适用于自动更新功能\n\n此脚本可以检测星火源中是否有比当前系统更高版本的软件包,由您决定是否安装;在安装更新过程中请不要直接点击关闭本页面,以免发生错误\n\n此脚本使用apt update/apt list --upgrade/apt upgrade来更新软件源、列出更新列表和操作更新\n\n该脚本不对其使用效果有任何明示或暗示的担保,在使用前请您确保您清楚地知道您在干什么。您应当清楚,星火商店的软件包并不是适配所有发行版的;尽管绝大多数的软件更新是无害的,您仍然应该仔细检查显示出来的更新内容,以确保不会对您的依赖环境造成破坏,尤其是那些看起来和系统依赖相关的软件包。在查看过更新列表之后,确认更新之前,您仍有取消更新的机会。\n\n本脚本的开发者不对使用该脚本可能造成的后果负责"
|
||||||
echo "此须知适用于自动更新功能"
|
|
||||||
echo "此脚本可以检测星火源中是否有比当前系统更高版本的软件包,由您决定是否安装;在安装更新过程中请不要直接点击关闭本页面,以免发生错误"
|
|
||||||
echo "此脚本使用apt update/apt list --upgrade/apt upgrade来更新软件源、列出更新列表和操作更新"
|
|
||||||
echo
|
|
||||||
echo "该脚本不对其使用效果有任何明示或暗示的担保,在使用前请您确保您清楚地知道您在干什么。您应当清楚,星火商店的软件包并不是适配所有发行版的;尽管绝大多数的软件更新是无害的,您仍然应该仔细检查显示出来的更新内容,以确保不会对您 的依赖环境造成破坏,尤其是那些看起来和系统依赖相关的软件包。在查看过更新列表之后,确认更新之前,您仍有一次取消更新的机会。"
|
|
||||||
echo "本脚本的开发者不对使用该脚本可能造成的后果负责"
|
|
||||||
echo
|
|
||||||
echo
|
|
||||||
echo
|
|
||||||
echo "请按回车继续..."
|
|
||||||
#"只有回车可以用啊!""啊?"“你说的任意都行啊”“唔。。。戳到我的盲区了”
|
|
||||||
read
|
|
||||||
reset
|
|
||||||
;;
|
;;
|
||||||
1)
|
1)
|
||||||
echo "执行以下操作需要授权..."
|
|
||||||
if [ -e /etc/systemd/system/multi-user.target.wants/spark-update-notifier.service ];then
|
if [ -e /etc/systemd/system/multi-user.target.wants/spark-update-notifier.service ];then
|
||||||
echo "---检测到已经启动了自动更新检测,执行关闭"
|
zenity --info --icon-name=spark-store --height 150 --width 200 --text "检测到已经启动了自动更新检测,执行关闭" --timeout=2
|
||||||
sudo systemctl disable spark-update-notifier
|
pkexec systemctl disable spark-update-notifier
|
||||||
sleep 3
|
zenity --info --icon-name=spark-store --height 150 --width 200 --text "已关闭" --timeout=2
|
||||||
reset
|
|
||||||
else
|
else
|
||||||
echo "---未检测到自动更新检测,执行启动"
|
zenity --info --icon-name=spark-store --height 150 --width 200 --text "未检测到自动更新检测,执行启动" --timeout=2
|
||||||
sudo systemctl enable spark-update-notifier
|
pkexec systemctl enable spark-update-notifier
|
||||||
sudo service spark-update-notifier start
|
pkexec service spark-update-notifier start
|
||||||
sleep 3
|
zenity --info --icon-name=spark-store --height 150 --width 200 --text "已启动" --timeout=2
|
||||||
reset
|
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
|
||||||
2)
|
2)
|
||||||
echo "执行以下操作需要授权..."
|
pkexec /opt/durapps/spark-store/bin/update-upgrade/ss-do-upgrade.sh
|
||||||
sudo aptss 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)
|
3)
|
||||||
if [ -f /usr/share/polkit-1/actions/store.spark-app.ssinstall.policy ];then
|
if [ -f /usr/share/polkit-1/actions/store.spark-app.ssinstall.policy ];then
|
||||||
echo "---检测到已经启动了免输入密码,执行关闭"
|
zenity --info --icon-name=spark-store --height 150 --width 200 --text "---检测到已经启动了免输入密码,执行关闭" --timeout=2
|
||||||
sudo rm /usr/share/polkit-1/actions/store.spark-app.ssinstall.policy
|
pkexec rm /usr/share/polkit-1/actions/store.spark-app.ssinstall.policy
|
||||||
sleep 3
|
zenity --info --icon-name=spark-store --height 150 --width 200 --text "已关闭" --timeout=2
|
||||||
reset
|
|
||||||
else
|
else
|
||||||
|
|
||||||
cat << EOF
|
is_accept_polkiy=`zenity --list --height 350 --width 300 --text "请注意:这个功能尚未开发完成,一旦开启,则运行pkexec ssinstall时不再需要授权\n仅对星火内置安装器生效\n理论上会存在一定的安全风险" --column 数字 --column=操作选项 --hide-column=1 --print-column=1 1 同意 2 拒绝`
|
||||||
请注意:这个功能尚未开发完成,一旦开启,则运行pkexec ssinstall时不再需要授权
|
|
||||||
仅对星火内置安装器生效
|
|
||||||
理论上会存在一定的安全风险~
|
|
||||||
如果接受,请输入1,否则输入2
|
|
||||||
EOF
|
|
||||||
read is_accept_polkiy
|
|
||||||
|
|
||||||
if [ "$is_accept_polkiy" = "1" ];then
|
if [ "$is_accept_polkiy" = "1" ];then
|
||||||
echo "执行以下操作需要授权..."
|
pkexec 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
|
||||||
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
|
zenity --info --icon-name=spark-store --height 150 --width 200 --text "---已启动"
|
||||||
echo "---已启动"
|
|
||||||
sleep 3
|
|
||||||
reset
|
|
||||||
else
|
else
|
||||||
echo "---未同意,返回"
|
zenity --info --icon-name=spark-store --height 150 --width 200 --text "---未同意,返回"
|
||||||
sleep 3
|
|
||||||
reset
|
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
@@ -107,8 +65,7 @@ fi
|
|||||||
exit 0
|
exit 0
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo "---无法识别的输入!请重新输入"
|
exit 0
|
||||||
reset
|
|
||||||
esac
|
esac
|
||||||
|
|
||||||
done
|
done
|
||||||
@@ -66,12 +66,31 @@ isupdate=`echo ${updatetext: -5}`
|
|||||||
if [ "$isupdate" = "date." ];then
|
if [ "$isupdate" = "date." ];then
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
#### 从这里开始,只有检测到了更新才会进行
|
||||||
|
|
||||||
update_app_number=`echo ${updatetext%package*} #从右向左截取第一个 src 后的字符串`
|
update_app_number=`echo ${updatetext%package*} #从右向左截取第一个 src 后的字符串`
|
||||||
update_app_number=`echo ${update_app_number##*information...}`
|
update_app_number=`echo ${update_app_number##*information...}`
|
||||||
|
|
||||||
|
|
||||||
|
PKG_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 list --upgradable -o Dir::Etc::sourcelist="sources.list.d/sparkstore.list" -o Dir::Etc::sourceparts="-" -o APT::Get::List-Cleanup="0" | awk 'BEGIN {FS="/"} {print $1}' | awk NR\>1)"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
for PKG_NAME in $PKG_LIST;do
|
||||||
|
if [ "$(dpkg-query -W -f='${Status}' $PKG_NAME | grep hold)" != "" ];then
|
||||||
|
let update_app_number=$update_app_number-1
|
||||||
|
echo $update_app_number
|
||||||
|
echo $PKG_NAME
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
if [ $update_app_number -lt 1 ];then
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
#### 如果都是hold的那就直接退出,否则把剩余的给提醒了
|
||||||
|
|
||||||
notify-send -i spark-store "星火更新提醒" "星火商店仓库中有$update_app_number个软件包可以更新啦!请到星火商店的菜单处理"
|
notify-send -i spark-store "星火更新提醒" "星火商店仓库中有$update_app_number个软件包可以更新啦!请到星火商店的菜单处理"
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +0,0 @@
|
|||||||
#!/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"
|
|
||||||
@@ -12,9 +12,9 @@
|
|||||||
<context>
|
<context>
|
||||||
<name>QLabel</name>
|
<name>QLabel</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/main.cpp" line="35"/>
|
<location filename="../src/main.cpp" line="42"/>
|
||||||
<location filename="../src/main.cpp" line="43"/>
|
<location filename="../src/main.cpp" line="50"/>
|
||||||
<location filename="../src/main.cpp" line="49"/>
|
<location filename="../src/main.cpp" line="56"/>
|
||||||
<source>Spark Store</source>
|
<source>Spark Store</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
@@ -22,22 +22,22 @@
|
|||||||
<context>
|
<context>
|
||||||
<name>QObject</name>
|
<name>QObject</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/main.cpp" line="32"/>
|
<location filename="../src/main.cpp" line="39"/>
|
||||||
<source>We publish this program under GPL V3</source>
|
<source>We publish this program under GPL V3</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/main.cpp" line="37"/>
|
<location filename="../src/main.cpp" line="44"/>
|
||||||
<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>
|
<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>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/main.cpp" line="45"/>
|
<location filename="../src/main.cpp" line="52"/>
|
||||||
<source>The Spark Project</source>
|
<source>The Spark Project</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/main.cpp" line="57"/>
|
<location filename="../src/main.cpp" line="64"/>
|
||||||
<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>
|
||||||
@@ -149,8 +149,8 @@
|
|||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="547"/>
|
<location filename="../src/widget.ui" line="547"/>
|
||||||
<location filename="../src/widget.cpp" line="910"/>
|
<location filename="../src/widget.cpp" line="943"/>
|
||||||
<location filename="../src/widget.cpp" line="1119"/>
|
<location filename="../src/widget.cpp" line="1152"/>
|
||||||
<source>Install</source>
|
<source>Install</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
@@ -254,7 +254,6 @@
|
|||||||
<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="867"/>
|
<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>
|
||||||
@@ -303,6 +302,10 @@
|
|||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="845"/>
|
<location filename="../src/widget.ui" line="845"/>
|
||||||
|
<source><html><head/><body><p>A deepin-wine2 app. Spark Store will configure the wine environment for you, so don‘t worry.</p></body></html></source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
<location filename="../src/widget.ui" line="848"/>
|
<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>
|
||||||
@@ -312,6 +315,11 @@
|
|||||||
<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>
|
||||||
|
<location filename="../src/widget.ui" line="864"/>
|
||||||
|
<source><html><head/><body><p>A deepin-wine5 app.Spark Store will configure the wine environment for you, so don‘t worry.</p></body></html></source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="870"/>
|
<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>
|
||||||
@@ -368,32 +376,37 @@
|
|||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="1304"/>
|
<location filename="../src/widget.ui" line="1328"/>
|
||||||
<source>Clean</source>
|
<source>Clean</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="1314"/>
|
<location filename="../src/widget.ui" line="1294"/>
|
||||||
<source>Since the dictionary is at /tmp,It would be cleaned automatically when system reboot.</source>
|
<source>Since the dictionary is at /tmp,It would be cleaned automatically when system reboot.</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="1327"/>
|
<location filename="../src/widget.ui" line="1341"/>
|
||||||
<source>Size:</source>
|
<source>Size:</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="1341"/>
|
<location filename="../src/widget.ui" line="1308"/>
|
||||||
<source>Location:/tmp/spark-store</source>
|
<source>Location:/tmp/spark-store</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="1362"/>
|
<location filename="../src/widget.ui" line="1348"/>
|
||||||
<source>About us</source>
|
<source>Clear Web Cache</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="1369"/>
|
<location filename="../src/widget.ui" line="1369"/>
|
||||||
|
<source>About us</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../src/widget.ui" line="1376"/>
|
||||||
<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>
|
||||||
@@ -428,92 +441,97 @@
|
|||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="1334"/>
|
<location filename="../src/widget.ui" line="1301"/>
|
||||||
<source>0B</source>
|
<source>0B</source>
|
||||||
<translation type="unfinished">0B</translation>
|
<translation type="unfinished">0B</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.cpp" line="187"/>
|
<location filename="../src/widget.cpp" line="192"/>
|
||||||
<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="188"/>
|
<location filename="../src/widget.cpp" line="193"/>
|
||||||
<source>Search or enter spk://</source>
|
<source>Search or enter spk://</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.cpp" line="194"/>
|
<location filename="../src/widget.cpp" line="199"/>
|
||||||
<source>Submit App</source>
|
<source>Submit App</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.cpp" line="195"/>
|
<location filename="../src/widget.cpp" line="200"/>
|
||||||
|
<source>Submit App with client(Recommanded)</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../src/widget.cpp" line="201"/>
|
||||||
<source>Settings</source>
|
<source>Settings</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.cpp" line="196"/>
|
<location filename="../src/widget.cpp" line="202"/>
|
||||||
<source>APP Upgrade and Install Settings</source>
|
<source>APP Upgrade and Install Settings</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.cpp" line="347"/>
|
<location filename="../src/widget.cpp" line="371"/>
|
||||||
<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="139"/>
|
<location filename="../src/widget.cpp" line="141"/>
|
||||||
<location filename="../src/widget.cpp" line="409"/>
|
<location filename="../src/widget.cpp" line="433"/>
|
||||||
<location filename="../src/widget.cpp" line="414"/>
|
<location filename="../src/widget.cpp" line="438"/>
|
||||||
<location filename="../src/widget.cpp" line="424"/>
|
<location filename="../src/widget.cpp" line="448"/>
|
||||||
<location filename="../src/widget.cpp" line="429"/>
|
<location filename="../src/widget.cpp" line="453"/>
|
||||||
<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="659"/>
|
<location filename="../src/widget.cpp" line="692"/>
|
||||||
<location filename="../src/widget.cpp" line="899"/>
|
<location filename="../src/widget.cpp" line="932"/>
|
||||||
<source>Reinstall</source>
|
<source>Reinstall</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.cpp" line="625"/>
|
<location filename="../src/widget.cpp" line="658"/>
|
||||||
<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="904"/>
|
<location filename="../src/widget.cpp" line="937"/>
|
||||||
<source>Upgrade</source>
|
<source>Upgrade</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.cpp" line="1091"/>
|
<location filename="../src/widget.cpp" line="1124"/>
|
||||||
<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="1123"/>
|
<location filename="../src/widget.cpp" line="1156"/>
|
||||||
<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="710"/>
|
<location filename="../src/widget.cpp" line="739"/>
|
||||||
<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="719"/>
|
<location filename="../src/widget.cpp" line="747"/>
|
||||||
<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="1145"/>
|
<location filename="../src/widget.cpp" line="1178"/>
|
||||||
<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="1227"/>
|
<location filename="../src/widget.cpp" line="1270"/>
|
||||||
<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>
|
||||||
|
|||||||
@@ -23,9 +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="35"/>
|
<location filename="../src/main.cpp" line="42"/>
|
||||||
<location filename="../src/main.cpp" line="43"/>
|
<location filename="../src/main.cpp" line="50"/>
|
||||||
<location filename="../src/main.cpp" line="49"/>
|
<location filename="../src/main.cpp" line="56"/>
|
||||||
<source>Spark Store</source>
|
<source>Spark Store</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
@@ -33,22 +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="32"/>
|
<location filename="../src/main.cpp" line="39"/>
|
||||||
<source>We publish this program under GPL V3</source>
|
<source>We publish this program under GPL V3</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/main.cpp" line="37"/>
|
<location filename="../src/main.cpp" line="44"/>
|
||||||
<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>
|
<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>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/main.cpp" line="45"/>
|
<location filename="../src/main.cpp" line="52"/>
|
||||||
<source>The Spark Project</source>
|
<source>The Spark Project</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/main.cpp" line="57"/>
|
<location filename="../src/main.cpp" line="64"/>
|
||||||
<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>
|
||||||
@@ -210,8 +210,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="910"/>
|
<location filename="../src/widget.cpp" line="943"/>
|
||||||
<location filename="../src/widget.cpp" line="1119"/>
|
<location filename="../src/widget.cpp" line="1152"/>
|
||||||
<source>Install</source>
|
<source>Install</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
@@ -297,6 +297,10 @@ Nous sommes nés pour le changement.</translation>
|
|||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="845"/>
|
<location filename="../src/widget.ui" line="845"/>
|
||||||
|
<source><html><head/><body><p>A deepin-wine2 app. Spark Store will configure the wine environment for you, so don‘t worry.</p></body></html></source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
<location filename="../src/widget.ui" line="848"/>
|
<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>
|
||||||
@@ -308,6 +312,10 @@ Nous sommes nés pour le changement.</translation>
|
|||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="864"/>
|
<location filename="../src/widget.ui" line="864"/>
|
||||||
|
<source><html><head/><body><p>A deepin-wine5 app.Spark Store will configure the wine environment for you, so don‘t worry.</p></body></html></source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
<location filename="../src/widget.ui" line="867"/>
|
<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>
|
||||||
@@ -394,32 +402,37 @@ 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="1304"/>
|
<location filename="../src/widget.ui" line="1328"/>
|
||||||
<source>Clean</source>
|
<source>Clean</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="1314"/>
|
<location filename="../src/widget.ui" line="1294"/>
|
||||||
<source>Since the dictionary is at /tmp,It would be cleaned automatically when system reboot.</source>
|
<source>Since the dictionary is at /tmp,It would be cleaned automatically when system reboot.</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="1327"/>
|
<location filename="../src/widget.ui" line="1341"/>
|
||||||
<source>Size:</source>
|
<source>Size:</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="1341"/>
|
<location filename="../src/widget.ui" line="1308"/>
|
||||||
<source>Location:/tmp/spark-store</source>
|
<source>Location:/tmp/spark-store</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="1362"/>
|
<location filename="../src/widget.ui" line="1348"/>
|
||||||
<source>About us</source>
|
<source>Clear Web Cache</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="1369"/>
|
<location filename="../src/widget.ui" line="1369"/>
|
||||||
|
<source>About us</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../src/widget.ui" line="1376"/>
|
||||||
<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>
|
||||||
@@ -589,7 +602,7 @@ Nous sommes nés pour le changement.</translation>
|
|||||||
<translation type="vanished">Taille: </translation>
|
<translation type="vanished">Taille: </translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="1334"/>
|
<location filename="../src/widget.ui" line="1301"/>
|
||||||
<source>0B</source>
|
<source>0B</source>
|
||||||
<translation type="unfinished">0B</translation>
|
<translation type="unfinished">0B</translation>
|
||||||
</message>
|
</message>
|
||||||
@@ -606,87 +619,92 @@ Nous sommes nés pour le changement.</translation>
|
|||||||
<translation type="vanished"><html><head/><body><p>Nous ne sommes pas l'équipe officielle, tout comme vous, nous ne sommes qu'un des nombreux passionnés et utilisateurs de systèmes Linux / deepin, nous développons et gérons le "Spark Store"! ", est de rassembler la communauté pour partager des logiciels utiles, ou pour participer au développement ensemble, afin que nous utilisions tous les derniers et meilleurs logiciels. </p><p> Nous n'en tirons aucun profit, tous les développeurs et mainteneurs ne sont pas payés, et nous comptons sur les dons de la communauté pour la plupart de nos dépenses, dont nous sommes reconnaissants et qui nous permettent de ne pas dépenser trop d'énergie se soucier du financement. </p><p>Notre service et nos logiciels sont gratuits pour tout le monde à utiliser, à communiquer et à apprendre, mais vous devez vous conformer aux lois et réglementations locales dans le processus de votre utilisation, sinon tout problème n'a rien à voir avec nous. </p><p>Si une partie du magasin enfreint vos droits, veuillez nous en informer &lt;jifengshenmo@outlook.com&gt; nous retirerons le contenu en infraction dès que possible. </p><p>Si vous souhaitez également vous impliquer avec nous, que vous soyez impliqué dans le développement, la conception, le pitching ou la soumission de travaux, nous vous invitons à nous rejoindre. </p><p>QQ group:872690351<br/></p></body></html></translation>
|
<translation type="vanished"><html><head/><body><p>Nous ne sommes pas l'équipe officielle, tout comme vous, nous ne sommes qu'un des nombreux passionnés et utilisateurs de systèmes Linux / deepin, nous développons et gérons le "Spark Store"! ", est de rassembler la communauté pour partager des logiciels utiles, ou pour participer au développement ensemble, afin que nous utilisions tous les derniers et meilleurs logiciels. </p><p> Nous n'en tirons aucun profit, tous les développeurs et mainteneurs ne sont pas payés, et nous comptons sur les dons de la communauté pour la plupart de nos dépenses, dont nous sommes reconnaissants et qui nous permettent de ne pas dépenser trop d'énergie se soucier du financement. </p><p>Notre service et nos logiciels sont gratuits pour tout le monde à utiliser, à communiquer et à apprendre, mais vous devez vous conformer aux lois et réglementations locales dans le processus de votre utilisation, sinon tout problème n'a rien à voir avec nous. </p><p>Si une partie du magasin enfreint vos droits, veuillez nous en informer &lt;jifengshenmo@outlook.com&gt; nous retirerons le contenu en infraction dès que possible. </p><p>Si vous souhaitez également vous impliquer avec nous, que vous soyez impliqué dans le développement, la conception, le pitching ou la soumission de travaux, nous vous invitons à nous rejoindre. </p><p>QQ group:872690351<br/></p></body></html></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.cpp" line="139"/>
|
<location filename="../src/widget.cpp" line="141"/>
|
||||||
<location filename="../src/widget.cpp" line="409"/>
|
<location filename="../src/widget.cpp" line="433"/>
|
||||||
<location filename="../src/widget.cpp" line="414"/>
|
<location filename="../src/widget.cpp" line="438"/>
|
||||||
<location filename="../src/widget.cpp" line="424"/>
|
<location filename="../src/widget.cpp" line="448"/>
|
||||||
<location filename="../src/widget.cpp" line="429"/>
|
<location filename="../src/widget.cpp" line="453"/>
|
||||||
<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="187"/>
|
<location filename="../src/widget.cpp" line="192"/>
|
||||||
<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="188"/>
|
<location filename="../src/widget.cpp" line="193"/>
|
||||||
<source>Search or enter spk://</source>
|
<source>Search or enter spk://</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.cpp" line="194"/>
|
<location filename="../src/widget.cpp" line="199"/>
|
||||||
<source>Submit App</source>
|
<source>Submit App</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.cpp" line="195"/>
|
<location filename="../src/widget.cpp" line="200"/>
|
||||||
|
<source>Submit App with client(Recommanded)</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../src/widget.cpp" line="201"/>
|
||||||
<source>Settings</source>
|
<source>Settings</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.cpp" line="196"/>
|
<location filename="../src/widget.cpp" line="202"/>
|
||||||
<source>APP Upgrade and Install Settings</source>
|
<source>APP Upgrade and Install Settings</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.cpp" line="347"/>
|
<location filename="../src/widget.cpp" line="371"/>
|
||||||
<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="659"/>
|
<location filename="../src/widget.cpp" line="692"/>
|
||||||
<location filename="../src/widget.cpp" line="899"/>
|
<location filename="../src/widget.cpp" line="932"/>
|
||||||
<source>Reinstall</source>
|
<source>Reinstall</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.cpp" line="625"/>
|
<location filename="../src/widget.cpp" line="658"/>
|
||||||
<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="710"/>
|
<location filename="../src/widget.cpp" line="739"/>
|
||||||
<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="719"/>
|
<location filename="../src/widget.cpp" line="747"/>
|
||||||
<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="904"/>
|
<location filename="../src/widget.cpp" line="937"/>
|
||||||
<source>Upgrade</source>
|
<source>Upgrade</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.cpp" line="1091"/>
|
<location filename="../src/widget.cpp" line="1124"/>
|
||||||
<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="1123"/>
|
<location filename="../src/widget.cpp" line="1156"/>
|
||||||
<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="1145"/>
|
<location filename="../src/widget.cpp" line="1178"/>
|
||||||
<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="1227"/>
|
<location filename="../src/widget.cpp" line="1270"/>
|
||||||
<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>
|
||||||
|
|||||||
@@ -12,9 +12,9 @@
|
|||||||
<context>
|
<context>
|
||||||
<name>QLabel</name>
|
<name>QLabel</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/main.cpp" line="35"/>
|
<location filename="../src/main.cpp" line="42"/>
|
||||||
<location filename="../src/main.cpp" line="43"/>
|
<location filename="../src/main.cpp" line="50"/>
|
||||||
<location filename="../src/main.cpp" line="49"/>
|
<location filename="../src/main.cpp" line="56"/>
|
||||||
<source>Spark Store</source>
|
<source>Spark Store</source>
|
||||||
<translation>Spark 应用商店</translation>
|
<translation>Spark 应用商店</translation>
|
||||||
</message>
|
</message>
|
||||||
@@ -22,12 +22,12 @@
|
|||||||
<context>
|
<context>
|
||||||
<name>QObject</name>
|
<name>QObject</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/main.cpp" line="32"/>
|
<location filename="../src/main.cpp" line="39"/>
|
||||||
<source>We publish this program under GPL V3</source>
|
<source>We publish this program under GPL V3</source>
|
||||||
<translation>本程序按GPL V3开源</translation>
|
<translation>本程序按GPL V3开源</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/main.cpp" line="37"/>
|
<location filename="../src/main.cpp" line="44"/>
|
||||||
<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>
|
<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><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>
|
<translation><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>
|
||||||
@@ -40,7 +40,7 @@
|
|||||||
<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"/>
|
<location filename="../src/main.cpp" line="52"/>
|
||||||
<source>The Spark Project</source>
|
<source>The Spark Project</source>
|
||||||
<translation>星火计划 The Spark Project</translation>
|
<translation>星火计划 The Spark Project</translation>
|
||||||
</message>
|
</message>
|
||||||
@@ -49,7 +49,7 @@
|
|||||||
<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="57"/>
|
<location filename="../src/main.cpp" line="64"/>
|
||||||
<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>
|
||||||
@@ -204,8 +204,8 @@
|
|||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="547"/>
|
<location filename="../src/widget.ui" line="547"/>
|
||||||
<location filename="../src/widget.cpp" line="910"/>
|
<location filename="../src/widget.cpp" line="943"/>
|
||||||
<location filename="../src/widget.cpp" line="1119"/>
|
<location filename="../src/widget.cpp" line="1152"/>
|
||||||
<source>Install</source>
|
<source>Install</source>
|
||||||
<translation>安装</translation>
|
<translation>安装</translation>
|
||||||
</message>
|
</message>
|
||||||
@@ -284,8 +284,17 @@
|
|||||||
<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>
|
||||||
|
<location filename="../src/widget.ui" line="845"/>
|
||||||
|
<source><html><head/><body><p>A deepin-wine2 app. Spark Store will configure the wine environment for you, so don‘t worry.</p></body></html></source>
|
||||||
|
<translation>这是一个deepin-wine2应用。星火商店将会为你配置好wine环境,无需担心。</translation>
|
||||||
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="864"/>
|
<location filename="../src/widget.ui" line="864"/>
|
||||||
|
<source><html><head/><body><p>A deepin-wine5 app.Spark Store will configure the wine environment for you, so don‘t worry.</p></body></html></source>
|
||||||
|
<translation>这是一个deepin-wine5应用。星火商店将会为你配置好wine环境,无需担心。</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
<location filename="../src/widget.ui" line="867"/>
|
<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>
|
||||||
@@ -325,7 +334,6 @@
|
|||||||
<translation type="vanished">社交沟通</translation>
|
<translation type="vanished">社交沟通</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="845"/>
|
|
||||||
<location filename="../src/widget.ui" line="848"/>
|
<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>
|
||||||
@@ -403,32 +411,37 @@
|
|||||||
<translation>缓存目录</translation>
|
<translation>缓存目录</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="1304"/>
|
<location filename="../src/widget.ui" line="1328"/>
|
||||||
<source>Clean</source>
|
<source>Clean</source>
|
||||||
<translation>清空</translation>
|
<translation>清空</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="1314"/>
|
<location filename="../src/widget.ui" line="1294"/>
|
||||||
<source>Since the dictionary is at /tmp,It would be cleaned automatically when system reboot.</source>
|
<source>Since the dictionary is at /tmp,It would be cleaned automatically when system reboot.</source>
|
||||||
<translation>因为这个目录位于/tmp下,所以即使你不手动清空的话,其也将在系统重启时自动清空。</translation>
|
<translation>因为这个目录位于/tmp下,所以即使你不手动清空的话,其也将在系统重启时自动清空。</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="1327"/>
|
<location filename="../src/widget.ui" line="1341"/>
|
||||||
<source>Size:</source>
|
<source>Size:</source>
|
||||||
<translation>目录大小:</translation>
|
<translation>目录大小:</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="1341"/>
|
<location filename="../src/widget.ui" line="1308"/>
|
||||||
<source>Location:/tmp/spark-store</source>
|
<source>Location:/tmp/spark-store</source>
|
||||||
<translation>目录位置:/tmp/spark-store</translation>
|
<translation>目录位置:/tmp/spark-store</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="1362"/>
|
<location filename="../src/widget.ui" line="1348"/>
|
||||||
|
<source>Clear Web Cache</source>
|
||||||
|
<translation>清理网页缓存</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../src/widget.ui" line="1369"/>
|
||||||
<source>About us</source>
|
<source>About us</source>
|
||||||
<translation>关于我们</translation>
|
<translation>关于我们</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="1369"/>
|
<location filename="../src/widget.ui" line="1376"/>
|
||||||
<source><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>
|
||||||
@@ -488,37 +501,42 @@
|
|||||||
<translation>检查星火应用商店更新</translation>
|
<translation>检查星火应用商店更新</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="1334"/>
|
<location filename="../src/widget.ui" line="1301"/>
|
||||||
<source>0B</source>
|
<source>0B</source>
|
||||||
<translation></translation>
|
<translation></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.cpp" line="187"/>
|
<location filename="../src/widget.cpp" line="192"/>
|
||||||
<source>Spark Store</source>
|
<source>Spark Store</source>
|
||||||
<translation>Spark 应用商店</translation>
|
<translation>Spark 应用商店</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.cpp" line="188"/>
|
<location filename="../src/widget.cpp" line="193"/>
|
||||||
<source>Search or enter spk://</source>
|
<source>Search or enter spk://</source>
|
||||||
<translation>搜索或打开链接</translation>
|
<translation>搜索或打开链接</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.cpp" line="194"/>
|
<location filename="../src/widget.cpp" line="199"/>
|
||||||
<source>Submit App</source>
|
<source>Submit App</source>
|
||||||
<translation>投递应用</translation>
|
<translation>投递应用</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.cpp" line="195"/>
|
<location filename="../src/widget.cpp" line="200"/>
|
||||||
|
<source>Submit App with client(Recommanded)</source>
|
||||||
|
<translation>使用本地投稿器投递应用(推荐)</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../src/widget.cpp" line="201"/>
|
||||||
<source>Settings</source>
|
<source>Settings</source>
|
||||||
<translation>设置</translation>
|
<translation>设置</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.cpp" line="196"/>
|
<location filename="../src/widget.cpp" line="202"/>
|
||||||
<source>APP Upgrade and Install Settings</source>
|
<source>APP Upgrade and Install Settings</source>
|
||||||
<translation>应用更新和安装设置</translation>
|
<translation>应用更新和安装设置</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.cpp" line="347"/>
|
<location filename="../src/widget.cpp" line="371"/>
|
||||||
<source>Not Exist</source>
|
<source>Not Exist</source>
|
||||||
<translation>不存在</translation>
|
<translation>不存在</translation>
|
||||||
</message>
|
</message>
|
||||||
@@ -527,11 +545,11 @@
|
|||||||
<translation type="obsolete">更新完毕</translation>
|
<translation type="obsolete">更新完毕</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.cpp" line="139"/>
|
<location filename="../src/widget.cpp" line="141"/>
|
||||||
<location filename="../src/widget.cpp" line="409"/>
|
<location filename="../src/widget.cpp" line="433"/>
|
||||||
<location filename="../src/widget.cpp" line="414"/>
|
<location filename="../src/widget.cpp" line="438"/>
|
||||||
<location filename="../src/widget.cpp" line="424"/>
|
<location filename="../src/widget.cpp" line="448"/>
|
||||||
<location filename="../src/widget.cpp" line="429"/>
|
<location filename="../src/widget.cpp" line="453"/>
|
||||||
<source>Spark\ Store</source>
|
<source>Spark\ Store</source>
|
||||||
<translation>星火应用商店</translation>
|
<translation>星火应用商店</translation>
|
||||||
</message>
|
</message>
|
||||||
@@ -568,8 +586,8 @@
|
|||||||
<translation type="vanished">大小: </translation>
|
<translation type="vanished">大小: </translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.cpp" line="659"/>
|
<location filename="../src/widget.cpp" line="692"/>
|
||||||
<location filename="../src/widget.cpp" line="899"/>
|
<location filename="../src/widget.cpp" line="932"/>
|
||||||
<source>Reinstall</source>
|
<source>Reinstall</source>
|
||||||
<translation>重新安装</translation>
|
<translation>重新安装</translation>
|
||||||
</message>
|
</message>
|
||||||
@@ -578,17 +596,17 @@
|
|||||||
<translation type="vanished">加载应用程序图标失败。</translation>
|
<translation type="vanished">加载应用程序图标失败。</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.cpp" line="625"/>
|
<location filename="../src/widget.cpp" line="658"/>
|
||||||
<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="710"/>
|
<location filename="../src/widget.cpp" line="739"/>
|
||||||
<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="719"/>
|
<location filename="../src/widget.cpp" line="747"/>
|
||||||
<source>Request Error: %1</source>
|
<source>Request Error: %1</source>
|
||||||
<translation>请求错误:%1</translation>
|
<translation>请求错误:%1</translation>
|
||||||
</message>
|
</message>
|
||||||
@@ -597,12 +615,12 @@
|
|||||||
<translation type="vanished">目前仅支持商店专用链接的打开,搜索功能正在开发,请期待以后的版本!</translation>
|
<translation type="vanished">目前仅支持商店专用链接的打开,搜索功能正在开发,请期待以后的版本!</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.cpp" line="904"/>
|
<location filename="../src/widget.cpp" line="937"/>
|
||||||
<source>Upgrade</source>
|
<source>Upgrade</source>
|
||||||
<translation>升级</translation>
|
<translation>软件升级</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.cpp" line="1091"/>
|
<location filename="../src/widget.cpp" line="1124"/>
|
||||||
<source>Updating, please wait...</source>
|
<source>Updating, please wait...</source>
|
||||||
<translation>正在更新,请稍候……</translation>
|
<translation>正在更新,请稍候……</translation>
|
||||||
</message>
|
</message>
|
||||||
@@ -662,17 +680,17 @@ Click yes to continue.</source>
|
|||||||
<translation type="vanished">服务器未知错误</translation>
|
<translation type="vanished">服务器未知错误</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.cpp" line="1123"/>
|
<location filename="../src/widget.cpp" line="1156"/>
|
||||||
<source>Uninstall succeeded</source>
|
<source>Uninstall succeeded</source>
|
||||||
<translation>卸载成功</translation>
|
<translation>卸载成功</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.cpp" line="1145"/>
|
<location filename="../src/widget.cpp" line="1178"/>
|
||||||
<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="1227"/>
|
<location filename="../src/widget.cpp" line="1270"/>
|
||||||
<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>
|
||||||
|
|||||||
Reference in New Issue
Block a user