mirror of
https://gitee.com/spark-store-project/spark-store
synced 2025-12-15 13:22:04 +08:00
Compare commits
218 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 874adcbc5e | |||
| 9614efa0aa | |||
| b1499b5942 | |||
| d1270dd65f | |||
| e8c344f75d | |||
| a388535361 | |||
| e94ee00ade | |||
| 7390e292ae | |||
| 0119b21c82 | |||
| 601b086923 | |||
| f1a2886161 | |||
| e2f1a344c4 | |||
| 9fc5153f37 | |||
|
|
b93f6362b7 | ||
| 32350cf519 | |||
| c27c922d0b | |||
| 6dee04f5e8 | |||
| 924d8d18a9 | |||
| f027a2fa7e | |||
| 89c4b968f3 | |||
| ab36e76032 | |||
| f49db42c3a | |||
| 58b31f182a | |||
| fbffe12501 | |||
| a30c26a7f2 | |||
| df7b49dbe2 | |||
| 9d93966124 | |||
| 977b2ebdc9 | |||
| 28ed452bb0 | |||
| 512d86feac | |||
| 8e1e0cea7a | |||
| d2214114fb | |||
| 4dbd79a1ac | |||
| c90232022e | |||
| 84a1554b4b | |||
| 71dbf9b958 | |||
| 9d12086f09 | |||
|
|
54a55e15a9 | ||
| 5385e2d1b1 | |||
| 1e468ba774 | |||
| 25efce0017 | |||
| 707a2b5e4c | |||
| b9121c13ab | |||
| 9c80179493 | |||
| 2a89135d1a | |||
| b91e0142f4 | |||
| 55897e3cb9 | |||
| f17fcdfe85 | |||
| 9046a3a965 | |||
| 1e72fcb7f2 | |||
| 9007bdf3d3 | |||
| afd926ae4a | |||
| 4949d67852 | |||
| 5f5d71fbd0 | |||
| 9fd8f64195 | |||
| c32ffb7cd2 | |||
| af9217b1dc | |||
| 93e218dd53 | |||
| 4de32fa8a6 | |||
| 2d59a61796 | |||
| 7abdd90215 | |||
| cbd594e217 | |||
| 42b6a20c97 | |||
| 110adc995d | |||
| cd6d0ac133 | |||
| 568e73de07 | |||
| 62c8841c50 | |||
| 6fd611919b | |||
| 77a84785de | |||
| 9969f4f2fc | |||
| 833a8ec14b | |||
| dd679f3f26 | |||
| 5411a832dc | |||
| 0aeadb5526 | |||
| 91fd97b878 | |||
| f2cf344f62 | |||
| 8d84e433a6 | |||
| a6e9dac2f9 | |||
| 495ef3292e | |||
| 5900b3cdf3 | |||
| e644214263 | |||
| 2b76f5e202 | |||
| 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 | |||
| aff593eba8 | |||
| beaeac60a3 | |||
| 11d68fb4b5 | |||
| e7680fe2a0 | |||
| 19dff7fb56 | |||
| 67b314d0d2 | |||
| 63b28adaf8 | |||
| 8741973cca | |||
| 8e3787ab07 | |||
| f7d07e0bf9 | |||
| 9e4df5c5c2 | |||
| 829a08d40a | |||
| 411bbe5935 | |||
| 5d5fbfbad4 | |||
| af89e64478 | |||
| c93c221cf1 | |||
| afee0966c8 | |||
| 2df5363c2c | |||
| 971a5dcc63 | |||
| a252e7b724 | |||
| d3987a20ec | |||
| 932e754b88 | |||
| 72a771b0f1 | |||
| b75fbe5674 | |||
| 6617522a7c | |||
| 1733d9853d | |||
| 55c6c13e50 | |||
| 9c2f326268 | |||
| b1a6f79961 | |||
| 1561d511d1 | |||
| 2d2b431df7 | |||
| c87272b463 | |||
| da632d41e7 | |||
| 96b0f0f2be | |||
| 8a7d09b716 | |||
| fcdcd84462 | |||
| 8f63b58062 | |||
| 2c8d38a0da | |||
| 807777e3dc | |||
| 86a9e66e29 | |||
| 15938d0da4 | |||
| 1331c369ad | |||
| d5182c760b | |||
| f9dc1cd09d | |||
| 230c860d91 | |||
| 69f2d6e626 | |||
| 6b560492e8 | |||
| 8886016357 | |||
| 6d23aaa07c | |||
| 3740b551ef | |||
| 6f23d07929 | |||
| b73d97d65d | |||
| 0e351a667a | |||
| e8612f304a | |||
| 57bbc9536a | |||
| 9f7b46b600 | |||
| cdb4fc05a1 |
@@ -18,7 +18,7 @@ stages:
|
|||||||
name: execute_by_docker
|
name: execute_by_docker
|
||||||
displayName: 基于镜像的脚本执行
|
displayName: 基于镜像的脚本执行
|
||||||
certificate: ''
|
certificate: ''
|
||||||
image: docker.io/debian:buster-slim
|
image: docker.io/debian:buster
|
||||||
command:
|
command:
|
||||||
- sed -i 's/deb.debian.org/mirrors.ustc.edu.cn/g' /etc/apt/sources.list
|
- sed -i 's/deb.debian.org/mirrors.ustc.edu.cn/g' /etc/apt/sources.list
|
||||||
- '# 换源'
|
- '# 换源'
|
||||||
|
|||||||
@@ -14,26 +14,31 @@ stages:
|
|||||||
trigger: auto
|
trigger: auto
|
||||||
executor: []
|
executor: []
|
||||||
steps:
|
steps:
|
||||||
- step: build@gcc
|
- step: execute@docker
|
||||||
name: build_gcc
|
name: execute_by_docker
|
||||||
displayName: GCC 构建
|
displayName: 基于镜像的DTK构建
|
||||||
gccVersion: '9.4'
|
certificate: ''
|
||||||
commands:
|
image: docker.io/debian:buster
|
||||||
- sed -i 's/archive.ubuntu.com/mirrors.ustc.edu.cn/g' /etc/apt/sources.list
|
command:
|
||||||
|
- sed -i 's/deb.debian.org/mirrors.ustc.edu.cn/g' /etc/apt/sources.list
|
||||||
- '# 换源'
|
- '# 换源'
|
||||||
- apt update
|
- apt update
|
||||||
- echo "正在准备Debian 10环境..."
|
- export DEBIAN_FRONTEND=noninteractive
|
||||||
- apt install git -y >/dev/null 2>&1
|
- echo "安装git devscripts equivs curl..."
|
||||||
- git clone https://gitlink.org.cn/shenmo7192/debian-10-container.git
|
- 'apt install git devscripts equivs curl -y '
|
||||||
- mv debian-10-container/Debian-10.tar.xz /mnt
|
- git clone https://gitlink.org.cn/shenmo7192/dtk-old-bundle.git
|
||||||
- cd /mnt/
|
- cd dtk-old-bundle
|
||||||
- tar -xf Debian-10.tar.xz
|
- apt install ./*.deb -y
|
||||||
- cd Debian-10
|
- cd ..
|
||||||
- wget https://gitee.com/deepin-community-store/repo_auto_update_script/raw/master/spark-build.sh
|
- rm -rf dtk-old-bundle
|
||||||
- chmod +x spark-build.sh
|
- ''
|
||||||
- echo "进入Debian 10环境"
|
- 'mk-build-deps --install --tool "apt-get -o Debug::pkgProblemResolver=yes -y" '
|
||||||
- chroot /mnt/Debian-10 /bin/bash /spark-build.sh
|
- ''
|
||||||
- cd /mnt/Debian-10/build-spark
|
- dpkg-buildpackage -b -us -uc
|
||||||
|
- cd ..
|
||||||
|
- ls -all
|
||||||
|
- pwd
|
||||||
|
- ''
|
||||||
- 'mkdir target '
|
- 'mkdir target '
|
||||||
- for f in $(find . -type f -name "*.deb")
|
- for f in $(find . -type f -name "*.deb")
|
||||||
- do
|
- do
|
||||||
@@ -42,8 +47,7 @@ stages:
|
|||||||
artifacts:
|
artifacts:
|
||||||
- name: BUILD_ARTIFACT
|
- name: BUILD_ARTIFACT
|
||||||
path:
|
path:
|
||||||
- /mnt/Debian-10/build-spark/target
|
- ../target
|
||||||
caches: []
|
|
||||||
notify: []
|
notify: []
|
||||||
strategy:
|
strategy:
|
||||||
retry: '0'
|
retry: '0'
|
||||||
|
|||||||
19
README.md
19
README.md
@@ -11,9 +11,14 @@ 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
|
||||||
|
|
||||||
|
*About OpenKylin and deepin 23*
|
||||||
|
|
||||||
|
The adaptation work is scheduled after their official release.
|
||||||
|
|
||||||
|
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)
|
||||||
|
|
||||||
@@ -55,4 +60,14 @@ dpkg-buildpackage
|
|||||||
|
|
||||||
We use Gitee as our code hosting platform. Please click here to contact us.
|
We use Gitee as our code hosting platform. Please click here to contact us.
|
||||||
|
|
||||||
https://gitee.com/deepin-community-store/spark-store
|
https://gitee.com/deepin-community-store/spark-store
|
||||||
|
|
||||||
|
### Rocket Chat
|
||||||
|
|
||||||
|
https://chat.shenmo.tech/
|
||||||
|
|
||||||
|
PWA Client:
|
||||||
|
|
||||||
|
spk://store/chat/store.spark-app.feedback
|
||||||
|
|
||||||
|
(Copy and paste to search bar or in browser address bar after installing Spark Store)
|
||||||
20
README.zh.md
20
README.zh.md
@@ -8,8 +8,14 @@
|
|||||||
我们创建了这个应用商店,广泛收录大家需要的软件包,搜集优质小工具,主动适配wine应用,存放到储存库供大家获取
|
我们创建了这个应用商店,广泛收录大家需要的软件包,搜集优质小工具,主动适配wine应用,存放到储存库供大家获取
|
||||||
我们支持:Deepin 20 ; Ubuntu 22.04 LTS / Ubuntu 20.04 LTS(将会逐渐停止支持) ; UOS Home 21
|
我们支持:Deepin 20 ; Ubuntu 22.04 LTS / Ubuntu 20.04 LTS(将会逐渐停止支持) ; UOS Home 21
|
||||||
|
|
||||||
|
*关于OpenKylin和deepin 23*
|
||||||
|
|
||||||
|
支持计划将会在对应系统发布正式版之后开始评估和执行
|
||||||
|
|
||||||
希望看到这里的人也可以加入我们的队伍,开发或者投递应用都很欢迎,共同构建Linux应用生态
|
希望看到这里的人也可以加入我们的队伍,开发或者投递应用都很欢迎,共同构建Linux应用生态
|
||||||
|
|
||||||
|
在这里追踪我们的Issue处理情况 https://gitee.com/deepin-community-store/spark-store/board
|
||||||
|
|
||||||
如果有想要提交的软件包,请 [在这里投稿](https://upload.deepinos.org/index)
|
如果有想要提交的软件包,请 [在这里投稿](https://upload.deepinos.org/index)
|
||||||
|
|
||||||
|
|
||||||
@@ -26,7 +32,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
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -47,4 +53,14 @@ dpkg-buildpackage
|
|||||||
|
|
||||||
## 🚀 协作
|
## 🚀 协作
|
||||||
|
|
||||||
非常感谢有兴趣的开发者或爱好者参与 `星火应用商店` 项目,分享你的见解与思路。
|
非常感谢有兴趣的开发者或爱好者参与 `星火应用商店` 项目,分享你的见解与思路。
|
||||||
|
|
||||||
|
### 交流平台
|
||||||
|
|
||||||
|
https://chat.shenmo.tech/
|
||||||
|
|
||||||
|
客户端PWA:
|
||||||
|
|
||||||
|
spk://store/chat/store.spark-app.feedback
|
||||||
|
|
||||||
|
(安装星火商店后在浏览器打开或复制到搜索栏打开)
|
||||||
@@ -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 |
226
debian/changelog
vendored
226
debian/changelog
vendored
@@ -1,6 +1,230 @@
|
|||||||
|
spark-store (3.5.2) stable; urgency=medium
|
||||||
|
|
||||||
|
* fix: aptss 转为使用内置的ss-apt-fast指令
|
||||||
|
|
||||||
|
|
||||||
|
-- shenmo <shenmo@spark-app.store> Fri, 30 Jan 2022 00:00:00 +0800
|
||||||
|
|
||||||
|
spark-store (3.5.1.1) stable; urgency=medium
|
||||||
|
|
||||||
|
* fix: aptss shebang 修复
|
||||||
|
|
||||||
|
|
||||||
|
-- shenmo <shenmo@spark-app.store> Fri, 30 Jan 2022 00:00:00 +0800
|
||||||
|
|
||||||
|
spark-store (3.5.1) stable; urgency=medium
|
||||||
|
|
||||||
|
* fix: 搜索修复,在appinfo界面可以正常搜索
|
||||||
|
|
||||||
|
|
||||||
|
-- shenmo <shenmo@spark-app.store> Fri, 30 Jan 2022 00:00:00 +0800
|
||||||
|
|
||||||
|
spark-store (3.5) stable; urgency=medium
|
||||||
|
|
||||||
|
* feat: 搜索转为使用网页,提高加载速度和用户体验
|
||||||
|
* 下载软件时指定DNS,修复移动网络问题
|
||||||
|
* 准备进入LTS阶段
|
||||||
|
|
||||||
|
-- shenmo <shenmo@spark-app.store> Fri, 30 Jan 2022 00:00:00 +0800
|
||||||
|
|
||||||
|
spark-store (3.4~test1) stable; urgency=medium
|
||||||
|
|
||||||
|
* feat: aptss不再尝试安装apt-fast,转而自带
|
||||||
|
* chore: 删除password-check模块
|
||||||
|
|
||||||
|
-- shenmo <shenmo@spark-app.store> Fri, 30 Jan 2022 00:00:00 +0800
|
||||||
|
|
||||||
|
spark-store (3.3.3) stable; urgency=medium
|
||||||
|
|
||||||
|
* feat: 首页链接调用浏览器打开
|
||||||
|
|
||||||
|
-- shenmo <shenmo@spark-app.store> Fri, 30 Jan 2022 00:00:00 +0800
|
||||||
|
|
||||||
|
0spark-store (3.3.3~test5) stable; urgency=medium
|
||||||
|
|
||||||
|
* 修复可能的内存泄漏问题
|
||||||
|
* 修复应用搜索为空但仍显示上一次搜索结果的问题
|
||||||
|
* 修复动画加载延后的问题
|
||||||
|
* 修复统计下载量卡主渲染线程的问题
|
||||||
|
|
||||||
|
-- shenmo <shenmo@spark-app.store> Fri, 30 Jan 2022 00:00:00 +0800
|
||||||
|
|
||||||
|
|
||||||
|
spark-store (3.3.3~test4) stable; urgency=medium
|
||||||
|
|
||||||
|
* Enable i386 arch support by default
|
||||||
|
|
||||||
|
-- shenmo <shenmo@spark-app.store> Fri, 30 Jan 2022 00:00:00 +0800
|
||||||
|
|
||||||
|
spark-store (3.3.3~test3) stable; urgency=medium
|
||||||
|
|
||||||
|
* Now use ss-apt-fast instead of apt-fast
|
||||||
|
* 修复:右上角 更新和安装设置 菜单中进入更新列表失效
|
||||||
|
|
||||||
|
-- shenmo <shenmo@spark-app.store> Fri, 30 Jan 2022 00:00:00 +0800
|
||||||
|
|
||||||
|
spark-store (3.3.3~test2) stable; urgency=medium
|
||||||
|
|
||||||
|
* bug fix: 更新和检查更新出错时不报错.此更新需要一个推送
|
||||||
|
|
||||||
|
-- shenmo <shenmo@spark-app.store> Fri, 30 Jan 2022 00:00:00 +0800
|
||||||
|
|
||||||
|
spark-store (3.3.3~test1) stable; urgency=medium
|
||||||
|
|
||||||
|
* 3.3.3将会是修复大部分bug后的最终版本
|
||||||
|
* 图形环境中所有root权限的组件剥离到cli(可用于deepin 23 daily,只保证商店本体正常运作,不处理安装依赖不满足)
|
||||||
|
* 文案更改:更新检查-->检查更新
|
||||||
|
|
||||||
|
-- shenmo <shenmo@spark-app.store> Fri, 30 Jan 2022 00:00:00 +0800
|
||||||
|
|
||||||
|
spark-store (3.3.1~test1) stable; urgency=medium
|
||||||
|
|
||||||
|
* 安装时不再需要联网
|
||||||
|
|
||||||
|
-- shenmo <shenmo@spark-app.store> Fri, 30 Jan 2022 00:00:00 +0800
|
||||||
|
|
||||||
|
spark-store (3.3.0.4) stable; urgency=medium
|
||||||
|
|
||||||
|
* 为减轻服务器压力,不再单独更新某一个应用,而是作为整体更新
|
||||||
|
|
||||||
|
|
||||||
|
-- shenmo <shenmo@spark-app.store> Fri, 30 Jan 2022 00:00:00 +0800
|
||||||
|
|
||||||
|
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
|
||||||
|
|
||||||
|
* aptss will now refresh the system source before doing install, policy....etc
|
||||||
|
* 启动客户端GPU加速支持
|
||||||
|
|
||||||
|
-- shenmo <shenmo@spark-app.store> Fri, 30 Jan 2022 00:00:00 +0800
|
||||||
|
|
||||||
|
spark-store (3.2.1) stable; urgency=medium
|
||||||
|
|
||||||
|
* 更改刷新系统源的功能
|
||||||
|
|
||||||
|
|
||||||
|
-- shenmo <shenmo@spark-app.store> Fri, 30 Jan 2022 00:00:00 +0800
|
||||||
|
|
||||||
|
spark-store (3.2) stable; urgency=medium
|
||||||
|
|
||||||
|
* 新增 下载量统计功能
|
||||||
|
* 新增 显示下载量
|
||||||
|
* 修复 spk链接生成错误
|
||||||
|
* 调整 启动时检测商店applist源
|
||||||
|
* 新增 applist cdn加速
|
||||||
|
* 调整 ssupdate不再更新/etc/aptss下的cache,如要如此,请使用aptss update
|
||||||
|
* 修复 在更新检测设置中的是否开启自动更新检测设置项的显示不随开启或关闭状态改变
|
||||||
|
* 修复 在检测更新时临时降低优先级到100,防止系统中有且版本一致的包被反复来回更新
|
||||||
|
|
||||||
|
-- shenmo <shenmo@spark-app.store> Fri, 30 Jan 2022 00:00:00 +0800
|
||||||
|
|
||||||
|
spark-store (3.1.6) stable; urgency=medium
|
||||||
|
|
||||||
|
* 修复部分情况下无法选中正确的镜像源的问题
|
||||||
|
* 合入3.1.5以来的各项修改
|
||||||
|
|
||||||
|
-- shenmo <shenmo@spark-app.store> Fri, 30 Jan 2022 00:00:00 +0800
|
||||||
|
|
||||||
spark-store (3.1.5-5) stable; urgency=medium
|
spark-store (3.1.5-5) stable; urgency=medium
|
||||||
|
|
||||||
* 从所有镜像源中选取最快镜像源高速下载
|
* 从所有镜像源中选取最快镜像源高速下载
|
||||||
|
|
||||||
-- shenmo <shenmo@spark-app.store> Fri, 30 Jan 2022 00:00:00 +0800
|
-- shenmo <shenmo@spark-app.store> Fri, 30 Jan 2022 00:00:00 +0800
|
||||||
|
|
||||||
|
|||||||
12
debian/control
vendored
12
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
|
||||||
@@ -34,9 +34,13 @@ Depends:${shlibs:Depends}, ${misc:Depends},
|
|||||||
libdtkwidget5,
|
libdtkwidget5,
|
||||||
libnotify4,
|
libnotify4,
|
||||||
curl,
|
curl,
|
||||||
|
openssl,
|
||||||
|
libssl-dev,
|
||||||
dde-qt5integration,
|
dde-qt5integration,
|
||||||
bubblewrap,
|
bubblewrap,
|
||||||
aria2
|
aria2,
|
||||||
|
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
|
||||||
|
|||||||
21
debian/spark-store.postinst
vendored
21
debian/spark-store.postinst
vendored
@@ -3,9 +3,18 @@
|
|||||||
case "$1" in
|
case "$1" in
|
||||||
configure)
|
configure)
|
||||||
|
|
||||||
|
# Enable i386 arch
|
||||||
|
echo "Enable i386 arch..."
|
||||||
|
dpkg --add-architecture i386
|
||||||
|
|
||||||
# config for aptss
|
# config for aptss
|
||||||
mkdir -p /etc/aptss/sources.list.d
|
mkdir -p /etc/aptss/sources.list.d
|
||||||
ln -s -f /etc/apt/sources.list /etc/aptss/sources.list
|
ln -s -f /etc/apt/sources.list /etc/aptss/sources.list
|
||||||
|
|
||||||
|
# Remove the sources.list file
|
||||||
|
if [ -e /etc/apt/sources.list.d/sparkstore.list ];then
|
||||||
|
rm /etc/apt/sources.list.d/sparkstore.list
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
# Check if /usr/local/bin existed
|
# Check if /usr/local/bin existed
|
||||||
@@ -19,11 +28,13 @@ case "$1" in
|
|||||||
ln -s -f /opt/durapps/spark-store/bin/spark-dstore-patch /usr/local/bin/spark-dstore-patch
|
ln -s -f /opt/durapps/spark-store/bin/spark-dstore-patch /usr/local/bin/spark-dstore-patch
|
||||||
ln -s -f /opt/durapps/spark-store/bin/aptss /usr/local/bin/ss-apt-fast
|
ln -s -f /opt/durapps/spark-store/bin/aptss /usr/local/bin/ss-apt-fast
|
||||||
|
|
||||||
ln -s -f /opt/durapps/spark-store/bin/aptss /usr/bin/aptss
|
ln -s -f /opt/durapps/spark-store/bin/aptss /usr/bin/aptss
|
||||||
|
|
||||||
|
# Compile the Sender module
|
||||||
|
|
||||||
|
gcc /opt/durapps/spark-store/bin/ss-feedback/sender-d.sh.c -o /opt/durapps/spark-store/bin/ss-feedback/sender-d
|
||||||
|
|
||||||
|
# Install key
|
||||||
# Download and install key
|
|
||||||
mkdir -p /tmp/spark-store-install/
|
mkdir -p /tmp/spark-store-install/
|
||||||
cp -f /opt/durapps/spark-store/bin/spark-store.asc /tmp/spark-store-install/spark-store.asc
|
cp -f /opt/durapps/spark-store/bin/spark-store.asc /tmp/spark-store-install/spark-store.asc
|
||||||
gpg --dearmor /tmp/spark-store-install/spark-store.asc
|
gpg --dearmor /tmp/spark-store-install/spark-store.asc
|
||||||
@@ -32,8 +43,8 @@ case "$1" in
|
|||||||
|
|
||||||
|
|
||||||
# Run apt update to avoid users being fucked up by the non-exist dependency problem
|
# Run apt update to avoid users being fucked up by the non-exist dependency problem
|
||||||
|
# Now abandoned as aptss now run ssupdate everytime
|
||||||
aptss ssupdate
|
#aptss ssupdate
|
||||||
|
|
||||||
|
|
||||||
# Start upgrade detect service
|
# Start upgrade detect service
|
||||||
|
|||||||
5
debian/spark-store.preinst
vendored
5
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
|
||||||
@@ -24,4 +24,5 @@ function network-check()
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
network-check
|
#network-check
|
||||||
|
echo "不再检测网络"
|
||||||
11
debian/spark-store.prerm
vendored
11
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
|
||||||
@@ -7,10 +8,15 @@ rm /usr/local/bin/spark-dstore-patch
|
|||||||
rm /usr/local/bin/ussinstall
|
rm /usr/local/bin/ussinstall
|
||||||
rm /usr/local/bin/ussremove
|
rm /usr/local/bin/ussremove
|
||||||
rm /usr/local/bin/ss-apt-fast
|
rm /usr/local/bin/ss-apt-fast
|
||||||
|
|
||||||
rm /usr/bin/aptss
|
rm /usr/bin/aptss
|
||||||
|
|
||||||
|
|
||||||
rm -rf /etc/aptss/
|
rm -rf /etc/aptss/
|
||||||
|
|
||||||
|
# Remove Sender module
|
||||||
|
rm /opt/durapps/spark-store/bin/ss-feedback/sender-d
|
||||||
|
|
||||||
# Remove residual symbol links to stop upgrade detect if exist
|
# Remove residual symbol links to stop upgrade detect if exist
|
||||||
if [ -e /etc/xdg/autostart/spark-update-notifier.desktop ];then
|
if [ -e /etc/xdg/autostart/spark-update-notifier.desktop ];then
|
||||||
rm /etc/xdg/autostart/spark-update-notifier.desktop
|
rm /etc/xdg/autostart/spark-update-notifier.desktop
|
||||||
@@ -36,3 +42,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
|
||||||
|
|||||||
@@ -6,4 +6,4 @@ Subject: spark-store_3.0.2: $(lsb_release -a | grep "Description" | sed -e "s#\t
|
|||||||
|
|
||||||
$(uname -a)" | tee /tmp/spark-store-install/feedback.txt > /dev/null
|
$(uname -a)" | tee /tmp/spark-store-install/feedback.txt > /dev/null
|
||||||
|
|
||||||
curl -s --url "smtp://smtp.163.com" --mail-from "sparkstorefeedback@163.com" --mail-rcpt "sparkstorefeedback@163.com" --upload-file /tmp/spark-store-install/feedback.txt --user "sparkstorefeedback@163.com:YWYGLQNOPLWNNJJY"
|
curl -s --url "smtp://smtp.163.com" --mail-from "${MAIL_FEEDBACK}" --mail-rcpt "${MAIL_FEEDBACK}" --upload-file /tmp/spark-store-install/feedback.txt --user "${MAIL_FEEDBACK}:${M}AIL_AUTH"
|
||||||
|
|||||||
@@ -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-worker">
|
||||||
|
<description>运行ss-do-upgrade-worker需要权限</description>
|
||||||
|
<message>要使用ss-do-upgrade-worker需要权限</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-worker.sh</annotate>
|
||||||
|
<annotate key="org.freedesktop.policykit.exec.allow_gui">true</annotate>
|
||||||
|
</action>
|
||||||
|
</policyconfig>
|
||||||
@@ -8,7 +8,6 @@ SUBDIRS += \
|
|||||||
third-party/QtNetworkService \
|
third-party/QtNetworkService \
|
||||||
src/spark-store.pro
|
src/spark-store.pro
|
||||||
|
|
||||||
|
|
||||||
spark-store.depends = third-party/QtNetworkService
|
spark-store.depends = third-party/QtNetworkService
|
||||||
|
|
||||||
# Update translation files
|
# Update translation files
|
||||||
@@ -36,11 +35,9 @@ 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-worker.policy
|
||||||
polkit-1.path = /usr/share/polkit-1/actions/
|
polkit-1.path = /usr/share/polkit-1/actions/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
icon.files += pkg/usr/share/icons/hicolor/scalable/apps/spark-store.svg
|
icon.files += pkg/usr/share/icons/hicolor/scalable/apps/spark-store.svg
|
||||||
icon.path = /usr/share/icons/hicolor/scalable/apps
|
icon.path = /usr/share/icons/hicolor/scalable/apps
|
||||||
|
|
||||||
@@ -52,9 +49,10 @@ INSTALLS += \
|
|||||||
qm \
|
qm \
|
||||||
desktop \
|
desktop \
|
||||||
icon \
|
icon \
|
||||||
preferences \
|
# preferences \
|
||||||
|
# sourceslist \
|
||||||
tmp \
|
tmp \
|
||||||
service \
|
service \
|
||||||
bash_completion
|
bash_completion \
|
||||||
# polkit-1
|
polkit-1
|
||||||
# 暂时不添加
|
# 暂时不添加
|
||||||
|
|||||||
@@ -7,7 +7,8 @@ big_image::big_image(DBlurEffectWidget *parent) :
|
|||||||
DBlurEffectWidget(parent),
|
DBlurEffectWidget(parent),
|
||||||
m_image(new QLabel)
|
m_image(new QLabel)
|
||||||
{
|
{
|
||||||
setWindowFlags(this->windowFlags() | Qt::WindowStaysOnTopHint); // 设置图片对话框总在最前
|
// setWindowFlags(this->windowFlags() | Qt::WindowStaysOnTopHint); // 设置图片对话框总在最前
|
||||||
|
setWindowModality(Qt::ApplicationModal); // 以上无效不如直接使用 模态化对话框
|
||||||
setRadius(0);
|
setRadius(0);
|
||||||
setMaskAlpha(60);
|
setMaskAlpha(60);
|
||||||
setMaskColor(QColor("#000000"));
|
setMaskColor(QColor("#000000"));
|
||||||
|
|||||||
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)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -103,14 +103,14 @@ void DownloadController::startDownload(const QString &url)
|
|||||||
QString aria2Command = "-d";
|
QString aria2Command = "-d";
|
||||||
QString aria2Urls = "";
|
QString aria2Urls = "";
|
||||||
QString aria2Verbose = "--summary-interval=1";
|
QString aria2Verbose = "--summary-interval=1";
|
||||||
QString aria2Threads = "--split=2"; // 仅使用最快的两个镜像源
|
QString aria2SizePerThreads = "--min-split-size=1M";
|
||||||
QString aria2NoConfig = "--no-conf";
|
QString aria2NoConfig = "--no-conf";
|
||||||
QString aria2NoSeeds = "--seed-time=0";
|
QString aria2NoSeeds = "--seed-time=0";
|
||||||
QStringList command;
|
QStringList command;
|
||||||
QString downloadDir = "/tmp/spark-store/";
|
QString downloadDir = "/tmp/spark-store/";
|
||||||
QString aira2URLSelector = "--uri-selector=adaptive";
|
QString aria2ConnectionPerServer = "--max-connection-per-server=1";
|
||||||
QString aria2StreamPiece = "--stream-piece-selector=default";
|
QString aria2ConnectionMax = "--max-concurrent-downloads=16";
|
||||||
QString aria2ConnectionPerServer = "--max-connection-per-server=4";
|
QString aria2DNSCommand = "--async-dns-server=119.29.29.29,223.5.5.5";
|
||||||
|
|
||||||
if (useMetalink){
|
if (useMetalink){
|
||||||
command.append(metaUrl.toUtf8());
|
command.append(metaUrl.toUtf8());
|
||||||
@@ -118,7 +118,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出错
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -130,10 +130,10 @@ void DownloadController::startDownload(const QString &url)
|
|||||||
command.append(downloadDir.toUtf8());
|
command.append(downloadDir.toUtf8());
|
||||||
command.append(aria2Verbose.toUtf8());
|
command.append(aria2Verbose.toUtf8());
|
||||||
command.append(aria2NoConfig.toUtf8());
|
command.append(aria2NoConfig.toUtf8());
|
||||||
command.append(aria2Threads.toUtf8());
|
command.append(aria2SizePerThreads.toUtf8());
|
||||||
command.append(aira2URLSelector.toUtf8());
|
|
||||||
command.append(aria2StreamPiece.toUtf8());
|
|
||||||
command.append(aria2ConnectionPerServer.toUtf8());
|
command.append(aria2ConnectionPerServer.toUtf8());
|
||||||
|
command.append(aria2ConnectionMax.toUtf8());
|
||||||
|
command.append(aria2DNSCommand.toUtf8());
|
||||||
if (useMetalink){
|
if (useMetalink){
|
||||||
command.append(aria2NoSeeds.toUtf8());
|
command.append(aria2NoSeeds.toUtf8());
|
||||||
}
|
}
|
||||||
@@ -202,6 +202,20 @@ void DownloadController::startDownload(const QString &url)
|
|||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 统计下载量
|
||||||
|
QString SenderdPath = "/opt/durapps/spark-store/bin/ss-feedback/sender-d";
|
||||||
|
/*
|
||||||
|
* https://en.wikipedia.org/wiki/HD_70642
|
||||||
|
* HD 70642 is a star with an exoplanetary companion in the southern constellation of Puppis.
|
||||||
|
*/
|
||||||
|
QProcess mailProcess;
|
||||||
|
mailProcess.start(SenderdPath.toUtf8() + " " + metaUrl.toUtf8() + " " + "HD70642");
|
||||||
|
mailProcess.waitForStarted();
|
||||||
|
mailProcess.waitForFinished(3);
|
||||||
|
mailProcess.deleteLater();
|
||||||
|
|
||||||
|
|
||||||
emit downloadFinished(); });
|
emit downloadFinished(); });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
47
src/main.cpp
47
src/main.cpp
@@ -4,15 +4,34 @@
|
|||||||
#include <DAboutDialog>
|
#include <DAboutDialog>
|
||||||
#include <QVector>
|
#include <QVector>
|
||||||
#include <QScreen>
|
#include <QScreen>
|
||||||
|
#include <QDir>
|
||||||
|
#include <QSettings>
|
||||||
|
//新增dbus
|
||||||
|
#include <QDBusInterface>
|
||||||
|
#include <QDBusPendingCall>
|
||||||
|
|
||||||
|
// build time
|
||||||
|
#include <QDate>
|
||||||
|
#include <QTime>
|
||||||
|
|
||||||
#include "widget.h"
|
#include "widget.h"
|
||||||
|
|
||||||
DWIDGET_USE_NAMESPACE
|
DWIDGET_USE_NAMESPACE
|
||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
|
// Get build time
|
||||||
|
static const QString version = "Version 3.5.2";
|
||||||
|
static const QDate buildDate = QLocale( QLocale::English ).toDate( QString(__DATE__).replace(" ", " 0"), "MMM dd yyyy");
|
||||||
|
static const QTime buildTime = QTime::fromString(__TIME__, "hh:mm:ss");
|
||||||
|
|
||||||
|
|
||||||
DApplication::loadDXcbPlugin(); // 已废弃,但是对于非deepin桌面可以正常使用标题栏
|
DApplication::loadDXcbPlugin(); // 已废弃,但是对于非deepin桌面可以正常使用标题栏
|
||||||
DApplication::setAttribute(Qt::AA_EnableHighDpiScaling); // 开启 Hidpi 支持
|
DApplication::setAttribute(Qt::AA_EnableHighDpiScaling); // 开启 Hidpi 支持
|
||||||
// 程序内强制添加"-platformtheme deepin"参数喂给Qt让Qt正确使用Deepin主题修复各种奇怪样式问题
|
// 程序内强制添加"-platformtheme deepin"参数喂给Qt让Qt正确使用Deepin主题修复各种奇怪样式问题
|
||||||
|
|
||||||
|
// 浏览器开启 GPU 支持
|
||||||
|
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];
|
||||||
fakeArgs[1] = "-platformtheme";
|
fakeArgs[1] = "-platformtheme";
|
||||||
@@ -25,12 +44,25 @@ int main(int argc, char *argv[])
|
|||||||
a.setAttribute(Qt::AA_UseHighDpiPixmaps);
|
a.setAttribute(Qt::AA_UseHighDpiPixmaps);
|
||||||
a.loadTranslator(); // 载入翻译
|
a.loadTranslator(); // 载入翻译
|
||||||
|
|
||||||
|
QSettings readConfig(QDir::homePath() + "/.config/spark-store/config.ini", QSettings::IniFormat);
|
||||||
|
|
||||||
|
if (readConfig.value("build/version").toString() != version){
|
||||||
|
qDebug() << "Spark Store has been updated!";
|
||||||
|
QSettings *setConfig = new QSettings(QDir::homePath() + "/.config/spark-store/config.ini", QSettings::IniFormat);
|
||||||
|
setConfig->setValue("build/version", version);
|
||||||
|
setConfig->setValue("build/time", buildDate.toString("yyyy.MM.dd")+"-"+buildTime.toString());
|
||||||
|
setConfig->deleteLater();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//Customized DAboutDialog
|
//Customized DAboutDialog
|
||||||
|
|
||||||
DAboutDialog dialog;
|
DAboutDialog dialog;
|
||||||
a.setAboutDialog(&dialog);
|
a.setAboutDialog(&dialog);
|
||||||
dialog.setLicense(QObject::tr("We publish this program under GPL V3"));
|
dialog.setLicense(QObject::tr("We publish this program under GPL V3"));
|
||||||
dialog.setVersion(DApplication::buildVersion("Version 3.1.5-5"));
|
dialog.setVersion(DApplication::buildVersion(readConfig.value("build/version").toString()+"-"+readConfig.value("build/time").toString()));
|
||||||
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(
|
||||||
@@ -51,7 +83,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.1.5-5"));
|
a.setApplicationVersion(DApplication::buildVersion(readConfig.value("build/version").toString()));
|
||||||
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(
|
||||||
@@ -65,6 +97,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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
#
|
#
|
||||||
#-------------------------------------------------
|
#-------------------------------------------------
|
||||||
|
|
||||||
QT += core gui network concurrent webenginewidgets
|
QT += core gui network concurrent webenginewidgets dbus
|
||||||
|
|
||||||
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
|
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
|
||||||
|
|
||||||
@@ -41,7 +41,10 @@ SOURCES += \
|
|||||||
main.cpp \
|
main.cpp \
|
||||||
progressload.cpp \
|
progressload.cpp \
|
||||||
widget.cpp \
|
widget.cpp \
|
||||||
workerthreads.cpp
|
workerthreads.cpp \
|
||||||
|
dbus/dbussparkstore.cpp \
|
||||||
|
webengine/webenginepage.cpp \
|
||||||
|
webengine/webengineview.cpp
|
||||||
|
|
||||||
HEADERS += \
|
HEADERS += \
|
||||||
appitem.h \
|
appitem.h \
|
||||||
@@ -52,7 +55,10 @@ HEADERS += \
|
|||||||
image_show.h \
|
image_show.h \
|
||||||
progressload.h \
|
progressload.h \
|
||||||
widget.h \
|
widget.h \
|
||||||
workerthreads.h
|
workerthreads.h \
|
||||||
|
dbus/dbussparkstore.h \
|
||||||
|
webengine/webenginepage.h \
|
||||||
|
webengine/webengineview.h
|
||||||
|
|
||||||
FORMS += \
|
FORMS += \
|
||||||
appitem.ui \
|
appitem.ui \
|
||||||
|
|||||||
44
src/webengine/webenginepage.cpp
Normal file
44
src/webengine/webenginepage.cpp
Normal file
@@ -0,0 +1,44 @@
|
|||||||
|
#include "webenginepage.h"
|
||||||
|
|
||||||
|
#include <QDesktopServices>
|
||||||
|
|
||||||
|
WebEnginePage::WebEnginePage(QObject *parent)
|
||||||
|
: QWebEnginePage(parent)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
WebEnginePage::~WebEnginePage()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
void WebEnginePage::setUrl(const QUrl &url)
|
||||||
|
{
|
||||||
|
if (m_currentUrl == url) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
m_currentUrl = url;
|
||||||
|
QWebEnginePage::setUrl(url);
|
||||||
|
}
|
||||||
|
|
||||||
|
QWebEnginePage *WebEnginePage::createWindow(QWebEnginePage::WebWindowType type)
|
||||||
|
{
|
||||||
|
Q_UNUSED(type)
|
||||||
|
|
||||||
|
WebEnginePage *page = new WebEnginePage(parent());
|
||||||
|
connect(page, &WebEnginePage::urlChanged, this, &WebEnginePage::slotUrlChanged);
|
||||||
|
return page;
|
||||||
|
}
|
||||||
|
|
||||||
|
void WebEnginePage::slotUrlChanged(const QUrl &url)
|
||||||
|
{
|
||||||
|
if (m_currentUrl == url) {
|
||||||
|
sender()->deleteLater();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
qDebug() << Q_FUNC_INFO << m_currentUrl << url;
|
||||||
|
|
||||||
|
QDesktopServices::openUrl(url);
|
||||||
|
sender()->deleteLater();
|
||||||
|
}
|
||||||
26
src/webengine/webenginepage.h
Normal file
26
src/webengine/webenginepage.h
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
#ifndef WEBENGINEPAGE_H
|
||||||
|
#define WEBENGINEPAGE_H
|
||||||
|
|
||||||
|
#include <QWebEnginePage>
|
||||||
|
|
||||||
|
class WebEnginePage : public QWebEnginePage
|
||||||
|
{
|
||||||
|
Q_OBJECT
|
||||||
|
|
||||||
|
public:
|
||||||
|
explicit WebEnginePage(QObject *parent = nullptr);
|
||||||
|
~WebEnginePage() override;
|
||||||
|
|
||||||
|
void setUrl(const QUrl &url);
|
||||||
|
|
||||||
|
protected:
|
||||||
|
QWebEnginePage *createWindow(WebWindowType type) override;
|
||||||
|
|
||||||
|
private slots:
|
||||||
|
void slotUrlChanged(const QUrl &url);
|
||||||
|
|
||||||
|
private:
|
||||||
|
QUrl m_currentUrl;
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif // WEBENGINEPAGE_H
|
||||||
10
src/webengine/webengineview.cpp
Normal file
10
src/webengine/webengineview.cpp
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
#include "webengineview.h"
|
||||||
|
#include "webenginepage.h"
|
||||||
|
|
||||||
|
#include <QDesktopServices>
|
||||||
|
|
||||||
|
WebEngineView::WebEngineView(QWidget *parent)
|
||||||
|
: QWebEngineView(parent)
|
||||||
|
{
|
||||||
|
setPage(new WebEnginePage(this));
|
||||||
|
}
|
||||||
14
src/webengine/webengineview.h
Normal file
14
src/webengine/webengineview.h
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
#ifndef WEBENGINEVIEW_H
|
||||||
|
#define WEBENGINEVIEW_H
|
||||||
|
|
||||||
|
#include <QWebEngineView>
|
||||||
|
|
||||||
|
class WebEngineView : public QWebEngineView
|
||||||
|
{
|
||||||
|
Q_OBJECT
|
||||||
|
|
||||||
|
public:
|
||||||
|
explicit WebEngineView(QWidget *parent = nullptr);
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif // WEBENGINEVIEW_H
|
||||||
346
src/widget.cpp
346
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)
|
||||||
{
|
{
|
||||||
@@ -94,7 +97,7 @@ Widget::Widget(DBlurEffectWidget *parent) :
|
|||||||
connect(searchEdit, &DSearchEdit::returnPressed, this, [=]()
|
connect(searchEdit, &DSearchEdit::returnPressed, this, [=]()
|
||||||
{
|
{
|
||||||
qDebug() << "触发了搜索,呜啦啦啦!";
|
qDebug() << "触发了搜索,呜啦啦啦!";
|
||||||
QString searchtext = searchEdit->text();
|
QString searchtext = searchEdit->text().replace("\r","");
|
||||||
if(!searchtext.isEmpty())
|
if(!searchtext.isEmpty())
|
||||||
{
|
{
|
||||||
qDebug() << searchEdit->text();
|
qDebug() << searchEdit->text();
|
||||||
@@ -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()
|
||||||
@@ -154,7 +160,7 @@ void Widget::initUI()
|
|||||||
{
|
{
|
||||||
// ui初始化
|
// ui初始化
|
||||||
setMaskAlpha(200);
|
setMaskAlpha(200);
|
||||||
ui->webfoot->setFixedHeight(0);
|
// ui->webfoot->setFixedHeight(0);
|
||||||
ui->stackedWidget->setCurrentIndex(0);
|
ui->stackedWidget->setCurrentIndex(0);
|
||||||
ui->listWidget->hide();
|
ui->listWidget->hide();
|
||||||
ui->label_setting1->hide();
|
ui->label_setting1->hide();
|
||||||
@@ -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,20 +206,38 @@ 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");
|
||||||
QStringList loadedFontFamilies = QFontDatabase::applicationFontFamilies(loadedFontID);
|
// QStringList loadedFontFamilies = QFontDatabase::applicationFontFamilies(loadedFontID);
|
||||||
if(!loadedFontFamilies.isEmpty())
|
// if(!loadedFontFamilies.isEmpty())
|
||||||
{
|
// {
|
||||||
font = loadedFontFamilies.at(0);
|
// font = loadedFontFamilies.at(0);
|
||||||
}
|
// }
|
||||||
/* 全局字体设置
|
/* 全局字体设置
|
||||||
* DApplication::setFont(font);
|
* DApplication::setFont(font);
|
||||||
*/
|
*/
|
||||||
@@ -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();
|
||||||
|
|
||||||
@@ -292,18 +318,20 @@ void Widget::initConfig()
|
|||||||
|
|
||||||
// 读取服务器URL并初始化菜单项的链接
|
// 读取服务器URL并初始化菜单项的链接
|
||||||
QSettings readConfig(QDir::homePath() + "/.config/spark-store/config.ini", QSettings::IniFormat);
|
QSettings readConfig(QDir::homePath() + "/.config/spark-store/config.ini", QSettings::IniFormat);
|
||||||
if(!readConfig.value("server/choose").toString().isEmpty())
|
if(!readConfig.value("server/choose").toString().isEmpty() && readConfig.value("server/updated").toString() == "TRUE")
|
||||||
{
|
{
|
||||||
ui->comboBox_server->setCurrentText(readConfig.value("server/choose").toString());
|
ui->comboBox_server->setCurrentText(readConfig.value("server/choose").toString());
|
||||||
appinfoLoadThread.setServer(serverUrl = readConfig.value("server/choose").toString());
|
appinfoLoadThread.setServer(serverUrl = readConfig.value("server/choose").toString());
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
appinfoLoadThread.setServer(serverUrl = "https://d.store.deepinos.org.cn/"); // 默认URL
|
this->cdnSeverUrl = "https://cdn.d.store.deepinos.org.cn/";
|
||||||
|
appinfoLoadThread.setServer(serverUrl = this->cdnSeverUrl); // 默认URL
|
||||||
}
|
}
|
||||||
configCanSave = true; // 防止触发保存配置信号
|
configCanSave = true; // 防止触发保存配置信号
|
||||||
|
|
||||||
// menuUrl[0] = "http://127.0.0.1:8000/#/darkprogramming";
|
// menuUrl[0] = "http://127.0.0.1:8000/#/darkprogramming";
|
||||||
|
qDebug() << "serverUrl: " << serverUrl;
|
||||||
menuUrl[0] = serverUrl + "store/#/";
|
menuUrl[0] = serverUrl + "store/#/";
|
||||||
menuUrl[1] = serverUrl + "store/#/network";
|
menuUrl[1] = serverUrl + "store/#/network";
|
||||||
menuUrl[2] = serverUrl + "store/#/relations";
|
menuUrl[2] = serverUrl + "store/#/relations";
|
||||||
@@ -321,7 +349,7 @@ void Widget::initConfig()
|
|||||||
// web控件初始化
|
// web控件初始化
|
||||||
// ui->webView->page()->setLinkDelegationPolicy(QWebPage::DelegateAllLinks); // 用来激活接受 linkClicked 信号
|
// ui->webView->page()->setLinkDelegationPolicy(QWebPage::DelegateAllLinks); // 用来激活接受 linkClicked 信号
|
||||||
// ui->webView->page()->settings()->setAttribute(QWebSettings::JavascriptEnabled, true);
|
// ui->webView->page()->settings()->setAttribute(QWebSettings::JavascriptEnabled, true);
|
||||||
ui->webfoot->hide();
|
// ui->webfoot->hide();
|
||||||
|
|
||||||
// 初始化首页
|
// 初始化首页
|
||||||
// ui->webEngineView->setUrl(menuUrl[0]);
|
// ui->webEngineView->setUrl(menuUrl[0]);
|
||||||
@@ -359,7 +387,7 @@ void Widget::setTheme(bool isDark, QColor color)
|
|||||||
// 黑色模式
|
// 黑色模式
|
||||||
themeIsDark = true;
|
themeIsDark = true;
|
||||||
ui->webEngineView->setStyleSheet("background-color: #252525;");
|
ui->webEngineView->setStyleSheet("background-color: #252525;");
|
||||||
ui->webfoot->setStyleSheet("background-color: #252525;");
|
// ui->webfoot->setStyleSheet("background-color: #252525;");
|
||||||
ui->btn_openDir->setStyleSheet("color: #AFAFAF; background-color: #2C2C2C; border: 0px;");
|
ui->btn_openDir->setStyleSheet("color: #AFAFAF; background-color: #2C2C2C; border: 0px;");
|
||||||
ui->label->setStyleSheet("background-color: #252525;");
|
ui->label->setStyleSheet("background-color: #252525;");
|
||||||
// ui->scrollArea->setStyleSheet("background-color: #2C2C2C;");
|
// ui->scrollArea->setStyleSheet("background-color: #2C2C2C;");
|
||||||
@@ -372,7 +400,7 @@ void Widget::setTheme(bool isDark, QColor color)
|
|||||||
// 亮色模式
|
// 亮色模式
|
||||||
themeIsDark = false;
|
themeIsDark = false;
|
||||||
ui->webEngineView->setStyleSheet("background-color: #FFFFFF;");
|
ui->webEngineView->setStyleSheet("background-color: #FFFFFF;");
|
||||||
ui->webfoot->setStyleSheet("background-color: #FFFFFF;");
|
// ui->webfoot->setStyleSheet("background-color: #FFFFFF;");
|
||||||
ui->btn_openDir->setStyleSheet("color: #505050; background-color: #F8F8F8; border: 0px;");
|
ui->btn_openDir->setStyleSheet("color: #505050; background-color: #F8F8F8; border: 0px;");
|
||||||
ui->label->setStyleSheet("background-color: #FFFFFF;");
|
ui->label->setStyleSheet("background-color: #FFFFFF;");
|
||||||
// ui->scrollArea->setStyleSheet("background-color: #F8F8F8;");
|
// ui->scrollArea->setStyleSheet("background-color: #F8F8F8;");
|
||||||
@@ -430,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)
|
||||||
@@ -447,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
|
||||||
{
|
{
|
||||||
@@ -464,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;
|
||||||
@@ -475,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)
|
||||||
{
|
{
|
||||||
@@ -552,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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -570,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] + "/";
|
||||||
}
|
}
|
||||||
@@ -592,6 +637,18 @@ void Widget::chooseLeftMenu(int index)
|
|||||||
|
|
||||||
ui->stackedWidget->setCurrentIndex(0);
|
ui->stackedWidget->setCurrentIndex(0);
|
||||||
}
|
}
|
||||||
|
else if (index == 13){
|
||||||
|
QFile upgradeStatus("/tmp/spark-store/upgradeStatus.txt");
|
||||||
|
if (!upgradeStatus.exists()){
|
||||||
|
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);
|
||||||
@@ -603,15 +660,15 @@ void Widget::setfoot(int h)
|
|||||||
foot = h;
|
foot = h;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Widget::updatefoot()
|
//void Widget::updatefoot()
|
||||||
{
|
//{
|
||||||
int allh = ui->stackedWidget->height();
|
// int allh = ui->stackedWidget->height();
|
||||||
ui->webfoot->setFixedHeight(allh - foot);
|
// ui->webfoot->setFixedHeight(allh - foot);
|
||||||
}
|
//}
|
||||||
|
|
||||||
void Widget::on_pushButton_download_clicked()
|
void Widget::on_pushButton_download_clicked()
|
||||||
{
|
{
|
||||||
chooseLeftMenu(13);
|
chooseLeftMenu(14);
|
||||||
|
|
||||||
allDownload += 1;
|
allDownload += 1;
|
||||||
|
|
||||||
@@ -685,48 +742,73 @@ 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())
|
||||||
{
|
{
|
||||||
|
qDebug() << "Do not repeat searches!";
|
||||||
|
sendNotification(tr("Do not repeat searches!"));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 关键字搜索处理
|
//加载动画
|
||||||
httpClient->get("https://search.deepinos.org.cn/appinfo/search")
|
// spinner->show();
|
||||||
.header("content-type", "application/json")
|
// spinner->start();
|
||||||
.queryParam("keyword", text)
|
|
||||||
.onResponse([this](QByteArray result)
|
// // 关键字搜索处理
|
||||||
{
|
// httpClient->get("https://search.deepinos.org.cn/appinfo/search")
|
||||||
auto json = QJsonDocument::fromJson(result).array();
|
// .header("content-type", "application/json")
|
||||||
if (json.empty())
|
// .queryParam("keyword", text)
|
||||||
{
|
// .onResponse([this](QByteArray result)
|
||||||
qDebug() << "相关应用未找到!";
|
// {
|
||||||
sendNotification(tr("Relative apps Not Found!"));
|
// auto json = QJsonDocument::fromJson(result).array();
|
||||||
mutex.unlock();
|
// if (json.empty())
|
||||||
return;
|
// {
|
||||||
}
|
// qDebug() << "相关应用未找到!";
|
||||||
displaySearchApp(json);
|
// sendNotification(tr("Relative apps Not Found!"));
|
||||||
})
|
// mutex.unlock();
|
||||||
.onError([this](QString errorStr)
|
// clearSearchApp();
|
||||||
{
|
// spinner->stop();
|
||||||
qDebug() << "请求出错:" << errorStr;
|
// spinner->hide();
|
||||||
sendNotification(QString(tr("Request Error: %1")).arg(errorStr));
|
// ui->stackedWidget->setCurrentIndex(0);
|
||||||
mutex.unlock();
|
// ui->webEngineView->setUrl(QUrl("https://wayou.github.io/t-rex-runner"));
|
||||||
return;
|
// return;
|
||||||
})
|
// }
|
||||||
.timeout(10 * 1000)
|
// clearSearchApp();
|
||||||
.exec();
|
// displaySearchApp(json); })
|
||||||
|
// .onError([this](QString errorStr)
|
||||||
|
// {
|
||||||
|
// qDebug() << "请求出错:" << errorStr;
|
||||||
|
// sendNotification(QString(tr("Request Error: %1")).arg(errorStr));
|
||||||
|
// mutex.unlock();
|
||||||
|
// return; })
|
||||||
|
// .timeout(10 * 1000)
|
||||||
|
// .exec();
|
||||||
|
|
||||||
|
if (!themeIsDark){
|
||||||
|
ui->webEngineView->setUrl(serverUrl + "store/#/search?keywords=" + text);
|
||||||
|
}else{
|
||||||
|
ui->webEngineView->setUrl(serverUrl + "store/#/darksearch?keywords=" + text);
|
||||||
|
}
|
||||||
|
ui->stackedWidget->setCurrentIndex(0);
|
||||||
|
// spinner->stop();
|
||||||
|
// spinner->hide();
|
||||||
|
ui->stackedWidget->setCurrentIndex(0);
|
||||||
|
mutex.unlock();
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void Widget::closeEvent(QCloseEvent *event)
|
||||||
|
{
|
||||||
|
mutex.unlock();
|
||||||
|
httpClient->deleteLater();
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief 展示搜索的APP信息
|
* @brief 清除搜索的APP信息
|
||||||
*/
|
*/
|
||||||
void Widget::displaySearchApp(QJsonArray array)
|
void Widget::clearSearchApp()
|
||||||
{
|
{
|
||||||
ui->stackedWidget->setCurrentIndex(4);
|
ui->stackedWidget->setCurrentIndex(4);
|
||||||
|
|
||||||
@@ -741,13 +823,20 @@ void Widget::displaySearchApp(QJsonArray array)
|
|||||||
}
|
}
|
||||||
|
|
||||||
main->removeItem(applist_grid);
|
main->removeItem(applist_grid);
|
||||||
spinner->show();
|
}
|
||||||
spinner->start();
|
/**
|
||||||
|
* @brief 展示搜索的APP信息
|
||||||
|
*/
|
||||||
|
void Widget::displaySearchApp(QJsonArray array)
|
||||||
|
{
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
for(int i = 0; i < array.size(); i++)
|
for(int i = 0; i < array.size(); i++)
|
||||||
{
|
{
|
||||||
QJsonObject appInfo = array.at(i).toObject();
|
QJsonObject appInfo = array.at(i).toObject();
|
||||||
AppItem *appItem = new AppItem(this);
|
AppItem *appItem = new AppItem(this);
|
||||||
|
appItem->setAttribute(Qt::WA_DeleteOnClose);
|
||||||
QString url = QString("spk://store/%1/%2")
|
QString url = QString("spk://store/%1/%2")
|
||||||
.arg(appInfo["category_slug"].toString())
|
.arg(appInfo["category_slug"].toString())
|
||||||
.arg(appInfo["pkgname"].toString());
|
.arg(appInfo["pkgname"].toString());
|
||||||
@@ -1026,11 +1115,14 @@ void Widget::on_comboBox_server_currentIndexChanged(const QString &arg1)
|
|||||||
{
|
{
|
||||||
appinfoLoadThread.setServer(arg1); // 服务器信息更新
|
appinfoLoadThread.setServer(arg1); // 服务器信息更新
|
||||||
|
|
||||||
|
const QString updatedInfo = "TRUE";
|
||||||
if(configCanSave)
|
if(configCanSave)
|
||||||
{
|
{
|
||||||
// ui->label_setting1->show();
|
// ui->label_setting1->show();
|
||||||
QSettings *setConfig = new QSettings(QDir::homePath() + "/.config/spark-store/config.ini", QSettings::IniFormat);
|
QSettings *setConfig = new QSettings(QDir::homePath() + "/.config/spark-store/config.ini", QSettings::IniFormat);
|
||||||
setConfig->setValue("server/choose", arg1);
|
setConfig->setValue("server/choose", arg1);
|
||||||
|
setConfig->setValue("server/updated", updatedInfo);
|
||||||
|
setConfig->deleteLater();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1086,77 +1178,13 @@ void Widget::on_pushButton_updateApt_clicked()
|
|||||||
ui->pushButton_updateApt->setEnabled(false);
|
ui->pushButton_updateApt->setEnabled(false);
|
||||||
ui->label_aptserver->setText(tr("Updating, please wait..."));
|
ui->label_aptserver->setText(tr("Updating, please wait..."));
|
||||||
|
|
||||||
std::fstream sourcesList, policy, update;
|
QString storeSpk = "spk://store/tools/spark-store";
|
||||||
QDir tmpdir("/tmp");
|
openUrl(storeSpk);
|
||||||
auto tmpPath = QString::fromUtf8(TMP_PATH).toStdString();
|
ui->label_aptserver->setText(tr(""));
|
||||||
bool unknownError = true;
|
|
||||||
|
|
||||||
tmpdir.mkpath("spark-store");
|
|
||||||
sourcesList.open(tmpPath + "/sparkstore.list", std::ios::out);
|
|
||||||
// 商店已经下架会替换系统库的包,优先级 policy 弃用
|
|
||||||
// policy.open(tmpPath + "/sparkstore", std::ios::out);
|
|
||||||
|
|
||||||
if(sourcesList /*&& policy*/)
|
|
||||||
{
|
|
||||||
auto serverAddr = ui->comboBox_server->currentText();
|
|
||||||
|
|
||||||
sourcesList << "deb [by-hash=force] ";
|
|
||||||
sourcesList << serverAddr.toUtf8().toStdString();
|
|
||||||
sourcesList << " /";
|
|
||||||
sourcesList.close();
|
|
||||||
|
|
||||||
/*
|
|
||||||
* policy << "Package: *\n" << "Pin: origin *" <<
|
|
||||||
* serverAddr.mid(serverAddr.indexOf('.')).toUtf8().toStdString() << "\n" <<
|
|
||||||
* "Pin-Priority: 90"; // 降低星火源的优先级,防止从星火安装已存在的系统包,破坏依赖
|
|
||||||
* policy.close();
|
|
||||||
*/
|
|
||||||
|
|
||||||
update.open(tmpPath + "/update.sh", std::ios::out);
|
|
||||||
if(update)
|
|
||||||
{
|
|
||||||
unknownError = false;
|
|
||||||
update << "#!/bin/sh\n" <<
|
|
||||||
"mv " + tmpPath + "/sparkstore.list /etc/apt/sources.list.d/sparkstore.list && " <<
|
|
||||||
// "mv " + tmpPath + "/sparkstore /etc/apt/preferences.d/sparkstore && " <<
|
|
||||||
"apt update";
|
|
||||||
update.close();
|
|
||||||
|
|
||||||
system(("chmod +x " + tmpPath + "/update.sh").c_str());
|
|
||||||
|
|
||||||
QProcess runupdate;
|
|
||||||
runupdate.start("pkexec", QStringList() << QString::fromStdString(tmpPath + "/update.sh"));
|
|
||||||
runupdate.waitForFinished();
|
|
||||||
QString error = runupdate.readAllStandardError();
|
|
||||||
|
|
||||||
QStringList everyError = error.split("\n");
|
|
||||||
bool haveError = false;
|
|
||||||
for(int i = 0; i < everyError.size(); i++)
|
|
||||||
{
|
|
||||||
if(everyError[i].left(2) == "E:")
|
|
||||||
{
|
|
||||||
haveError = true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if(!haveError)
|
|
||||||
{
|
|
||||||
ui->label_aptserver->setText("deb [by-hash=force] " + ui->comboBox_server->currentText().toUtf8() + " /");
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
ui->label_aptserver->setText(tr("Apt has reported an error. Please use apt update in terminal to locate the problem."));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if(unknownError)
|
|
||||||
{
|
|
||||||
ui->label_aptserver->setText(tr("Unknown error!"));
|
|
||||||
}
|
|
||||||
|
|
||||||
ui->pushButton_updateApt->setEnabled(true);
|
ui->pushButton_updateApt->setEnabled(true);
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Widget::on_pushButton_uninstall_clicked()
|
void Widget::on_pushButton_uninstall_clicked()
|
||||||
@@ -1168,11 +1196,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())
|
||||||
{
|
{
|
||||||
@@ -1208,6 +1236,21 @@ void Widget::on_pushButton_clear_clicked() // 清空临时缓存目录
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void Widget::on_pushButton_clearWebCache_clicked()
|
||||||
|
{
|
||||||
|
QtConcurrent::run([=]()
|
||||||
|
{
|
||||||
|
QString dataLocal = QStandardPaths::writableLocation(QStandardPaths::AppLocalDataLocation);
|
||||||
|
qDebug() << dataLocal;
|
||||||
|
QDir dataDir(dataLocal);
|
||||||
|
dataDir.removeRecursively();
|
||||||
|
dataLocal = QStandardPaths::writableLocation(QStandardPaths::TempLocation);
|
||||||
|
qDebug() << dataLocal;
|
||||||
|
QDir cacheDir(dataLocal);
|
||||||
|
cacheDir.removeRecursively();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
quint64 Widget::dirFileSize(const QString &path)
|
quint64 Widget::dirFileSize(const QString &path)
|
||||||
{
|
{
|
||||||
QDir dir(path);
|
QDir dir(path);
|
||||||
@@ -1308,13 +1351,16 @@ void Widget::on_stackedWidget_currentChanged(int arg1)
|
|||||||
void Widget::on_webEngineView_urlChanged(const QUrl &arg1)
|
void Widget::on_webEngineView_urlChanged(const QUrl &arg1)
|
||||||
{
|
{
|
||||||
//分析出服务器中的分类名称
|
//分析出服务器中的分类名称
|
||||||
QStringList url_ = arg1.path().split("/");
|
QStringList url_ = arg1.path().replace("//", "/").split("/");
|
||||||
QString pname;
|
QString pname;
|
||||||
if(url_.size() > 3)
|
qDebug() << "URL size:" << url_.size();
|
||||||
|
if (url_.size() > 3)
|
||||||
{
|
{
|
||||||
type_name = url_[2];
|
type_name = url_[2];
|
||||||
pname = url_[3];
|
pname = url_[3];
|
||||||
}
|
}
|
||||||
|
qDebug() << "type_name:" << type_name << ";pname" << pname;
|
||||||
|
|
||||||
//如果是app.json就打开详情页
|
//如果是app.json就打开详情页
|
||||||
if(arg1.path().right(8) == "app.json")
|
if(arg1.path().right(8) == "app.json")
|
||||||
{
|
{
|
||||||
@@ -1328,8 +1374,9 @@ void Widget::on_webEngineView_urlChanged(const QUrl &arg1)
|
|||||||
ui->label_appname->clear();
|
ui->label_appname->clear();
|
||||||
ui->pushButton_download->setEnabled(false);
|
ui->pushButton_download->setEnabled(false);
|
||||||
ui->stackedWidget->setCurrentIndex(2);
|
ui->stackedWidget->setCurrentIndex(2);
|
||||||
qDebug() << "https://d.store.deepinos.org.cn/" + type_name + "/" + pname;
|
|
||||||
qDebug() << "链接地址:" << arg1;
|
qDebug() << "程序跳转链接地址:" << arg1;
|
||||||
|
QString url = arg1.toString();
|
||||||
|
|
||||||
/*
|
/*
|
||||||
load.cancel(); // 打开并发加载线程前关闭正在执行的线程
|
load.cancel(); // 打开并发加载线程前关闭正在执行的线程
|
||||||
@@ -1340,7 +1387,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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1377,6 +1424,25 @@ void Widget::on_webEngineView_loadFinished(bool arg1)
|
|||||||
|
|
||||||
void Widget::on_pushButton_update_clicked()
|
void Widget::on_pushButton_update_clicked()
|
||||||
{
|
{
|
||||||
QDesktopServices::openUrl(QUrl("https://www.deepinos.org/"));
|
QString feedbackSpk = "spk://store/chat/store.spark-app.feedback";
|
||||||
|
QFile actionSubmissionClientStatus("/opt/durapps/store.spark-app.feedback");
|
||||||
|
if (actionSubmissionClientStatus.exists())
|
||||||
|
{
|
||||||
|
qDebug() << "反馈器存在";
|
||||||
|
QProcess::startDetached("sh /opt/durapps/store.spark-app.feedback/launch.sh");
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
qDebug() << "反馈器不存在,跳转页面";
|
||||||
|
openUrl(feedbackSpk);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void Widget::onGetUrl(const QString &url)
|
||||||
|
{
|
||||||
|
if(url.left(6)=="spk://")
|
||||||
|
{
|
||||||
|
openUrl(QUrl(url));
|
||||||
|
}
|
||||||
|
activateWindow();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
11
src/widget.h
11
src/widget.h
@@ -43,7 +43,6 @@ class DownloadController;
|
|||||||
namespace AeaQt {
|
namespace AeaQt {
|
||||||
class HttpClient;
|
class HttpClient;
|
||||||
}
|
}
|
||||||
|
|
||||||
class Widget : public DBlurEffectWidget
|
class Widget : public DBlurEffectWidget
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
@@ -65,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();
|
||||||
@@ -82,6 +82,7 @@ private slots:
|
|||||||
void sltAppinfoScreenshot(QPixmap *picture, int index);
|
void sltAppinfoScreenshot(QPixmap *picture, int index);
|
||||||
void sltAppinfoFinish();
|
void sltAppinfoFinish();
|
||||||
|
|
||||||
|
void clearSearchApp(); // 清除搜索的APP信息
|
||||||
void displaySearchApp(QJsonArray array); // 展示搜索的APP信息
|
void displaySearchApp(QJsonArray array); // 展示搜索的APP信息
|
||||||
void downloadIconsFinished(int arraysize); // 当前搜索列表图标是否下载完成
|
void downloadIconsFinished(int arraysize); // 当前搜索列表图标是否下载完成
|
||||||
|
|
||||||
@@ -92,6 +93,7 @@ private slots:
|
|||||||
void on_pushButton_updateApt_clicked();
|
void on_pushButton_updateApt_clicked();
|
||||||
void on_pushButton_uninstall_clicked();
|
void on_pushButton_uninstall_clicked();
|
||||||
void on_pushButton_clear_clicked();
|
void on_pushButton_clear_clicked();
|
||||||
|
void on_pushButton_clearWebCache_clicked();
|
||||||
void on_pushButton_website_clicked();
|
void on_pushButton_website_clicked();
|
||||||
void on_pushButton_clicked();
|
void on_pushButton_clicked();
|
||||||
void on_btn_openDir_clicked();
|
void on_btn_openDir_clicked();
|
||||||
@@ -103,8 +105,12 @@ 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;
|
||||||
|
|
||||||
downloadlist download_list[LIST_MAX];
|
downloadlist download_list[LIST_MAX];
|
||||||
Ui::Widget *ui;
|
Ui::Widget *ui;
|
||||||
@@ -125,8 +131,9 @@ private:
|
|||||||
void initConfig();
|
void initConfig();
|
||||||
void chooseLeftMenu(int index);
|
void chooseLeftMenu(int index);
|
||||||
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);
|
||||||
|
|
||||||
|
|||||||
682
src/widget.ui
682
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">
|
||||||
@@ -51,291 +51,6 @@
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="0" column="1">
|
|
||||||
<widget class="DTitlebar" name="titlebar" native="true">
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>0</width>
|
|
||||||
<height>20</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="0" column="0" rowspan="4">
|
|
||||||
<widget class="QWidget" name="widget_menuList" native="true">
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>150</width>
|
|
||||||
<height>0</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="maximumSize">
|
|
||||||
<size>
|
|
||||||
<width>150</width>
|
|
||||||
<height>16777215</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="font">
|
|
||||||
<font>
|
|
||||||
<pointsize>11</pointsize>
|
|
||||||
</font>
|
|
||||||
</property>
|
|
||||||
<property name="accessibleDescription">
|
|
||||||
<string>background-color:#FFFFFF</string>
|
|
||||||
</property>
|
|
||||||
<property name="styleSheet">
|
|
||||||
<string notr="true"/>
|
|
||||||
</property>
|
|
||||||
<layout class="QGridLayout" name="gridLayout_5">
|
|
||||||
<property name="leftMargin">
|
|
||||||
<number>5</number>
|
|
||||||
</property>
|
|
||||||
<property name="rightMargin">
|
|
||||||
<number>5</number>
|
|
||||||
</property>
|
|
||||||
<item row="1" column="0">
|
|
||||||
<spacer name="verticalSpacer_7">
|
|
||||||
<property name="orientation">
|
|
||||||
<enum>Qt::Vertical</enum>
|
|
||||||
</property>
|
|
||||||
<property name="sizeType">
|
|
||||||
<enum>QSizePolicy::Fixed</enum>
|
|
||||||
</property>
|
|
||||||
<property name="sizeHint" stdset="0">
|
|
||||||
<size>
|
|
||||||
<width>20</width>
|
|
||||||
<height>20</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
</spacer>
|
|
||||||
</item>
|
|
||||||
<item row="5" column="0" colspan="6">
|
|
||||||
<widget class="QPushButton" name="menu_music">
|
|
||||||
<property name="text">
|
|
||||||
<string>Music</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="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">
|
|
||||||
<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="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="12" column="0" colspan="6">
|
|
||||||
<widget class="QPushButton" name="menu_system">
|
|
||||||
<property name="text">
|
|
||||||
<string>Tools</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="10" column="0" colspan="6">
|
|
||||||
<widget class="QPushButton" name="menu_read">
|
|
||||||
<property name="text">
|
|
||||||
<string>Reading</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="9" column="0" colspan="6">
|
|
||||||
<widget class="QPushButton" name="menu_office">
|
|
||||||
<property name="text">
|
|
||||||
<string>Office</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="0" column="3">
|
|
||||||
<widget class="QPushButton" name="pushButton_refresh">
|
|
||||||
<property name="maximumSize">
|
|
||||||
<size>
|
|
||||||
<width>40</width>
|
|
||||||
<height>16777215</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="toolTip">
|
|
||||||
<string>Reload</string>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string/>
|
|
||||||
</property>
|
|
||||||
<property name="icon">
|
|
||||||
<iconset resource="../assets/icons.qrc">
|
|
||||||
<normaloff>:/icons/icons/refresh-page.svg</normaloff>:/icons/icons/refresh-page.svg</iconset>
|
|
||||||
</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="0" column="4">
|
|
||||||
<widget class="QPushButton" name="pushButton_return">
|
|
||||||
<property name="maximumSize">
|
|
||||||
<size>
|
|
||||||
<width>40</width>
|
|
||||||
<height>16777215</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="toolTip">
|
|
||||||
<string>Back to category</string>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string/>
|
|
||||||
</property>
|
|
||||||
<property name="icon">
|
|
||||||
<iconset resource="../assets/icons.qrc">
|
|
||||||
<normaloff>:/icons/icons/category_active.svg</normaloff>:/icons/icons/category_active.svg</iconset>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="17" column="0">
|
|
||||||
<spacer name="verticalSpacer">
|
|
||||||
<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">
|
|
||||||
<string>Beautify</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>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="2" column="0" colspan="6">
|
|
||||||
<widget class="QPushButton" name="menu_main">
|
|
||||||
<property name="styleSheet">
|
|
||||||
<string notr="true">font: 11pt "Zeniq";</string>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>Home</string>
|
|
||||||
</property>
|
|
||||||
<property name="flat">
|
|
||||||
<bool>false</bool>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="16" column="0" colspan="6">
|
|
||||||
<widget class="QPushButton" name="menu_download">
|
|
||||||
<property name="text">
|
|
||||||
<string>Download</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="6" column="0" colspan="6">
|
|
||||||
<widget class="QPushButton" name="menu_video">
|
|
||||||
<property name="text">
|
|
||||||
<string>Video</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="15" column="0" colspan="6">
|
|
||||||
<widget class="QWidget" name="line1_widget" native="true">
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>0</width>
|
|
||||||
<height>1</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="maximumSize">
|
|
||||||
<size>
|
|
||||||
<width>16777215</width>
|
|
||||||
<height>4</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="styleSheet">
|
|
||||||
<string notr="true">background-color:#808080</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="2" column="1">
|
<item row="2" column="1">
|
||||||
<widget class="QStackedWidget" name="stackedWidget">
|
<widget class="QStackedWidget" name="stackedWidget">
|
||||||
<property name="styleSheet">
|
<property name="styleSheet">
|
||||||
@@ -345,7 +60,7 @@
|
|||||||
<number>0</number>
|
<number>0</number>
|
||||||
</property>
|
</property>
|
||||||
<property name="currentIndex">
|
<property name="currentIndex">
|
||||||
<number>2</number>
|
<number>0</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">
|
||||||
@@ -365,19 +80,14 @@
|
|||||||
<number>0</number>
|
<number>0</number>
|
||||||
</property>
|
</property>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QWebEngineView" name="webEngineView">
|
<layout class="QVBoxLayout" name="page1MainLayout">
|
||||||
<property name="contextMenuPolicy">
|
<property name="spacing">
|
||||||
<enum>Qt::DefaultContextMenu</enum>
|
<number>0</number>
|
||||||
</property>
|
</property>
|
||||||
<property name="url">
|
<item>
|
||||||
<url>
|
<widget class="WebEngineView" name="webEngineView" native="true"/>
|
||||||
<string>about:blank</string>
|
</item>
|
||||||
</url>
|
</layout>
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="QWidget" name="webfoot" native="true"/>
|
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
@@ -489,8 +199,8 @@
|
|||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>903</width>
|
<width>889</width>
|
||||||
<height>849</height>
|
<height>853</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QVBoxLayout" name="verticalLayout_17">
|
<layout class="QVBoxLayout" name="verticalLayout_17">
|
||||||
@@ -842,7 +552,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 +571,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 +703,8 @@
|
|||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>869</width>
|
<width>851</width>
|
||||||
<height>325</height>
|
<height>324</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_4">
|
<layout class="QHBoxLayout" name="horizontalLayout_4">
|
||||||
@@ -1123,8 +833,8 @@
|
|||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>738</width>
|
<width>743</width>
|
||||||
<height>886</height>
|
<height>839</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QVBoxLayout" name="verticalLayout_23">
|
<layout class="QVBoxLayout" name="verticalLayout_23">
|
||||||
@@ -1220,7 +930,7 @@
|
|||||||
<string notr="true">color:#808080</string>
|
<string notr="true">color:#808080</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string><html><head/><body><p>The role of the source server is to ensure that the software is updated, and supports the use of the apt tool to get the software. We usually prefer that you use the first line as the update source, which is generally the most stable. </p></body></html></string>
|
<string><html><head/><body><p>Check update for Spark Store. </p></body></html></string>
|
||||||
</property>
|
</property>
|
||||||
<property name="wordWrap">
|
<property name="wordWrap">
|
||||||
<bool>true</bool>
|
<bool>true</bool>
|
||||||
@@ -1237,7 +947,7 @@
|
|||||||
<item row="0" column="0">
|
<item row="0" column="0">
|
||||||
<widget class="QLabel" name="label_6">
|
<widget class="QLabel" name="label_6">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Source Server</string>
|
<string>Spark Store Update</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
@@ -1285,7 +995,31 @@
|
|||||||
<item>
|
<item>
|
||||||
<widget class="QWidget" name="widget_10" native="true">
|
<widget class="QWidget" name="widget_10" native="true">
|
||||||
<layout class="QGridLayout" name="gridLayout_4">
|
<layout class="QGridLayout" name="gridLayout_4">
|
||||||
<item row="0" column="3">
|
<item row="2" column="0" colspan="5">
|
||||||
|
<widget class="QLabel" name="label_12">
|
||||||
|
<property name="styleSheet">
|
||||||
|
<string notr="true">color:#808080</string>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>Since the dictionary is at /tmp,It would be cleaned automatically when system reboot.</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="1" column="1">
|
||||||
|
<widget class="QLabel" name="tmp_size_ui">
|
||||||
|
<property name="text">
|
||||||
|
<string>0B</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="0" column="0" colspan="2">
|
||||||
|
<widget class="QLabel" name="label_11">
|
||||||
|
<property name="text">
|
||||||
|
<string>Location:/tmp/spark-store</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="0" column="4">
|
||||||
<spacer name="horizontalSpacer_5">
|
<spacer name="horizontalSpacer_5">
|
||||||
<property name="orientation">
|
<property name="orientation">
|
||||||
<enum>Qt::Horizontal</enum>
|
<enum>Qt::Horizontal</enum>
|
||||||
@@ -1305,16 +1039,6 @@
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="2" column="0" colspan="4">
|
|
||||||
<widget class="QLabel" name="label_12">
|
|
||||||
<property name="styleSheet">
|
|
||||||
<string notr="true">color:#808080</string>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>Since the dictionary is at /tmp,It would be cleaned automatically when system reboot.</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="1" column="0">
|
<item row="1" column="0">
|
||||||
<widget class="QLabel" name="label_13">
|
<widget class="QLabel" name="label_13">
|
||||||
<property name="maximumSize">
|
<property name="maximumSize">
|
||||||
@@ -1328,17 +1052,10 @@
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="1" column="1">
|
<item row="0" column="3">
|
||||||
<widget class="QLabel" name="tmp_size_ui">
|
<widget class="QPushButton" name="pushButton_clearWebCache">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>0B</string>
|
<string>Clear Web Cache</string>
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="0" column="0" colspan="2">
|
|
||||||
<widget class="QLabel" name="label_11">
|
|
||||||
<property name="text">
|
|
||||||
<string>Location:/tmp/spark-store</string>
|
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
@@ -1366,7 +1083,7 @@
|
|||||||
<item>
|
<item>
|
||||||
<widget class="QLabel" name="label_5">
|
<widget class="QLabel" name="label_5">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string><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></string>
|
<string><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>Connect us on Spark IM: https://chat.shenmo.tech<br/></p></body></html></string>
|
||||||
</property>
|
</property>
|
||||||
<property name="wordWrap">
|
<property name="wordWrap">
|
||||||
<bool>true</bool>
|
<bool>true</bool>
|
||||||
@@ -1439,14 +1156,301 @@
|
|||||||
</widget>
|
</widget>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
<item row="0" column="0" rowspan="4">
|
||||||
|
<widget class="QWidget" name="widget_menuList" native="true">
|
||||||
|
<property name="minimumSize">
|
||||||
|
<size>
|
||||||
|
<width>150</width>
|
||||||
|
<height>0</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="maximumSize">
|
||||||
|
<size>
|
||||||
|
<width>150</width>
|
||||||
|
<height>16777215</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="font">
|
||||||
|
<font>
|
||||||
|
<pointsize>11</pointsize>
|
||||||
|
</font>
|
||||||
|
</property>
|
||||||
|
<property name="accessibleDescription">
|
||||||
|
<string>background-color:#FFFFFF</string>
|
||||||
|
</property>
|
||||||
|
<property name="styleSheet">
|
||||||
|
<string notr="true"/>
|
||||||
|
</property>
|
||||||
|
<layout class="QGridLayout" name="gridLayout_5">
|
||||||
|
<property name="leftMargin">
|
||||||
|
<number>5</number>
|
||||||
|
</property>
|
||||||
|
<property name="rightMargin">
|
||||||
|
<number>5</number>
|
||||||
|
</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">
|
||||||
|
<spacer name="verticalSpacer_7">
|
||||||
|
<property name="orientation">
|
||||||
|
<enum>Qt::Vertical</enum>
|
||||||
|
</property>
|
||||||
|
<property name="sizeType">
|
||||||
|
<enum>QSizePolicy::Fixed</enum>
|
||||||
|
</property>
|
||||||
|
<property name="sizeHint" stdset="0">
|
||||||
|
<size>
|
||||||
|
<width>20</width>
|
||||||
|
<height>20</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
</spacer>
|
||||||
|
</item>
|
||||||
|
<item row="3" column="0" colspan="6">
|
||||||
|
<widget class="QPushButton" name="menu_network">
|
||||||
|
<property name="text">
|
||||||
|
<string>Network</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="18" column="0">
|
||||||
|
<spacer name="verticalSpacer">
|
||||||
|
<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="8" column="0" colspan="6">
|
||||||
|
<widget class="QPushButton" name="menu_game">
|
||||||
|
<property name="text">
|
||||||
|
<string>Games</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="9" column="0" colspan="6">
|
||||||
|
<widget class="QPushButton" name="menu_office">
|
||||||
|
<property name="text">
|
||||||
|
<string>Office</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</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">
|
||||||
|
<widget class="QPushButton" name="pushButton_refresh">
|
||||||
|
<property name="maximumSize">
|
||||||
|
<size>
|
||||||
|
<width>40</width>
|
||||||
|
<height>16777215</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="toolTip">
|
||||||
|
<string>Reload</string>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string/>
|
||||||
|
</property>
|
||||||
|
<property name="icon">
|
||||||
|
<iconset resource="../assets/icons.qrc">
|
||||||
|
<normaloff>:/icons/icons/refresh-page.svg</normaloff>:/icons/icons/refresh-page.svg</iconset>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="6" column="0" colspan="6">
|
||||||
|
<widget class="QPushButton" name="menu_video">
|
||||||
|
<property name="text">
|
||||||
|
<string>Video</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="0" column="4">
|
||||||
|
<widget class="QPushButton" name="pushButton_return">
|
||||||
|
<property name="maximumSize">
|
||||||
|
<size>
|
||||||
|
<width>40</width>
|
||||||
|
<height>16777215</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="toolTip">
|
||||||
|
<string>Back to category</string>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string/>
|
||||||
|
</property>
|
||||||
|
<property name="icon">
|
||||||
|
<iconset resource="../assets/icons.qrc">
|
||||||
|
<normaloff>:/icons/icons/category_active.svg</normaloff>:/icons/icons/category_active.svg</iconset>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="12" column="0" colspan="6">
|
||||||
|
<widget class="QPushButton" name="menu_system">
|
||||||
|
<property name="text">
|
||||||
|
<string>Tools</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="2" column="0" colspan="6">
|
||||||
|
<widget class="QPushButton" name="menu_main">
|
||||||
|
<property name="styleSheet">
|
||||||
|
<string notr="true">font: 11pt "Zeniq";</string>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>Home</string>
|
||||||
|
</property>
|
||||||
|
<property name="flat">
|
||||||
|
<bool>false</bool>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="10" column="0" colspan="6">
|
||||||
|
<widget class="QPushButton" name="menu_read">
|
||||||
|
<property name="text">
|
||||||
|
<string>Reading</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="14" column="0" colspan="6">
|
||||||
|
<widget class="QPushButton" name="menu_other">
|
||||||
|
<property name="text">
|
||||||
|
<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>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="15" column="0" colspan="6">
|
||||||
|
<widget class="QWidget" name="line1_widget" native="true">
|
||||||
|
<property name="minimumSize">
|
||||||
|
<size>
|
||||||
|
<width>0</width>
|
||||||
|
<height>1</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="maximumSize">
|
||||||
|
<size>
|
||||||
|
<width>16777215</width>
|
||||||
|
<height>4</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="styleSheet">
|
||||||
|
<string notr="true">background-color:#808080</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</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>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="0" column="1">
|
||||||
|
<widget class="DTitlebar" name="titlebar" native="true">
|
||||||
|
<property name="minimumSize">
|
||||||
|
<size>
|
||||||
|
<width>0</width>
|
||||||
|
<height>20</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
<customwidgets>
|
<customwidgets>
|
||||||
<customwidget>
|
|
||||||
<class>QWebEngineView</class>
|
|
||||||
<extends>QWidget</extends>
|
|
||||||
<header location="global">QtWebEngineWidgets/QWebEngineView</header>
|
|
||||||
</customwidget>
|
|
||||||
<customwidget>
|
<customwidget>
|
||||||
<class>image_show</class>
|
<class>image_show</class>
|
||||||
<extends>QWidget</extends>
|
<extends>QWidget</extends>
|
||||||
@@ -1465,6 +1469,12 @@
|
|||||||
<header location="global">progressload.h</header>
|
<header location="global">progressload.h</header>
|
||||||
<container>1</container>
|
<container>1</container>
|
||||||
</customwidget>
|
</customwidget>
|
||||||
|
<customwidget>
|
||||||
|
<class>WebEngineView</class>
|
||||||
|
<extends>QWidget</extends>
|
||||||
|
<header location="global">webengine/webengineview.h</header>
|
||||||
|
<container>1</container>
|
||||||
|
</customwidget>
|
||||||
</customwidgets>
|
</customwidgets>
|
||||||
<resources>
|
<resources>
|
||||||
<include location="../assets/icons.qrc"/>
|
<include location="../assets/icons.qrc"/>
|
||||||
|
|||||||
@@ -13,8 +13,29 @@ void SpkAppInfoLoaderThread::run()
|
|||||||
emit requestResetUi();
|
emit requestResetUi();
|
||||||
|
|
||||||
httpClient = new AeaQt::HttpClient;
|
httpClient = new AeaQt::HttpClient;
|
||||||
|
QString oriSeverUrl = "https://d.store.deepinos.org.cn";
|
||||||
|
QString cdnSeverUrl = "https://cdn.d.store.deepinos.org.cn";
|
||||||
|
|
||||||
httpClient->get(targetUrl.toString())
|
QString downloadTimesUrl = targetUrl.toString();
|
||||||
|
downloadTimesUrl = downloadTimesUrl.replace(oriSeverUrl, cdnSeverUrl);
|
||||||
|
downloadTimesUrl = downloadTimesUrl.replace("app.json", "download-times.txt");
|
||||||
|
httpClient->get(downloadTimesUrl)
|
||||||
|
.onResponse([this](QString downloadTimesFeedback)
|
||||||
|
{
|
||||||
|
qDebug() << "请求应用下载量信息 " << downloadTimesFeedback;
|
||||||
|
this->downloadTimes = downloadTimesFeedback.replace("\n","");
|
||||||
|
})
|
||||||
|
.onError([this](QString errorStr)
|
||||||
|
{
|
||||||
|
qDebug() << "请求下载量失败:" << errorStr;
|
||||||
|
this->downloadTimes = "0";
|
||||||
|
})
|
||||||
|
.block()
|
||||||
|
.timeout(3*1000)
|
||||||
|
.exec();
|
||||||
|
|
||||||
|
|
||||||
|
httpClient->get(targetUrl.toString().replace(oriSeverUrl, cdnSeverUrl))
|
||||||
.header("content-type", "application/json")
|
.header("content-type", "application/json")
|
||||||
.onResponse([this](QByteArray json_array)
|
.onResponse([this](QByteArray json_array)
|
||||||
{
|
{
|
||||||
@@ -29,8 +50,12 @@ void SpkAppInfoLoaderThread::run()
|
|||||||
|
|
||||||
QString deburl = serverUrl;
|
QString deburl = serverUrl;
|
||||||
deburl = deburl.left(urladdress.length() - 1);
|
deburl = deburl.left(urladdress.length() - 1);
|
||||||
urladdress = "https://d.store.deepinos.org.cn/"; // 使用图片专用服务器请保留这行,删除后将使用源服务器
|
|
||||||
urladdress = urladdress.left(urladdress.length() - 1);
|
QStringList url_ = targetUrl.toString().replace("//", "/").split("/");
|
||||||
|
urladdress = "https://" + url_[1];
|
||||||
|
// 使用 cdn 服务器
|
||||||
|
urladdress = "https://cdn.d.store.deepinos.org.cn"; // 使用图片专用服务器请保留这行,删除后将使用源服务器
|
||||||
|
|
||||||
|
|
||||||
for(int i = 3; i < downloadurl.size(); i++)
|
for(int i = 3; i < downloadurl.size(); i++)
|
||||||
{
|
{
|
||||||
@@ -60,13 +85,14 @@ void SpkAppInfoLoaderThread::run()
|
|||||||
}
|
}
|
||||||
details += tr("Contributor: ") + json["Contributor"].toString() + "\n";
|
details += tr("Contributor: ") + json["Contributor"].toString() + "\n";
|
||||||
details += tr("Update Time: ") + json["Update"].toString() + "\n";
|
details += tr("Update Time: ") + json["Update"].toString() + "\n";
|
||||||
details += tr("Installed Size: ") + json["Size"].toString() + "\n";
|
details += tr("Installed Size: ") + json["Size"].toString() + "\n\n";
|
||||||
|
details += tr("Download Times: ") + this->downloadTimes + "\n";
|
||||||
more = json["More"].toString();
|
more = json["More"].toString();
|
||||||
|
|
||||||
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)
|
||||||
{
|
{
|
||||||
@@ -74,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;
|
||||||
|
|||||||
@@ -23,6 +23,7 @@ protected:
|
|||||||
private:
|
private:
|
||||||
QUrl targetUrl;
|
QUrl targetUrl;
|
||||||
QString serverUrl;
|
QString serverUrl;
|
||||||
|
QString downloadTimes;
|
||||||
bool finishedDownload = false;
|
bool finishedDownload = false;
|
||||||
int downloaderRetval = 0;
|
int downloaderRetval = 0;
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
646
tool/apt-fast/ss-apt-fast
Executable file
646
tool/apt-fast/ss-apt-fast
Executable file
@@ -0,0 +1,646 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
#
|
||||||
|
# apt-fast v1.9
|
||||||
|
# Use this just like aptitude or apt-get for faster package downloading.
|
||||||
|
#
|
||||||
|
# Copyright: 2008-2012 Matt Parnell, http://www.mattparnell.com
|
||||||
|
# Improvements, maintenance, revisions - 2012, 2017-2018 Dominique Lasserre
|
||||||
|
#
|
||||||
|
# You may distribute this file under the terms of the GNU General
|
||||||
|
# Public License as published by the Free Software Foundation; either
|
||||||
|
# version 3 of the License, or (at your option) any later version.
|
||||||
|
#
|
||||||
|
[ -n "$DEBUG" ] && set -xv
|
||||||
|
|
||||||
|
# Print colored messages.
|
||||||
|
# Usage: msg "message text" "message type" "optional: err"
|
||||||
|
# Message types are 'normal', 'hint' or 'warning'. Warnings and messages with a
|
||||||
|
# third argument are piped to stderr.
|
||||||
|
msg(){
|
||||||
|
msg_options=()
|
||||||
|
case "$2" in
|
||||||
|
normal) beginColor="$cGreen";;
|
||||||
|
hint) beginColor="$cBlue";;
|
||||||
|
warning) beginColor="$cRed";;
|
||||||
|
question) beginColor="$cRed"; msg_options=(-n);;
|
||||||
|
*) beginColor= ;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
if [ -z "$3" ] && [ "$2" != "warning" ]; then
|
||||||
|
echo -e "${msg_options[@]}" "${aptfast_prefix}${beginColor}$1${endColor}"
|
||||||
|
else
|
||||||
|
echo -e "${msg_options[@]}" "${aptfast_prefix}${beginColor}$1${endColor}" >&2
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
# Search for known options and decide if root privileges are needed.
|
||||||
|
root=1 # default value: we need root privileges
|
||||||
|
option=
|
||||||
|
for argument in "$@"; do
|
||||||
|
case "$argument" in
|
||||||
|
upgrade | full-upgrade | install | dist-upgrade | build-dep)
|
||||||
|
option="install"
|
||||||
|
;;
|
||||||
|
clean | autoclean)
|
||||||
|
option="clean"
|
||||||
|
;;
|
||||||
|
download)
|
||||||
|
option="download"
|
||||||
|
root=0
|
||||||
|
;;
|
||||||
|
source)
|
||||||
|
option="source"
|
||||||
|
root=0
|
||||||
|
;;
|
||||||
|
changelog)
|
||||||
|
root=0
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
|
||||||
|
# To handle priority of options correctly (environment over config file vars)
|
||||||
|
# we need to preserve all interesting env variables. As this wouldn't be
|
||||||
|
# difficult enough we have to preserve complete env vars (especially if value
|
||||||
|
# ist set (even empty) or not) when changing context (sudo)...
|
||||||
|
# Set a 'random' string to all unset variables.
|
||||||
|
TMP_RANDOM="13979853562951413"
|
||||||
|
TMP_LCK_FILE="${LCK_FILE-${TMP_RANDOM}}"
|
||||||
|
TMP_DOWNLOADBEFORE="${DOWNLOADBEFORE-${TMP_RANDOM}}"
|
||||||
|
TMP__APTMGR="${_APTMGR-${TMP_RANDOM}}"
|
||||||
|
TMP_APTCACHE="${APTCACHE-${TMP_RANDOM}}"
|
||||||
|
TMP_DLDIR="${DLDIR-${TMP_RANDOM}}"
|
||||||
|
TMP_DLLIST="${DLLIST-${TMP_RANDOM}}"
|
||||||
|
TMP_LISTDIR="${LISTDIR-${TMP_RANDOM}}"
|
||||||
|
TMP__MAXNUM="${MAXNUM-${TMP_RANDOM}}"
|
||||||
|
TMP__MAXCONPERSRV="${MAXCONPERSRV-${TMP_RANDOM}}"
|
||||||
|
TMP__SPLITCON="${SPLITCON-${TMP_RANDOM}}"
|
||||||
|
TMP__MINSPLITSZ=${MINSPLITSZ-${TMP_RANDOM}}
|
||||||
|
TMP__PIECEALGO=${PIECEALGO-${TMP_RANDOM}}
|
||||||
|
TMP_aptfast_prefix="${aptfast_prefix-${TMP_RANDOM}}"
|
||||||
|
TMP_APT_FAST_TIMEOUT="${APT_FAST_TIMEOUT-${TMP_RANDOM}}"
|
||||||
|
TMP_VERBOSE_OUTPUT="${VERBOSE_OUTPUT-${TMP_RANDOM}}"
|
||||||
|
TMP_ftp_proxy="${ftp_proxy-${TMP_RANDOM}}"
|
||||||
|
TMP_http_proxy="${http_proxy-${TMP_RANDOM}}"
|
||||||
|
TMP_https_proxy="${https_proxy-${TMP_RANDOM}}"
|
||||||
|
|
||||||
|
# Check for proper privileges.
|
||||||
|
# Call explicitly with environment variables to get them into root conext.
|
||||||
|
if [ "$root" = 1 ] && [ "$UID" != 0 ]; then
|
||||||
|
exec sudo DEBUG="$DEBUG" \
|
||||||
|
LCK_FILE="$TMP_LCK_FILE" \
|
||||||
|
DOWNLOADBEFORE="$TMP_DOWNLOADBEFORE" \
|
||||||
|
_APTMGR="$TMP__APTMGR" \
|
||||||
|
APTCACHE="$TMP_APTCACHE" \
|
||||||
|
DLDIR="$TMP_DLDIR" \
|
||||||
|
DLLIST="$TMP_DLLIST" \
|
||||||
|
LISTDIR="$TMP_LISTDIR" \
|
||||||
|
_MAXNUM="$TMP__MAXNUM" \
|
||||||
|
_MAXCONPERSRV="$TMP__MAXCONPERSRV" \
|
||||||
|
_SPLITCON="$TMP__SPLITCON" \
|
||||||
|
_MINSPLITSZ="$TMP__MINSPLITSZ" \
|
||||||
|
_PIECEALGO="$TMP__PIECEALGO" \
|
||||||
|
aptfast_prefix="$TMP_aptfast_prefix" \
|
||||||
|
APT_FAST_TIMEOUT="$TMP_APT_FAST_TIMEOUT" \
|
||||||
|
VERBOSE_OUTPUT="$TMP_VERBOSE_OUTPUT" \
|
||||||
|
ftp_proxy="$TMP_ftp_proxy" \
|
||||||
|
http_proxy="$TMP_http_proxy" \
|
||||||
|
https_proxy="$TMP_https_proxy" \
|
||||||
|
"$0" "$@"
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
# Define lockfile.
|
||||||
|
# Use /tmp as directory because everybody (not only root) has to have write
|
||||||
|
# permissions.
|
||||||
|
# We need lock for non-root commands too, because we only have one download
|
||||||
|
# list file.
|
||||||
|
LCK_FILE="/tmp/apt-fast"
|
||||||
|
LCK_FD=99
|
||||||
|
|
||||||
|
# Set default package manager, APT cache, temporary download dir,
|
||||||
|
# temporary download list file, and maximal parallel downloads
|
||||||
|
_APTMGR=apt-get
|
||||||
|
eval "$(apt-config shell APTCACHE Dir::Cache::archives/d)"
|
||||||
|
# Check if APT config option Dir::Cache::archives::apt-fast-partial is set.
|
||||||
|
eval "$(apt-config shell apt_fast_partial Dir::Cache::archives::apt-fast-partial/d)"
|
||||||
|
if [ -z "$apt_fast_partial" ]; then
|
||||||
|
eval "$(apt-config -o Dir::Cache::archives::apt-fast-partial=apt-fast shell DLDIR Dir::Cache::archives::apt-fast-partial/d)"
|
||||||
|
else
|
||||||
|
eval "$(apt-config shell DLDIR Dir::Cache::archives::apt-fast-partial/d)"
|
||||||
|
fi
|
||||||
|
# Currently not needed.
|
||||||
|
eval "$(apt-config shell LISTDIR Dir::State::lists/d)"
|
||||||
|
DLLIST="/tmp/apt-fast.list"
|
||||||
|
_MAXNUM=5
|
||||||
|
_MAXCONPERSRV=10
|
||||||
|
_SPLITCON=8
|
||||||
|
_MINSPLITSZ="1M"
|
||||||
|
_PIECEALGO="default"
|
||||||
|
|
||||||
|
# Prefix in front of apt-fast output:
|
||||||
|
aptfast_prefix=
|
||||||
|
# aptfast_prefix="$(date '+%b %_d %T.%N') apt-fast: "
|
||||||
|
|
||||||
|
# Set color variables.
|
||||||
|
cGreen='\e[0;32m'
|
||||||
|
cRed='\e[0;31m'
|
||||||
|
cBlue='\e[0;34m'
|
||||||
|
endColor='\e[0m'
|
||||||
|
|
||||||
|
# Set timout value for apt-fast download confirmation dialog.
|
||||||
|
# Value is in seconds.
|
||||||
|
APT_FAST_TIMEOUT=60
|
||||||
|
|
||||||
|
# Ask for download confirmation if unset
|
||||||
|
DOWNLOADBEFORE=
|
||||||
|
|
||||||
|
# Formatted package list in download confirmation if unset
|
||||||
|
VERBOSE_OUTPUT=
|
||||||
|
|
||||||
|
# Download command.
|
||||||
|
_DOWNLOADER='aria2c --no-conf -c -j ${_MAXNUM} -x ${_MAXCONPERSRV} -s ${_SPLITCON} -i ${DLLIST} --min-split-size=${_MINSPLITSZ} --stream-piece-selector=${_PIECEALGO} --connect-timeout=600 --timeout=600 -m0'
|
||||||
|
|
||||||
|
# Load config file.
|
||||||
|
CONFFILE="/etc/apt-fast.conf"
|
||||||
|
if [ -e "$CONFFILE" ]; then
|
||||||
|
source "$CONFFILE"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# no proxy as default
|
||||||
|
ftp_proxy=
|
||||||
|
http_proxy=
|
||||||
|
https_proxy=
|
||||||
|
|
||||||
|
# Now overwrite with preserved values if values were set before (compare with
|
||||||
|
# 'random' string).
|
||||||
|
[ "$TMP_LCK_FILE" = "$TMP_RANDOM" ] || LCK_FILE="$TMP_LCK_FILE"
|
||||||
|
[ "$TMP_DOWNLOADBEFORE" = "$TMP_RANDOM" ] || DOWNLOADBEFORE="$TMP_DOWNLOADBEFORE"
|
||||||
|
[ "$TMP__APTMGR" = "$TMP_RANDOM" ] || _APTMGR="$TMP__APTMGR"
|
||||||
|
[ "$TMP_APTCACHE" = "$TMP_RANDOM" ] || APTCACHE="$TMP_APTCACHE"
|
||||||
|
[ "$TMP_DLDIR" = "$TMP_RANDOM" ] || DLDIR="$TMP_DLDIR"
|
||||||
|
[ "$TMP_DLLIST" = "$TMP_RANDOM" ] || DLLIST="$TMP_DLLIST"
|
||||||
|
[ "$TMP_LISTDIR" = "$TMP_RANDOM" ] || LISTDIR="$TMP_LISTDIR"
|
||||||
|
[ "$TMP__MAXNUM" = "$TMP_RANDOM" ] || _MAXNUM="$TMP__MAXNUM"
|
||||||
|
[ "$TMP__MAXCONPERSRV" = "$TMP_RANDOM" ] || _MAXCONPERSRV="$TMP__MAXCONPERSRV"
|
||||||
|
[ "$TMP__SPLITCON" = "$TMP_RANDOM" ] || _SPLITCON="$TMP__SPLITCON"
|
||||||
|
[ "$TMP__MINSPLITSZ" = "$TMP_RANDOM" ] || _MINSPLITSZ="$TMP__MINSPLITSZ"
|
||||||
|
[ "$TMP__PIECEALGO" = "$TMP_RANDOM" ] || _PIECEALGO="$TMP__PIECEALGO"
|
||||||
|
[ "$TMP_aptfast_prefix" = "$TMP_RANDOM" ] || aptfast_prefix="$TMP_aptfast_prefix"
|
||||||
|
[ "$TMP_APT_FAST_TIMEOUT" = "$TMP_RANDOM" ] || APT_FAST_TIMEOUT="$TMP_APT_FAST_TIMEOUT"
|
||||||
|
[ "$TMP_VERBOSE_OUTPUT" = "$TMP_RANDOM" ] || VERBOSE_OUTPUT="$TMP_VERBOSE_OUTPUT"
|
||||||
|
[ "$TMP_ftp_proxy" = "$TMP_RANDOM" ] || ftp_proxy="$TMP_ftp_proxy"
|
||||||
|
[ "$TMP_http_proxy" = "$TMP_RANDOM" ] || http_proxy="$TMP_http_proxy"
|
||||||
|
[ "$TMP_https_proxy" = "$TMP_RANDOM" ] || https_proxy="$TMP_https_proxy"
|
||||||
|
|
||||||
|
|
||||||
|
# Disable colors if not executed in terminal.
|
||||||
|
if [ ! -t 1 ]; then
|
||||||
|
cGreen=
|
||||||
|
cRed=
|
||||||
|
cBlue=
|
||||||
|
endColor=
|
||||||
|
#FIXME: Time not updated.
|
||||||
|
[ -z "$aptfast_prefix" ] && aptfast_prefix="[apt-fast $(date +"%T")]"
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
msg_already_running()
|
||||||
|
{
|
||||||
|
msg "apt-fast already running!" "warning"
|
||||||
|
msg "Verify that all apt-fast processes are finished then remove $LCK_FILE.lock and try again." "hint"
|
||||||
|
}
|
||||||
|
|
||||||
|
# Check if a lock file exists.
|
||||||
|
if [ -f "$LCK_FILE.lock" ]; then
|
||||||
|
msg_already_running
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
# create the lock file and lock it, die on failure
|
||||||
|
_create_lock()
|
||||||
|
{
|
||||||
|
eval "exec $LCK_FD>\"$LCK_FILE.lock\""
|
||||||
|
|
||||||
|
trap "cleanup_aptfast; exit_cleanup_state" EXIT
|
||||||
|
trap "cleanup_aptfast; exit 1" INT TERM
|
||||||
|
|
||||||
|
flock -n $LCK_FD || { msg_already_running; exit 1; }
|
||||||
|
}
|
||||||
|
|
||||||
|
# unlock and remove the lock file
|
||||||
|
_remove_lock()
|
||||||
|
{
|
||||||
|
flock -u "$LCK_FD" 2>/dev/null
|
||||||
|
rm -f "$LCK_FILE.lock"
|
||||||
|
}
|
||||||
|
|
||||||
|
# Move download file away so missing permissions won't stop usage.
|
||||||
|
CLEANUP_STATE=0
|
||||||
|
cleanup_dllist()
|
||||||
|
{
|
||||||
|
if [ -f "$DLLIST" ]
|
||||||
|
then
|
||||||
|
if ! mv -- "$DLLIST{,.old}" 2>/dev/null
|
||||||
|
then
|
||||||
|
if ! rm -f -- "$DLLIST" 2>/dev/null
|
||||||
|
then
|
||||||
|
msg "Could not clean up download list file." "warning"
|
||||||
|
CLEANUP_STATE=1
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
cleanup_aptfast()
|
||||||
|
{
|
||||||
|
[ "$CLEANUP_STATE" -eq 0 ] && CLEANUP_STATE=$?
|
||||||
|
cleanup_dllist
|
||||||
|
_remove_lock
|
||||||
|
}
|
||||||
|
|
||||||
|
exit_cleanup_state()
|
||||||
|
{
|
||||||
|
exit $CLEANUP_STATE
|
||||||
|
}
|
||||||
|
|
||||||
|
# decode url string
|
||||||
|
# translates %xx but must not convert '+' in spaces
|
||||||
|
urldecode()
|
||||||
|
{
|
||||||
|
printf '%b' "${1//%/\\x}"
|
||||||
|
}
|
||||||
|
|
||||||
|
# Check if mirrors are available. And if so add all mirrors to download list.
|
||||||
|
get_mirrors(){
|
||||||
|
# Check all mirror lists.
|
||||||
|
for mirrorstr in "${MIRRORS[@]}"; do
|
||||||
|
# Build mirrors array from comma separated string.
|
||||||
|
IFS=", " read -r -a mirrors <<< "$mirrorstr"
|
||||||
|
# Check for all mirrors if URI of $1 is from mirror. If so add all other
|
||||||
|
# mirrors to (resmirror) list and break all loops.
|
||||||
|
for mirror in "${mirrors[@]}"; do
|
||||||
|
# Real expension.
|
||||||
|
if [[ "$1" == "$mirror"* ]]; then
|
||||||
|
filepath=${1#${mirror}}
|
||||||
|
# Build list for aria download list.
|
||||||
|
list="${mirrors[*]}"
|
||||||
|
echo -e "${list// /${filepath}\\t}$filepath\n"
|
||||||
|
return 0
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
done
|
||||||
|
# No other mirrors found.
|
||||||
|
echo "$1"
|
||||||
|
}
|
||||||
|
|
||||||
|
# Globals to save package name, version, size and overall size.
|
||||||
|
DOWNLOAD_DISPLAY=
|
||||||
|
DOWNLOAD_SIZE=0
|
||||||
|
# Get the package URLs.
|
||||||
|
get_uris(){
|
||||||
|
if [ ! -d "$(dirname "$DLLIST")" ]
|
||||||
|
then
|
||||||
|
if ! mkdir -p -- "$(dirname "$DLLIST")"
|
||||||
|
then
|
||||||
|
msg "Could not create download file directory." "warning"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
elif [ -f "$DLLIST" ]; then
|
||||||
|
if ! rm -f -- "$DLLIST" 2>/dev/null && ! touch -- "$DLLIST" 2>/dev/null
|
||||||
|
then
|
||||||
|
msg "Unable to write to download file. Try restarting with root permissions or run 'apt-fast clean' first." "warning"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Add header to overwrite file.
|
||||||
|
echo "# apt-fast mirror list: $(date)" > "$DLLIST"
|
||||||
|
#NOTE: aptitude doesn't have this functionality, so we use apt-get to get
|
||||||
|
# package URIs.
|
||||||
|
case "$_APTMGR" in
|
||||||
|
apt|apt-get) uri_mgr=$_APTMGR;;
|
||||||
|
*) uri_mgr=apt-get;;
|
||||||
|
esac
|
||||||
|
uris_full="$("$uri_mgr" "${APT_SCRIPT_WARNING[@]}" -y --print-uris "$@")"
|
||||||
|
uris_full_ret="$?"
|
||||||
|
if [ "$uris_full_ret" -ne 0 ]
|
||||||
|
then
|
||||||
|
msg "Package manager quit with exit code." "warning"
|
||||||
|
exit "$uris_full_ret"
|
||||||
|
fi
|
||||||
|
while read -r pkg_uri_info
|
||||||
|
do
|
||||||
|
[ -z "$pkg_uri_info" ] && continue
|
||||||
|
## --print-uris format is:
|
||||||
|
# 'fileurl' filename filesize checksum_hint:filechecksum
|
||||||
|
uri="$(echo "$pkg_uri_info" | cut -d' ' -f1 | tr -d "'")"
|
||||||
|
filename="$(echo "$pkg_uri_info" | cut -d' ' -f2)"
|
||||||
|
filesize="$(echo "$pkg_uri_info" | cut -d' ' -f3)"
|
||||||
|
checksum_string="$(echo "$pkg_uri_info" | cut -d' ' -f4)"
|
||||||
|
hash_algo="$(echo "$checksum_string" | cut -d':' -f1)"
|
||||||
|
checksum="$(echo "$checksum_string" | cut -d':' -f2)"
|
||||||
|
|
||||||
|
filename_decoded="$(urldecode "$filename")"
|
||||||
|
DOWNLOAD_DISPLAY="${DOWNLOAD_DISPLAY}$(echo "$filename_decoded" | cut -d'_' -f1)"
|
||||||
|
DOWNLOAD_DISPLAY="${DOWNLOAD_DISPLAY} $(echo "$filename_decoded" | cut -d'_' -f2)"
|
||||||
|
DOWNLOAD_DISPLAY="${DOWNLOAD_DISPLAY} $(echo "$filesize" | numfmt --to=iec-i --suffix=B)\n"
|
||||||
|
DOWNLOAD_SIZE=$((DOWNLOAD_SIZE + filesize))
|
||||||
|
|
||||||
|
## whole uri comes encoded (urlencoded). Filename must NOT be decoded because
|
||||||
|
# plain aptitude do not decode it when download and install it. Therefore, we
|
||||||
|
# will have ugly named packages at /var/cache/apt/archives but is the standard
|
||||||
|
# behavior.
|
||||||
|
# But package version must be decoded, otherways package=version calls will
|
||||||
|
# not work.
|
||||||
|
|
||||||
|
if [ -n "$HASH_SUPPORTED" ]; then
|
||||||
|
case "$hash_algo" in
|
||||||
|
SHA512) [ -z "$SHA512_SUPPORTED" ] && hash_algo= || hash_algo=sha-512 ;;
|
||||||
|
SHA256) [ -z "$SHA256_SUPPORTED" ] && hash_algo= || hash_algo=sha-256 ;;
|
||||||
|
SHA1) [ -z "$SHA1_SUPPORTED" ] && hash_algo= || hash_algo=sha-1 ;;
|
||||||
|
MD5Sum) [ -z "$MD5sum_SUPPORTED" ] && hash_algo= || hash_algo=md5 ;;
|
||||||
|
*) hash_algo=
|
||||||
|
esac
|
||||||
|
|
||||||
|
# Using apt-cache show package=version to ensure recover single and
|
||||||
|
# correct package version.
|
||||||
|
# Warning: assuming that package naming uses '_' as field separator.
|
||||||
|
# Therefore, this code expects package-name_version_arch.deb Otherways
|
||||||
|
# below code will fail resoundingly
|
||||||
|
if [ -z "$hash_algo" ]; then
|
||||||
|
pkg_name="$(echo "$filename" | cut -d'_' -f1)"
|
||||||
|
pkg_version="$(echo "$filename" | cut -d'_' -f2)"
|
||||||
|
pkg_version="$(urldecode "$pkg_version")"
|
||||||
|
package_info="$(apt-cache show "$pkg_name=$pkg_version")"
|
||||||
|
|
||||||
|
patch_checksum=
|
||||||
|
if [ -n "$SHA512_SUPPORTED" ]; then
|
||||||
|
patch_checksum="$(echo "$package_info" | grep SHA512 | head -n 1)"
|
||||||
|
[ -n "$patch_checksum" ] && hash_algo="sha-512"
|
||||||
|
fi
|
||||||
|
if [ -z "$patch_checksum" ] && [ -n "$SHA256_SUPPORTED" ]; then
|
||||||
|
patch_checksum="$(echo "$package_info" | grep SHA256 | head -n 1)"
|
||||||
|
[ -n "$patch_checksum" ] && hash_algo="sha-256"
|
||||||
|
fi
|
||||||
|
if [ -z "$patch_checksum" ] && [ -n "$SHA1_SUPPORTED" ]; then
|
||||||
|
patch_checksum="$(echo "$package_info" | grep SHA1 | head -n 1)"
|
||||||
|
[ -n "$patch_checksum" ] && hash_algo="sha-1"
|
||||||
|
fi
|
||||||
|
if [ -z "$patch_checksum" ] && [ -n "$MD5sum_SUPPORTED" ]; then
|
||||||
|
patch_checksum="$(echo "$package_info" | grep MD5sum | head -n 1)"
|
||||||
|
[ -n "$patch_checksum" ] && hash_algo="md5"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -n "$patch_checksum" ]; then
|
||||||
|
checksum="$(echo "$patch_checksum" | cut -d' ' -f2)"
|
||||||
|
else
|
||||||
|
msg "Couldn't get supported checksum for $pkg_name ($pkg_version)." "warning"
|
||||||
|
REMOVE_WORKING_MESSAGE=
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
hash_algo=
|
||||||
|
fi
|
||||||
|
|
||||||
|
{
|
||||||
|
get_mirrors "$uri"
|
||||||
|
#echo " dir=$DLDIR"
|
||||||
|
if [ -n "$hash_algo" ]; then
|
||||||
|
echo " checksum=$hash_algo=$checksum"
|
||||||
|
fi
|
||||||
|
echo " out=$filename"
|
||||||
|
} >> "$DLLIST"
|
||||||
|
done <<<"$(echo "$uris_full" | grep -E "^'(http(s|)|(s|)ftp)://")"
|
||||||
|
|
||||||
|
#cat "$DLLIST"
|
||||||
|
#LCK_RM
|
||||||
|
#exit
|
||||||
|
}
|
||||||
|
|
||||||
|
display_downloadfile(){
|
||||||
|
if [ -n "$VERBOSE_OUTPUT" ]; then
|
||||||
|
cat "$DLLIST"
|
||||||
|
else
|
||||||
|
DISPLAY_SORT_OPTIONS=(-k 1,1)
|
||||||
|
# Sort output after package download size (decreasing):
|
||||||
|
#DISPLAY_SORT_OPTIONS=(-k 3,3 -hr)
|
||||||
|
while read -r line; do
|
||||||
|
[ -z "$line" ] && continue
|
||||||
|
pkg="$(echo "$line" | cut -d' ' -f1)"
|
||||||
|
ver="$(echo "$line" | cut -d' ' -f2)"
|
||||||
|
size="$(echo "$line" | cut -d' ' -f3)"
|
||||||
|
printf '%s%-40s %-20s %10s\n' "$aptfast_prefix" "$pkg" "$ver" "$size"
|
||||||
|
done <<<"$(echo -e "$DOWNLOAD_DISPLAY" | sort "${DISPLAY_SORT_OPTIONS[@]}")"
|
||||||
|
fi
|
||||||
|
msg "Download size: $(echo "$DOWNLOAD_SIZE" | numfmt --to=iec-i --suffix=B)" "normal"
|
||||||
|
}
|
||||||
|
|
||||||
|
# Create and insert a PID number to lockfile.
|
||||||
|
_create_lock
|
||||||
|
|
||||||
|
# Make sure aria2c (in general first parameter from _DOWNLOADER) is available.
|
||||||
|
CMD="$(echo "$_DOWNLOADER" | sed 's/^\s*\([^ ]\+\).*$/\1/')"
|
||||||
|
if [ ! "$(command -v "$CMD")" ]; then
|
||||||
|
msg "Command not found: $CMD" "normal" "err"
|
||||||
|
msg "You must configure $CONFFILE to use aria2c or another supported download manager" "normal" "err"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Make sure package manager is available.
|
||||||
|
if [ ! "$(command -v "$_APTMGR")" ]; then
|
||||||
|
msg "\`$_APTMGR\` command not available." "warning"
|
||||||
|
msg "You must configure $CONFFILE to use either apt-get or aptitude." "normal" "err"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Disable script warning if apt is used.
|
||||||
|
APT_SCRIPT_WARNING=()
|
||||||
|
if [ "$_APTMGR" == "apt" ]; then
|
||||||
|
APT_SCRIPT_WARNING=(-o "Apt::Cmd::Disable-Script-Warning=true")
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Set supported hash algorithms by aria2c (and also by Debian repository).
|
||||||
|
SHA512_SUPPORTED=
|
||||||
|
SHA256_SUPPORTED=
|
||||||
|
SHA1_SUPPORTED=
|
||||||
|
MD5sum_SUPPORTED=
|
||||||
|
HASH_SUPPORTED=
|
||||||
|
if [ "$CMD" == "aria2c" ]; then
|
||||||
|
for supported_hash in $(LC_ALL=C aria2c -v | sed '/^Hash Algorithms:/!d; s/\(^Hash Algorithms: \|,\)\+//g'); do
|
||||||
|
case "$supported_hash" in
|
||||||
|
sha-512) SHA512_SUPPORTED=y; HASH_SUPPORTED=y ;;
|
||||||
|
sha-256) SHA256_SUPPORTED=y; HASH_SUPPORTED=y ;;
|
||||||
|
sha-1) SHA1_SUPPORTED=y; HASH_SUPPORTED=y ;;
|
||||||
|
md5) MD5sum_SUPPORTED=y; HASH_SUPPORTED=y ;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
if [ -z "$HASH_SUPPORTED" ]; then
|
||||||
|
msg "Couldn't find supported checksum algorithm from aria2c. Checksums disabled." "warning"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Check if "assume yes" switch is enabled and if yes enable $DOWNLOADBEFORE.
|
||||||
|
# Also check if "download only" switch is enabled.
|
||||||
|
#TODO: Get real value over APT items APT::Get::Assume-Yes and
|
||||||
|
# APT::Get::Assume-No .
|
||||||
|
# Respectively Aptitude::CmdLine::Download-Only and APT::Get::Download-Only.
|
||||||
|
DOWNLOAD_ONLY=
|
||||||
|
while true; do
|
||||||
|
while getopts ":dy-:" optchar; do
|
||||||
|
case "${optchar}" in
|
||||||
|
-)
|
||||||
|
case "${OPTARG}" in
|
||||||
|
yes | assume-yes) DOWNLOADBEFORE=true ;;
|
||||||
|
assume-no) DOWNLOADBEFORE= ;;
|
||||||
|
download-only) DOWNLOAD_ONLY=true ;;
|
||||||
|
esac
|
||||||
|
;;
|
||||||
|
y)
|
||||||
|
DOWNLOADBEFORE=true
|
||||||
|
;;
|
||||||
|
d)
|
||||||
|
DOWNLOAD_ONLY=true
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
((OPTIND++))
|
||||||
|
[ $OPTIND -gt $# ] && break
|
||||||
|
done
|
||||||
|
|
||||||
|
# Configure proxies. Use apt values over environment variables.
|
||||||
|
# Note: If proxy setting is not set, there is no apt-config output.
|
||||||
|
# Therefore variable doesn't get overriden, which is intended.
|
||||||
|
# Export the variables to make them available in subshells (aka the
|
||||||
|
# downloader command).
|
||||||
|
eval "$(apt-config shell ftp_proxy Acquire::ftp::proxy)"
|
||||||
|
export ftp_proxy
|
||||||
|
eval "$(apt-config shell http_proxy Acquire::http::proxy)"
|
||||||
|
export http_proxy
|
||||||
|
eval "$(apt-config shell https_proxy Acquire::https::proxy)"
|
||||||
|
export https_proxy
|
||||||
|
|
||||||
|
# aria2 has no socks support (see https://github.com/aria2/aria2/issues/153)
|
||||||
|
if echo "$http_proxy" | grep -q "^socks5h://" || echo "$https_proxy" | grep -q "^socks5h://"; then
|
||||||
|
msg "Socks proxy detected. Falling back to ${_APTMGR}" "hint"
|
||||||
|
"${_APTMGR}" "${APT_SCRIPT_WARNING[@]}" "$@"
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Run actions.
|
||||||
|
if [ "$option" == "install" ]; then
|
||||||
|
msg
|
||||||
|
msg "Working... this may take a while." "normal"
|
||||||
|
REMOVE_WORKING_MESSAGE=y
|
||||||
|
|
||||||
|
get_uris "$@"
|
||||||
|
|
||||||
|
[ -t 1 ] && [ -n "$REMOVE_WORKING_MESSAGE" ] && tput cuu 1 && tput el && tput cuu 1
|
||||||
|
# Test /tmp/apt-fast.list file exists and not just the apt-fast comment line.
|
||||||
|
# Then download all files from the list.
|
||||||
|
if [ -f "$DLLIST" ] && [ "$(wc -l "$DLLIST" | cut -d' ' -f1)" -gt 1 ] && [ ! "$DOWNLOADBEFORE" ]; then
|
||||||
|
display_downloadfile
|
||||||
|
msg
|
||||||
|
msg "Do you want to download the packages? [Y/n] " "question"
|
||||||
|
|
||||||
|
while ((!updsys)); do
|
||||||
|
read -r -sn1 -t "$APT_FAST_TIMEOUT" answer || { msg; msg "Timed out." "warning"; exit 1; }
|
||||||
|
case "$answer" in
|
||||||
|
[JjYy]) result=1; updsys=1 ;;
|
||||||
|
[Nn]) result=0; updsys=1 ;;
|
||||||
|
"") result=1; updsys=1 ;;
|
||||||
|
*) updsys=0 ;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
else
|
||||||
|
result=1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if ((DOWNLOAD_SIZE)); then
|
||||||
|
msg
|
||||||
|
# Continue if answer was right or DOWNLOADBEFORE is enabled.
|
||||||
|
if ((result)); then
|
||||||
|
if [ -s "$DLLIST" ]; then
|
||||||
|
# Test if apt-fast directory is present where we put packages.
|
||||||
|
if [ ! -d "$DLDIR" ]; then
|
||||||
|
mkdir -p -- "$DLDIR"
|
||||||
|
fi
|
||||||
|
|
||||||
|
cd "$DLDIR" &>/dev/null || exit 1
|
||||||
|
|
||||||
|
eval "${_DOWNLOADER}" # execute downloadhelper command
|
||||||
|
if [ "$(find "$DLDIR" -printf . | wc -c)" -gt 1 ]; then
|
||||||
|
# Move all packages to the apt install directory by force to ensure
|
||||||
|
# already existing debs which may be incomplete are replaced
|
||||||
|
find . -type f -name "*.deb" -execdir mv -ft "$APTCACHE" {} \+
|
||||||
|
fi
|
||||||
|
cd - &>/dev/null || msg "Failed to change back directory" "warning"
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
[ -t 1 ] && tput el
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -z "$DOWNLOAD_ONLY" ] || [ "$_APTMGR" == "aptitude" ]; then
|
||||||
|
"${_APTMGR}" "${APT_SCRIPT_WARNING[@]}" "$@"
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
elif [ "$option" == "clean" ]; then
|
||||||
|
"${_APTMGR}" "${APT_SCRIPT_WARNING[@]}" "$@" && {
|
||||||
|
find "$DLDIR" -maxdepth 1 -type f -delete
|
||||||
|
CLEANUP_STATE="$?"
|
||||||
|
[ -f "$DLLIST" ] && rm -f -- "$DLLIST"* || true
|
||||||
|
}
|
||||||
|
|
||||||
|
elif [ "$option" == "download" ]; then
|
||||||
|
msg
|
||||||
|
msg "Working... this may take a while." "normal"
|
||||||
|
REMOVE_WORKING_MESSAGE=y
|
||||||
|
|
||||||
|
get_uris "$@"
|
||||||
|
|
||||||
|
[ -t 1 ] && [ -n "$REMOVE_WORKING_MESSAGE" ] && tput cuu 1 && tput el && tput cuu 1
|
||||||
|
|
||||||
|
if [ -f "$DLLIST" ] && [ "$(wc -l "$DLLIST" | cut -d' ' -f1)" -gt 1 ]; then
|
||||||
|
display_downloadfile
|
||||||
|
eval "${_DOWNLOADER}"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "$_APTMGR" == "aptitude" ]; then
|
||||||
|
"${_APTMGR}" "$@"
|
||||||
|
fi
|
||||||
|
|
||||||
|
elif [ "$option" == "source" ]; then
|
||||||
|
msg
|
||||||
|
msg "Working... this may take a while." "normal"
|
||||||
|
REMOVE_WORKING_MESSAGE=y
|
||||||
|
|
||||||
|
get_uris "$@"
|
||||||
|
|
||||||
|
[ -t 1 ] && [ -n "$REMOVE_WORKING_MESSAGE" ] && tput cuu 1 && tput el && tput cuu 1
|
||||||
|
|
||||||
|
if [ -f "$DLLIST" ] && [ "$(wc -l "$DLLIST" | cut -d' ' -f1)" -gt 1 ]; then
|
||||||
|
display_downloadfile
|
||||||
|
eval "${_DOWNLOADER}"
|
||||||
|
fi
|
||||||
|
# We use APT manager here to provide more verbose output. This method is
|
||||||
|
# slightly slower then extractiong packages manually after download but also
|
||||||
|
# more hardened (e.g. some options like --compile are available).
|
||||||
|
"${_APTMGR}" "${APT_SCRIPT_WARNING[@]}" "$@"
|
||||||
|
# Uncomment following snippet to extract source directly and comment
|
||||||
|
# both lines before.
|
||||||
|
#while read srcfile; do
|
||||||
|
# # extract only .dsc files
|
||||||
|
# echo "$srcfile" | grep -q '\.dsc$' || continue
|
||||||
|
# dpkg-source -x "$(basename "$srcfile")"
|
||||||
|
#done < "$DLLIST"
|
||||||
|
|
||||||
|
# Execute package manager directly if unknown options are passed.
|
||||||
|
else
|
||||||
|
"${_APTMGR}" "${APT_SCRIPT_WARNING[@]}" "$@"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# After error or all done remove our lockfile (done with EXIT trap)
|
||||||
45
tool/aptss
45
tool/aptss
@@ -1,11 +1,7 @@
|
|||||||
#/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if [ "$1" = "install" ] || [ "$1" = "upgrade" ] || [ "$1" = "full-upgrade" ] || [ "$1" = "download" ] ; then
|
|
||||||
|
|
||||||
if [ ! -e "/tmp/aptss-conf/apt-fast.conf" ];then
|
if [ ! -e "/tmp/aptss-conf/apt-fast.conf" ];then
|
||||||
###刷新apt-fast配置
|
###刷新apt-fast配置
|
||||||
mkdir -p /tmp/aptss-conf/
|
mkdir -p /tmp/aptss-conf/
|
||||||
@@ -17,32 +13,51 @@ chmod -R 755 /tmp/aptss-conf
|
|||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
DEPEND=`which apt-fast`
|
|
||||||
if [ "$DEPEND" = "" ] ; then
|
|
||||||
echo "未安装依赖:apt-fast 开始安装"
|
|
||||||
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 apt-fast -y
|
if [ "$1" = "install" ] || [ "$1" = "upgrade" ] || [ "$1" = "full-upgrade" ] ; then
|
||||||
fi
|
|
||||||
|
|
||||||
|
sudo bwrap --dev-bind / / --bind '/opt/durapps/spark-store/bin/apt-fast-conf/sources.list.d/sparkstore.list' /etc/apt/sources.list.d/sparkstore.list apt update -o Dir::Etc::sourcelist="sources.list.d/sparkstore.list" -o Dir::etc::sourceparts="-" -o APT::Get::List-Cleanup="0"
|
||||||
|
|
||||||
###执行
|
###执行
|
||||||
bwrap --dev-bind / / \
|
bwrap --dev-bind / / \
|
||||||
--bind '/tmp/aptss-conf/apt-fast.conf' /etc/apt-fast.conf \
|
--bind '/tmp/aptss-conf/apt-fast.conf' /etc/apt-fast.conf \
|
||||||
--bind '/opt/durapps/spark-store/bin/apt-fast-conf/sources.list.d/sparkstore.list' /etc/apt/sources.list.d/sparkstore.list \
|
--bind '/opt/durapps/spark-store/bin/apt-fast-conf/sources.list.d/sparkstore.list' /etc/apt/sources.list.d/sparkstore.list \
|
||||||
apt-fast "$@" --allow-downgrades
|
/opt/durapps/spark-store/bin/apt-fast/ss-apt-fast "$@" --allow-downgrades
|
||||||
|
|
||||||
|
|
||||||
|
elif [ "$1" = "download" ];then
|
||||||
|
|
||||||
|
###执行
|
||||||
|
bwrap --dev-bind / / \
|
||||||
|
--bind '/tmp/aptss-conf/apt-fast.conf' /etc/apt-fast.conf \
|
||||||
|
--bind '/opt/durapps/spark-store/bin/apt-fast-conf/sources.list.d/sparkstore.list' /etc/apt/sources.list.d/sparkstore.list \
|
||||||
|
/opt/durapps/spark-store/bin/apt-fast/ss-apt-fast "$@" --allow-downgrades
|
||||||
|
|
||||||
|
|
||||||
|
elif [ "$1" = "policy" ] || [ "$1" = "search" ];then
|
||||||
|
sudo bwrap --dev-bind / / --bind '/opt/durapps/spark-store/bin/apt-fast-conf/sources.list.d/sparkstore.list' /etc/apt/sources.list.d/sparkstore.list apt update -o Dir::Etc::sourcelist="sources.list.d/sparkstore.list" -o Dir::etc::sourceparts="-" -o APT::Get::List-Cleanup="0"
|
||||||
|
|
||||||
|
###执行
|
||||||
|
bwrap --dev-bind / / \
|
||||||
|
--bind '/tmp/aptss-conf/apt-fast.conf' /etc/apt-fast.conf \
|
||||||
|
--bind '/opt/durapps/spark-store/bin/apt-fast-conf/sources.list.d/sparkstore.list' /etc/apt/sources.list.d/sparkstore.list \
|
||||||
|
apt "$@" --allow-downgrades
|
||||||
|
|
||||||
elif [ "$1" = "ssupdate" ];then
|
elif [ "$1" = "ssupdate" ];then
|
||||||
|
|
||||||
mkdir -p /tmp/aptss-conf/
|
mkdir -p /tmp/aptss-conf/
|
||||||
echo "从服务器获取配置和镜像列表..."
|
echo "从服务器获取配置和镜像列表..."
|
||||||
echo "Getting server and mirror lists..."
|
echo "Getting server and mirror lists..."
|
||||||
echo
|
echo
|
||||||
curl --progress-bar -o /tmp/aptss-conf/apt-fast.conf "https://gitee.com/deepin-community-store/repo_auto_update_script/raw/master/mirror-list-for-apt-fast/apt-fast.conf"
|
curl --silent -o /tmp/aptss-conf/apt-fast.conf "https://gitee.com/deepin-community-store/repo_auto_update_script/raw/master/mirror-list-for-apt-fast/apt-fast.conf"
|
||||||
chmod -R 755 /tmp/aptss-conf
|
chmod -R 755 /tmp/aptss-conf
|
||||||
|
|
||||||
sudo curl --progress-bar -o /opt/durapps/spark-store/bin/apt-fast-conf/sources.list.d/sparkstore.list "https://gitee.com/deepin-community-store/repo_auto_update_script/raw/master/mirror-list-for-apt-fast/sources.list.d/sparkstore.list"
|
sudo curl --silent -o /opt/durapps/spark-store/bin/apt-fast-conf/sources.list.d/sparkstore.list "https://gitee.com/deepin-community-store/repo_auto_update_script/raw/master/mirror-list-for-apt-fast/sources.list.d/sparkstore.list"
|
||||||
### 额外一份拿来给aptss自动补全用
|
|
||||||
sudo bwrap --dev-bind / / --bind '/opt/durapps/spark-store/bin/apt-fast-conf/sources.list.d/sparkstore.list' /etc/apt/sources.list.d/sparkstore.list apt update -o Dir::Etc::sourcelist="sources.list.d/sparkstore.list" -o Dir::Etc::sourceparts="-" -o APT::Get::List-Cleanup="0"
|
sudo bwrap --dev-bind / / --bind '/opt/durapps/spark-store/bin/apt-fast-conf/sources.list.d/sparkstore.list' /etc/apt/sources.list.d/sparkstore.list apt update -o Dir::Etc::sourcelist="sources.list.d/sparkstore.list" -o Dir::Etc::sourceparts="-" -o APT::Get::List-Cleanup="0"
|
||||||
sudo bwrap --dev-bind / / --bind '/opt/durapps/spark-store/bin/apt-fast-conf/sources.list.d/sparkstore.list' /etc/apt/sources.list.d/sparkstore.list apt update -o Dir::Etc::sourcelist="sources.list.d/sparkstore.list" -o Dir::Etc::sourceparts="-" -o Dir::Cache="/etc/aptss/" -o APT::Get::List-Cleanup="0"
|
|
||||||
#只更新星火源
|
#只更新星火源
|
||||||
|
|
||||||
elif [ "$1" = "update" ];then
|
elif [ "$1" = "update" ];then
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
@@ -1,17 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
uname=`whoami`
|
|
||||||
echo "Now input the password of $uname"
|
|
||||||
read upass
|
|
||||||
passcheck=`echo "$upass" | sudo -S echo "i love amber forever"`
|
|
||||||
passcheck=`echo "$upass" | sudo -S echo "i love amber forever"`
|
|
||||||
reset
|
|
||||||
###UOS魔改的sudo返回了验证成功干扰判断,会变成验证成功i love amber forever
|
|
||||||
### 听我说谢谢你,因为有你,温暖了四季
|
|
||||||
###fuck♂you 就不能改的不那么坑爹吗???还是我用来捕捉的方法太笨了。。。
|
|
||||||
if [ "$passcheck" != "i love amber forever" ];then
|
|
||||||
echo "114514首"
|
|
||||||
exit 1
|
|
||||||
else
|
|
||||||
reset
|
|
||||||
echo "go go Baron Bunny"
|
|
||||||
fi
|
|
||||||
2
tool/ss-feedback/README.md
Normal file
2
tool/ss-feedback/README.md
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
# Feadback 反馈脚本
|
||||||
|
使用 shc 加密, 需要使用 cc、gcc 编译。
|
||||||
817
tool/ss-feedback/sender-d.sh.c
Normal file
817
tool/ss-feedback/sender-d.sh.c
Normal file
@@ -0,0 +1,817 @@
|
|||||||
|
#if 0
|
||||||
|
shc Version 4.0.3, Generic Shell Script Compiler
|
||||||
|
GNU GPL Version 3 Md Jahidul Hamid <jahidulhamid@yahoo.com>
|
||||||
|
|
||||||
|
shc -v -r -f sender-d.sh
|
||||||
|
#endif
|
||||||
|
|
||||||
|
static char data [] =
|
||||||
|
#define pswd_z 256
|
||||||
|
#define pswd ((&data[15]))
|
||||||
|
"\073\237\114\151\003\324\064\061\057\100\342\310\062\343\346\075"
|
||||||
|
"\105\011\036\257\154\107\223\050\237\060\137\020\063\015\377\156"
|
||||||
|
"\162\230\321\117\026\333\267\322\335\062\077\075\261\355\172\366"
|
||||||
|
"\367\231\246\144\341\071\215\201\151\354\221\234\371\221\013\153"
|
||||||
|
"\052\334\273\101\267\162\023\224\244\123\322\125\100\115\114\067"
|
||||||
|
"\347\362\233\310\053\050\111\225\025\333\061\016\154\075\172\227"
|
||||||
|
"\031\065\330\320\250\354\145\114\077\067\242\200\204\357\267\154"
|
||||||
|
"\341\123\064\015\174\176\242\221\131\324\240\306\021\032\136\053"
|
||||||
|
"\117\066\373\367\043\141\104\142\230\347\342\035\326\232\212\270"
|
||||||
|
"\356\276\306\152\075\151\374\227\076\234\135\120\266\273\173\006"
|
||||||
|
"\362\167\376\025\330\103\170\161\052\133\217\001\366\031\272\344"
|
||||||
|
"\330\201\116\025\352\113\254\051\347\012\171\236\305\365\245\270"
|
||||||
|
"\154\243\316\105\346\106\267\021\242\106\023\230\137\316\174\067"
|
||||||
|
"\117\313\115\072\026\371\143\376\003\334\234\311\322\101\202\076"
|
||||||
|
"\345\120\204\313\227\073\335\071\202\360\321\341\276\116\031\016"
|
||||||
|
"\031\146\110\057\140\253\056\144\210\312\056\132\014\260\231\361"
|
||||||
|
"\000\036\275\230\131\232\321\333\213\243\275\112\361\327\130\360"
|
||||||
|
"\173\100\213\115\034\027\361\331\141\342\261\272\356\360\133\051"
|
||||||
|
"\217\247\222\222\173\307\304\253\007\247\163\072\212\132\052\005"
|
||||||
|
"\232\266\123\266\315\104\220"
|
||||||
|
#define date_z 1
|
||||||
|
#define date ((&data[311]))
|
||||||
|
"\375"
|
||||||
|
#define tst2_z 19
|
||||||
|
#define tst2 ((&data[312]))
|
||||||
|
"\031\242\273\246\041\336\076\145\246\300\036\051\047\366\106\356"
|
||||||
|
"\220\064\226"
|
||||||
|
#define shll_z 10
|
||||||
|
#define shll ((&data[331]))
|
||||||
|
"\142\312\022\213\061\052\357\062\161\266\353\321"
|
||||||
|
#define inlo_z 3
|
||||||
|
#define inlo ((&data[343]))
|
||||||
|
"\216\314\250"
|
||||||
|
#define msg1_z 65
|
||||||
|
#define msg1 ((&data[347]))
|
||||||
|
"\300\115\164\240\306\270\356\211\346\362\207\042\205\377\337\231"
|
||||||
|
"\113\016\267\021\330\324\374\242\242\336\361\041\143\054\223\355"
|
||||||
|
"\361\326\220\125\016\336\260\031\012\341\025\102\124\131\005\244"
|
||||||
|
"\234\133\315\262\013\375\340\025\227\352\060\034\236\222\347\136"
|
||||||
|
"\160\356\206\333\112\340\006\120\173\274\243\061"
|
||||||
|
#define chk1_z 22
|
||||||
|
#define chk1 ((&data[427]))
|
||||||
|
"\270\017\004\242\044\277\223\036\316\135\273\047\172\354\056\123"
|
||||||
|
"\141\200\041\375\363\101\127\122\242\373\336\067\346\143\370"
|
||||||
|
#define text_z 1869
|
||||||
|
#define text ((&data[549]))
|
||||||
|
"\071\315\146\114\156\047\322\111\162\262\117\303\055\014\146\137"
|
||||||
|
"\226\117\042\116\136\046\360\203\135\327\346\126\251\033\243\342"
|
||||||
|
"\351\012\056\127\062\000\240\244\263\360\147\341\374\316\101\222"
|
||||||
|
"\035\143\341\174\212\322\377\350\251\345\076\122\001\342\065\352"
|
||||||
|
"\355\143\101\037\144\342\304\030\323\053\372\320\372\073\142\030"
|
||||||
|
"\237\104\224\051\026\223\022\300\171\121\023\172\064\110\144\041"
|
||||||
|
"\131\377\367\164\123\316\261\141\353\367\301\016\274\016\120\047"
|
||||||
|
"\114\046\100\031\034\140\073\010\260\305\236\267\340\334\172\305"
|
||||||
|
"\021\246\221\332\021\311\021\154\112\347\316\242\317\135\332\301"
|
||||||
|
"\336\151\126\072\217\354\230\133\220\107\301\140\001\353\360\166"
|
||||||
|
"\213\363\372\027\233\047\323\276\201\201\216\023\154\320\161\313"
|
||||||
|
"\320\152\257\025\322\272\025\153\247\235\321\160\071\321\067\253"
|
||||||
|
"\241\156\046\022\220\271\031\066\331\215\206\354\323\250\277\275"
|
||||||
|
"\253\021\137\373\037\247\054\101\371\345\374\104\113\056\231\313"
|
||||||
|
"\256\361\253\230\051\271\176\340\337\333\050\341\362\056\167\255"
|
||||||
|
"\110\043\213\146\047\300\122\142\314\236\021\040\074\377\243\374"
|
||||||
|
"\373\242\311\017\027\025\325\213\232\031\105\104\013\052\212\072"
|
||||||
|
"\030\104\271\142\045\220\026\110\122\375\151\376\117\030\367\246"
|
||||||
|
"\217\256\245\325\077\346\276\327\045\113\166\374\164\175\046\022"
|
||||||
|
"\327\265\135\221\047\346\332\276\260\240\227\230\211\165\023\170"
|
||||||
|
"\316\154\240\317\001\217\073\173\212\106\115\070\141\315\324\116"
|
||||||
|
"\204\026\326\026\254\252\257\044\333\310\024\223\327\026\336\312"
|
||||||
|
"\151\363\273\204\220\242\016\226\317\314\156\124\240\122\232\124"
|
||||||
|
"\110\055\240\223\016\373\000\136\102\135\122\057\222\070\210\130"
|
||||||
|
"\012\234\324\361\047\201\232\126\155\021\270\134\303\377\110\250"
|
||||||
|
"\220\352\314\011\276\260\131\175\233\367\254\266\366\263\014\102"
|
||||||
|
"\237\066\305\270\257\117\034\316\147\136\133\373\051\333\006\077"
|
||||||
|
"\242\225\073\276\155\106\311\232\247\112\341\143\016\103\013\062"
|
||||||
|
"\214\247\315\302\241\024\076\037\135\126\145\227\342\323\061\230"
|
||||||
|
"\016\246\203\251\033\223\105\251\131\001\060\306\305\034\005\133"
|
||||||
|
"\161\366\173\132\343\314\135\205\273\260\170\145\370\262\153\321"
|
||||||
|
"\253\345\131\260\346\020\367\016\127\056\307\040\112\052\012\264"
|
||||||
|
"\247\057\273\157\016\275\270\226\173\033\071\042\072\142\170\134"
|
||||||
|
"\045\016\163\251\362\073\214\166\354\103\017\330\122\073\211\204"
|
||||||
|
"\200\004\003\176\324\343\275\017\056\341\055\071\173\175\144\147"
|
||||||
|
"\365\115\274\012\253\277\036\370\220\115\307\120\131\037\206\063"
|
||||||
|
"\355\032\324\265\064\114\014\217\113\302\125\301\033\100\357\042"
|
||||||
|
"\334\212\202\353\262\040\130\240\027\110\343\271\356\171\001\325"
|
||||||
|
"\167\062\056\061\210\316\075\142\261\005\116\142\230\367\343\135"
|
||||||
|
"\174\302\375\047\075\334\222\326\253\073\174\173\360\260\021\344"
|
||||||
|
"\331\315\146\233\057\007\314\231\256\113\221\021\126\173\045\315"
|
||||||
|
"\247\126\162\253\375\041\043\263\232\274\171\132\320\020\070\152"
|
||||||
|
"\013\224\371\045\350\270\077\251\145\063\357\171\036\245\125\315"
|
||||||
|
"\020\206\333\111\062\331\054\144\346\173\132\113\374\043\022\371"
|
||||||
|
"\311\101\043\300\337\334\367\145\030\023\207\043\253\042\227\302"
|
||||||
|
"\350\037\067\332\350\253\117\124\243\341\046\211\061\007\303\154"
|
||||||
|
"\022\210\064\112\311\170\123\071\332\266\205\151\265\300\343\237"
|
||||||
|
"\147\001\024\013\173\265\330\375\070\111\044\246\204\155\146\067"
|
||||||
|
"\036\060\065\251\005\354\200\115\136\076\034\040\335\033\043\221"
|
||||||
|
"\374\211\170\061\251\321\372\116\023\167\330\007\310\060\175\076"
|
||||||
|
"\064\242\253\131\116\074\275\022\133\016\203\214\254\115\002\325"
|
||||||
|
"\046\213\073\107\241\341\273\110\300\236\005\231\275\325\012\175"
|
||||||
|
"\365\056\370\275\132\330\041\035\166\130\240\013\162\041\163\140"
|
||||||
|
"\377\225\075\315\115\106\270\277\233\113\106\305\270\240\026\106"
|
||||||
|
"\317\325\264\324\126\337\214\155\366\331\372\200\306\272\163\333"
|
||||||
|
"\266\343\246\100\016\002\242\070\231\262\005\137\323\257\343\047"
|
||||||
|
"\301\206\266\341\302\046\266\167\227\276\125\165\027\044\353\035"
|
||||||
|
"\043\036\300\137\140\244\156\205\364\361\067\016\324\110\142\167"
|
||||||
|
"\125\216\360\003\023\161\060\263\356\073\050\173\151\371\005\027"
|
||||||
|
"\027\273\363\163\017\044\064\055\267\345\052\320\370\132\374\123"
|
||||||
|
"\020\263\163\176\037\145\346\003\275\377\154\040\166\363\224\240"
|
||||||
|
"\214\304\332\367\057\146\070\165\101\026\125\361\100\357\001\031"
|
||||||
|
"\305\363\242\164\125\067\077\063\134\271\250\242\243\022\031\114"
|
||||||
|
"\225\006\352\203\137\376\201\147\225\372\053\217\331\003\156\143"
|
||||||
|
"\332\361\315\167\027\232\307\331\314\071\025\271\047\031\126\310"
|
||||||
|
"\254\200\324\257\022\351\244\007\335\036\150\036\362\072\021\007"
|
||||||
|
"\140\155\073\242\063\071\162\205\121\257\302\056\155\071\306\057"
|
||||||
|
"\236\364\027\143\074\375\254\324\117\176\242\267\247\215\374\137"
|
||||||
|
"\003\123\113\247\064\347\123\321\123\044\211\351\253\045\226\324"
|
||||||
|
"\034\147\117\066\000\370\074\041\242\137\270\361\106\154\113\045"
|
||||||
|
"\275\172\101\331\157\137\222\202\136\241\075\132\267\033\325\113"
|
||||||
|
"\042\352\305\133\274\252\111\213\330\215\261\145\322\246\174\031"
|
||||||
|
"\267\347\275\247\251\030\255\106\116\362\117\277\024\135\356\172"
|
||||||
|
"\033\066\346\252\205\144\302\147\131\076\122\021\152\225\313\235"
|
||||||
|
"\202\066\043\300\027\147\263\001\201\341\121\051\310\140\317\333"
|
||||||
|
"\131\254\112\104\337\014\320\143\375\231\252\220\064\143\234\000"
|
||||||
|
"\017\304\317\113\131\055\324\177\367\224\230\264\132\311\261\152"
|
||||||
|
"\034\137\223\225\365\314\014\076\377\025\023\040\222\043\022\047"
|
||||||
|
"\332\363\144\102\015\314\010\256\206\065\310\103\337\001\326\206"
|
||||||
|
"\024\354\074\045\337\107\003\225\137\032\055\332\056\347\073\055"
|
||||||
|
"\267\115\315\204\061\310\304\007\065\267\107\176\066\216\011\014"
|
||||||
|
"\066\215\236\247\176\327\164\113\353\215\343\313\302\106\302\250"
|
||||||
|
"\077\220\165\207\015\144\336\311\065\351\311\163\104\104\267\262"
|
||||||
|
"\307\057\106\061\110\271\053\136\133\263\066\177\103\212\234\166"
|
||||||
|
"\271\130\043\076\352\006\066\017\220\207\275\024\235\356\377\344"
|
||||||
|
"\005\257\200\002\253\123\052\015\326\342\225\116\137\256\213\354"
|
||||||
|
"\251\026\237\347\166\014\121\075\306\022\247\276\265\017\375\161"
|
||||||
|
"\174\113\273\017\227\064\057\217\376\326\311\140\354\074\160\121"
|
||||||
|
"\346\370\327\255\277\376\062\301\033\111\042\016\233\162\101\303"
|
||||||
|
"\161\123\210\042\157\270\114\252\372\315\352\335\221\115\300\252"
|
||||||
|
"\163\344\140\324\157\261\256\232\173\171\024\250\006\342\320\340"
|
||||||
|
"\365\137\167\336\216\320\337\345\265\346\363\133\023\076\121\117"
|
||||||
|
"\002\021\237\112\206\043\012\370\033\045\133\151\303\330\001\222"
|
||||||
|
"\073\174\074\320\054\005\127\000\210\240\347\131\256\126\253\007"
|
||||||
|
"\342\137\135\162\075\344\340\210\333\057\141\042\223\055\006\174"
|
||||||
|
"\000\005\225\117\203\320\143\136\130\037\333\217\136\371\221\220"
|
||||||
|
"\052\071\173\374\261\213\235\241\071\260\057\226\360\212\211\346"
|
||||||
|
"\333\062\135\157\357\316\156\022\111\201\010\151\065\111\364\364"
|
||||||
|
"\137\005\161\265\354\014\003\204\117\112\075\042\357\165\042\354"
|
||||||
|
"\263\304\343\323\045\127\244\326\160\216\335\042\353\173\135\061"
|
||||||
|
"\354\306\013\252\265\013\046\173\100\050\146\372\303\210\171\200"
|
||||||
|
"\160\377\013\300\245\265\307\146\355\047\052\007\011\214\060\367"
|
||||||
|
"\177\327\043\302\111\263\123\276\107\220\316\207\024\142\070\325"
|
||||||
|
"\004\262\276\355\075\175\146\163\370\345\135\214\322\041\105\047"
|
||||||
|
"\371\073\016\023\064\231\203\005\246\204\203\306\340\002\160\365"
|
||||||
|
"\315\022\302\170\340\356\151\323\344\242\134\046\134\162\227\117"
|
||||||
|
"\262\240\062\234\324\135\326\242\341\066\232\314\200\331\124\077"
|
||||||
|
"\201\245\227\252\073\356\252\367\277\232\331\005\324\350\032\261"
|
||||||
|
"\035\246\325\177\334\121\146\316\041\043\352\253\373\043\035\234"
|
||||||
|
"\231\321\046\171\221\105\216\272\025\321\042\222\007\351\363\232"
|
||||||
|
"\006\016\231\137\124\215\132\071\166\042\065\127\337\253\307\021"
|
||||||
|
"\337\364\070\261\112\201\310\242\335\104\353\055\277\322\232\240"
|
||||||
|
"\007\374\034\322\312\373\031\130\204\036\362\373\142\043\273\315"
|
||||||
|
"\216\373\273\260\310\111\070\031\207\101\325\157\110\142\216\357"
|
||||||
|
"\172\023\345\067\105\007\375\023\053\256\121\163\255\323\257\132"
|
||||||
|
"\164\360\307\234\106\130\275\217\211\327\300\322\261\206\364\326"
|
||||||
|
"\021\255\077\302\202\027\207\370\263\313\333\070\010\115\377\271"
|
||||||
|
"\173\302\243\224\126\201\255\356\261\176\213\135\216\054\237\371"
|
||||||
|
"\040\174\342\367\323\053\341\031\333\211\214\042\343\254\122\252"
|
||||||
|
"\325\326\263\326\325\063\065\362\114\161\314\151\116\237\160\073"
|
||||||
|
"\321\025\336\117\020\055\371\021\371\104\001\072\204\064\227\333"
|
||||||
|
"\034\374\123\265\343\026\372\207\264\033\065\316\147\211\142\366"
|
||||||
|
"\371\257\120\162\107\234\134\010\035\212\241\132\317\254\246\101"
|
||||||
|
"\020\211\005\051\134\061\043\054\054\137\217\104\376\323\330\050"
|
||||||
|
"\352\154\072\253\345\214\276\137\300\006\304\341\262\152\043\303"
|
||||||
|
"\364\051\354\120\132\017\175\207\156\014\313\155\337\244\225\312"
|
||||||
|
"\020\320\165\366\134\063\126\034\072\032\376\355\205\041\260\171"
|
||||||
|
"\113\234\312\245\254\107\055\033\123\370\210\063\235\036\375\256"
|
||||||
|
"\356\163\245\113\247\373\150\341\025\146\316\233\210\177\024\323"
|
||||||
|
"\034\336\171\310\046\246\343\171\237\153\255\075\211\252\353\170"
|
||||||
|
"\036\220\304\305\214\054\246\242\222\165\075\033\365\122\357\021"
|
||||||
|
"\061\150\331\127\017\275\321\257\051\176"
|
||||||
|
#define chk2_z 19
|
||||||
|
#define chk2 ((&data[2562]))
|
||||||
|
"\330\053\107\261\150\156\021\060\277\165\015\167\176\171\251\302"
|
||||||
|
"\276\160\207\325\012\334"
|
||||||
|
#define lsto_z 1
|
||||||
|
#define lsto ((&data[2581]))
|
||||||
|
"\010"
|
||||||
|
#define xecc_z 15
|
||||||
|
#define xecc ((&data[2582]))
|
||||||
|
"\005\040\327\254\114\361\156\300\024\244\110\337\050\143\126\227"
|
||||||
|
"\257"
|
||||||
|
#define tst1_z 22
|
||||||
|
#define tst1 ((&data[2603]))
|
||||||
|
"\036\047\271\057\207\076\001\326\201\264\356\151\036\164\071\111"
|
||||||
|
"\027\304\031\244\017\252\223\354\153\051\130\042\011\260"
|
||||||
|
#define msg2_z 19
|
||||||
|
#define msg2 ((&data[2632]))
|
||||||
|
"\341\357\377\335\143\002\251\076\361\005\267\075\204\313\320\034"
|
||||||
|
"\012\023\243\361\261\374\315\242"
|
||||||
|
#define rlax_z 1
|
||||||
|
#define rlax ((&data[2653]))
|
||||||
|
"\121"
|
||||||
|
#define opts_z 1
|
||||||
|
#define opts ((&data[2654]))
|
||||||
|
"\241"/* End of data[] */;
|
||||||
|
#define hide_z 4096
|
||||||
|
#define SETUID 0 /* Define as 1 to call setuid(0) at start of script */
|
||||||
|
#define DEBUGEXEC 0 /* Define as 1 to debug execvp calls */
|
||||||
|
#define TRACEABLE 1 /* Define as 1 to enable ptrace the executable */
|
||||||
|
#define HARDENING 0 /* Define as 1 to disable ptrace/dump the executable */
|
||||||
|
#define BUSYBOXON 0 /* Define as 1 to enable work with busybox */
|
||||||
|
|
||||||
|
#if HARDENING
|
||||||
|
static const char * shc_x[] = {
|
||||||
|
"/*",
|
||||||
|
" * Copyright 2019 - Intika <intika@librefox.org>",
|
||||||
|
" * Replace ******** with secret read from fd 21",
|
||||||
|
" * Also change arguments location of sub commands (sh script commands)",
|
||||||
|
" * gcc -Wall -fpic -shared -o shc_secret.so shc_secret.c -ldl",
|
||||||
|
" */",
|
||||||
|
"",
|
||||||
|
"#define _GNU_SOURCE /* needed to get RTLD_NEXT defined in dlfcn.h */",
|
||||||
|
"#define PLACEHOLDER \"********\"",
|
||||||
|
"#include <dlfcn.h>",
|
||||||
|
"#include <stdlib.h>",
|
||||||
|
"#include <string.h>",
|
||||||
|
"#include <unistd.h>",
|
||||||
|
"#include <stdio.h>",
|
||||||
|
"#include <signal.h>",
|
||||||
|
"",
|
||||||
|
"static char secret[128000]; //max size",
|
||||||
|
"typedef int (*pfi)(int, char **, char **);",
|
||||||
|
"static pfi real_main;",
|
||||||
|
"",
|
||||||
|
"// copy argv to new location",
|
||||||
|
"char **copyargs(int argc, char** argv){",
|
||||||
|
" char **newargv = malloc((argc+1)*sizeof(*argv));",
|
||||||
|
" char *from,*to;",
|
||||||
|
" int i,len;",
|
||||||
|
"",
|
||||||
|
" for(i = 0; i<argc; i++){",
|
||||||
|
" from = argv[i];",
|
||||||
|
" len = strlen(from)+1;",
|
||||||
|
" to = malloc(len);",
|
||||||
|
" memcpy(to,from,len);",
|
||||||
|
" // zap old argv space",
|
||||||
|
" memset(from,'\\0',len);",
|
||||||
|
" newargv[i] = to;",
|
||||||
|
" argv[i] = 0;",
|
||||||
|
" }",
|
||||||
|
" newargv[argc] = 0;",
|
||||||
|
" return newargv;",
|
||||||
|
"}",
|
||||||
|
"",
|
||||||
|
"static int mymain(int argc, char** argv, char** env) {",
|
||||||
|
" //fprintf(stderr, \"Inject main argc = %d\\n\", argc);",
|
||||||
|
" return real_main(argc, copyargs(argc,argv), env);",
|
||||||
|
"}",
|
||||||
|
"",
|
||||||
|
"int __libc_start_main(int (*main) (int, char**, char**),",
|
||||||
|
" int argc,",
|
||||||
|
" char **argv,",
|
||||||
|
" void (*init) (void),",
|
||||||
|
" void (*fini)(void),",
|
||||||
|
" void (*rtld_fini)(void),",
|
||||||
|
" void (*stack_end)){",
|
||||||
|
" static int (*real___libc_start_main)() = NULL;",
|
||||||
|
" int n;",
|
||||||
|
"",
|
||||||
|
" if (!real___libc_start_main) {",
|
||||||
|
" real___libc_start_main = dlsym(RTLD_NEXT, \"__libc_start_main\");",
|
||||||
|
" if (!real___libc_start_main) abort();",
|
||||||
|
" }",
|
||||||
|
"",
|
||||||
|
" n = read(21, secret, sizeof(secret));",
|
||||||
|
" if (n > 0) {",
|
||||||
|
" int i;",
|
||||||
|
"",
|
||||||
|
" if (secret[n - 1] == '\\n') secret[--n] = '\\0';",
|
||||||
|
" for (i = 1; i < argc; i++)",
|
||||||
|
" if (strcmp(argv[i], PLACEHOLDER) == 0)",
|
||||||
|
" argv[i] = secret;",
|
||||||
|
" }",
|
||||||
|
"",
|
||||||
|
" real_main = main;",
|
||||||
|
"",
|
||||||
|
" return real___libc_start_main(mymain, argc, argv, init, fini, rtld_fini, stack_end);",
|
||||||
|
"}",
|
||||||
|
"",
|
||||||
|
0};
|
||||||
|
#endif /* HARDENING */
|
||||||
|
|
||||||
|
/* rtc.c */
|
||||||
|
|
||||||
|
#include <sys/stat.h>
|
||||||
|
#include <sys/types.h>
|
||||||
|
|
||||||
|
#include <errno.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include <string.h>
|
||||||
|
#include <time.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
|
||||||
|
/* 'Alleged RC4' */
|
||||||
|
|
||||||
|
static unsigned char stte[256], indx, jndx, kndx;
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Reset arc4 stte.
|
||||||
|
*/
|
||||||
|
void stte_0(void)
|
||||||
|
{
|
||||||
|
indx = jndx = kndx = 0;
|
||||||
|
do {
|
||||||
|
stte[indx] = indx;
|
||||||
|
} while (++indx);
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Set key. Can be used more than once.
|
||||||
|
*/
|
||||||
|
void key(void * str, int len)
|
||||||
|
{
|
||||||
|
unsigned char tmp, * ptr = (unsigned char *)str;
|
||||||
|
while (len > 0) {
|
||||||
|
do {
|
||||||
|
tmp = stte[indx];
|
||||||
|
kndx += tmp;
|
||||||
|
kndx += ptr[(int)indx % len];
|
||||||
|
stte[indx] = stte[kndx];
|
||||||
|
stte[kndx] = tmp;
|
||||||
|
} while (++indx);
|
||||||
|
ptr += 256;
|
||||||
|
len -= 256;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Crypt data.
|
||||||
|
*/
|
||||||
|
void arc4(void * str, int len)
|
||||||
|
{
|
||||||
|
unsigned char tmp, * ptr = (unsigned char *)str;
|
||||||
|
while (len > 0) {
|
||||||
|
indx++;
|
||||||
|
tmp = stte[indx];
|
||||||
|
jndx += tmp;
|
||||||
|
stte[indx] = stte[jndx];
|
||||||
|
stte[jndx] = tmp;
|
||||||
|
tmp += stte[indx];
|
||||||
|
*ptr ^= stte[tmp];
|
||||||
|
ptr++;
|
||||||
|
len--;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* End of ARC4 */
|
||||||
|
|
||||||
|
#if HARDENING
|
||||||
|
|
||||||
|
#include <sys/ptrace.h>
|
||||||
|
#include <sys/wait.h>
|
||||||
|
#include <signal.h>
|
||||||
|
#include <sys/prctl.h>
|
||||||
|
#define PR_SET_PTRACER 0x59616d61
|
||||||
|
|
||||||
|
/* Seccomp Sandboxing Init */
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <stddef.h>
|
||||||
|
#include <string.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
#include <errno.h>
|
||||||
|
|
||||||
|
#include <sys/types.h>
|
||||||
|
#include <sys/prctl.h>
|
||||||
|
#include <sys/syscall.h>
|
||||||
|
#include <sys/socket.h>
|
||||||
|
|
||||||
|
#include <linux/filter.h>
|
||||||
|
#include <linux/seccomp.h>
|
||||||
|
#include <linux/audit.h>
|
||||||
|
|
||||||
|
#define ArchField offsetof(struct seccomp_data, arch)
|
||||||
|
|
||||||
|
#define Allow(syscall) \
|
||||||
|
BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, SYS_##syscall, 0, 1), \
|
||||||
|
BPF_STMT(BPF_RET+BPF_K, SECCOMP_RET_ALLOW)
|
||||||
|
|
||||||
|
struct sock_filter filter[] = {
|
||||||
|
/* validate arch */
|
||||||
|
BPF_STMT(BPF_LD+BPF_W+BPF_ABS, ArchField),
|
||||||
|
BPF_JUMP( BPF_JMP+BPF_JEQ+BPF_K, AUDIT_ARCH_X86_64, 1, 0),
|
||||||
|
BPF_STMT(BPF_RET+BPF_K, SECCOMP_RET_KILL),
|
||||||
|
|
||||||
|
/* load syscall */
|
||||||
|
BPF_STMT(BPF_LD+BPF_W+BPF_ABS, offsetof(struct seccomp_data, nr)),
|
||||||
|
|
||||||
|
/* list of allowed syscalls */
|
||||||
|
Allow(exit_group), /* exits a process */
|
||||||
|
Allow(brk), /* for malloc(), inside libc */
|
||||||
|
Allow(mmap), /* also for malloc() */
|
||||||
|
Allow(munmap), /* for free(), inside libc */
|
||||||
|
|
||||||
|
/* and if we don't match above, die */
|
||||||
|
BPF_STMT(BPF_RET+BPF_K, SECCOMP_RET_KILL),
|
||||||
|
};
|
||||||
|
struct sock_fprog filterprog = {
|
||||||
|
.len = sizeof(filter)/sizeof(filter[0]),
|
||||||
|
.filter = filter
|
||||||
|
};
|
||||||
|
|
||||||
|
/* Seccomp Sandboxing - Set up the restricted environment */
|
||||||
|
void seccomp_hardening() {
|
||||||
|
if (prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0)) {
|
||||||
|
perror("Could not start seccomp:");
|
||||||
|
exit(1);
|
||||||
|
}
|
||||||
|
if (prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &filterprog) == -1) {
|
||||||
|
perror("Could not start seccomp:");
|
||||||
|
exit(1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
/* End Seccomp Sandboxing Init */
|
||||||
|
|
||||||
|
void shc_x_file() {
|
||||||
|
FILE *fp;
|
||||||
|
int line = 0;
|
||||||
|
|
||||||
|
if ((fp = fopen("/tmp/shc_x.c", "w")) == NULL ) {exit(1); exit(1);}
|
||||||
|
for (line = 0; shc_x[line]; line++) fprintf(fp, "%s\n", shc_x[line]);
|
||||||
|
fflush(fp);fclose(fp);
|
||||||
|
}
|
||||||
|
|
||||||
|
int make() {
|
||||||
|
char * cc, * cflags, * ldflags;
|
||||||
|
char cmd[4096];
|
||||||
|
|
||||||
|
cc = getenv("CC");
|
||||||
|
if (!cc) cc = "cc";
|
||||||
|
|
||||||
|
sprintf(cmd, "%s %s -o %s %s", cc, "-Wall -fpic -shared", "/tmp/shc_x.so", "/tmp/shc_x.c -ldl");
|
||||||
|
if (system(cmd)) {remove("/tmp/shc_x.c"); return -1;}
|
||||||
|
remove("/tmp/shc_x.c"); return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
void arc4_hardrun(void * str, int len) {
|
||||||
|
//Decode locally
|
||||||
|
char tmp2[len];
|
||||||
|
char tmp3[len+1024];
|
||||||
|
memcpy(tmp2, str, len);
|
||||||
|
|
||||||
|
unsigned char tmp, * ptr = (unsigned char *)tmp2;
|
||||||
|
int lentmp = len;
|
||||||
|
int pid, status;
|
||||||
|
pid = fork();
|
||||||
|
|
||||||
|
shc_x_file();
|
||||||
|
if (make()) {exit(1);}
|
||||||
|
|
||||||
|
setenv("LD_PRELOAD","/tmp/shc_x.so",1);
|
||||||
|
|
||||||
|
if(pid==0) {
|
||||||
|
|
||||||
|
//Start tracing to protect from dump & trace
|
||||||
|
if (ptrace(PTRACE_TRACEME, 0, 0, 0) < 0) {
|
||||||
|
kill(getpid(), SIGKILL);
|
||||||
|
_exit(1);
|
||||||
|
}
|
||||||
|
|
||||||
|
//Decode Bash
|
||||||
|
while (len > 0) {
|
||||||
|
indx++;
|
||||||
|
tmp = stte[indx];
|
||||||
|
jndx += tmp;
|
||||||
|
stte[indx] = stte[jndx];
|
||||||
|
stte[jndx] = tmp;
|
||||||
|
tmp += stte[indx];
|
||||||
|
*ptr ^= stte[tmp];
|
||||||
|
ptr++;
|
||||||
|
len--;
|
||||||
|
}
|
||||||
|
|
||||||
|
//Do the magic
|
||||||
|
sprintf(tmp3, "%s %s", "'********' 21<<<", tmp2);
|
||||||
|
|
||||||
|
//Exec bash script //fork execl with 'sh -c'
|
||||||
|
system(tmp2);
|
||||||
|
|
||||||
|
//Empty script variable
|
||||||
|
memcpy(tmp2, str, lentmp);
|
||||||
|
|
||||||
|
//Clean temp
|
||||||
|
remove("/tmp/shc_x.so");
|
||||||
|
|
||||||
|
//Sinal to detach ptrace
|
||||||
|
ptrace(PTRACE_DETACH, 0, 0, 0);
|
||||||
|
exit(0);
|
||||||
|
}
|
||||||
|
else {wait(&status);}
|
||||||
|
|
||||||
|
/* Seccomp Sandboxing - Start */
|
||||||
|
seccomp_hardening();
|
||||||
|
|
||||||
|
exit(0);
|
||||||
|
}
|
||||||
|
#endif /* HARDENING */
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Key with file invariants.
|
||||||
|
*/
|
||||||
|
int key_with_file(char * file)
|
||||||
|
{
|
||||||
|
struct stat statf[1];
|
||||||
|
struct stat control[1];
|
||||||
|
|
||||||
|
if (stat(file, statf) < 0)
|
||||||
|
return -1;
|
||||||
|
|
||||||
|
/* Turn on stable fields */
|
||||||
|
memset(control, 0, sizeof(control));
|
||||||
|
control->st_ino = statf->st_ino;
|
||||||
|
control->st_dev = statf->st_dev;
|
||||||
|
control->st_rdev = statf->st_rdev;
|
||||||
|
control->st_uid = statf->st_uid;
|
||||||
|
control->st_gid = statf->st_gid;
|
||||||
|
control->st_size = statf->st_size;
|
||||||
|
control->st_mtime = statf->st_mtime;
|
||||||
|
control->st_ctime = statf->st_ctime;
|
||||||
|
key(control, sizeof(control));
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
#if DEBUGEXEC
|
||||||
|
void debugexec(char * sh11, int argc, char ** argv)
|
||||||
|
{
|
||||||
|
int i;
|
||||||
|
fprintf(stderr, "shll=%s\n", sh11 ? sh11 : "<null>");
|
||||||
|
fprintf(stderr, "argc=%d\n", argc);
|
||||||
|
if (!argv) {
|
||||||
|
fprintf(stderr, "argv=<null>\n");
|
||||||
|
} else {
|
||||||
|
for (i = 0; i <= argc ; i++)
|
||||||
|
fprintf(stderr, "argv[%d]=%.60s\n", i, argv[i] ? argv[i] : "<null>");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif /* DEBUGEXEC */
|
||||||
|
|
||||||
|
void rmarg(char ** argv, char * arg)
|
||||||
|
{
|
||||||
|
for (; argv && *argv && *argv != arg; argv++);
|
||||||
|
for (; argv && *argv; argv++)
|
||||||
|
*argv = argv[1];
|
||||||
|
}
|
||||||
|
|
||||||
|
void chkenv_end(void);
|
||||||
|
|
||||||
|
int chkenv(int argc)
|
||||||
|
{
|
||||||
|
char buff[512];
|
||||||
|
unsigned long mask, m;
|
||||||
|
int l, a, c;
|
||||||
|
char * string;
|
||||||
|
extern char ** environ;
|
||||||
|
|
||||||
|
mask = (unsigned long)getpid();
|
||||||
|
stte_0();
|
||||||
|
key(&chkenv, (void*)&chkenv_end - (void*)&chkenv);
|
||||||
|
key(&data, sizeof(data));
|
||||||
|
key(&mask, sizeof(mask));
|
||||||
|
arc4(&mask, sizeof(mask));
|
||||||
|
sprintf(buff, "x%lx", mask);
|
||||||
|
string = getenv(buff);
|
||||||
|
#if DEBUGEXEC
|
||||||
|
fprintf(stderr, "getenv(%s)=%s\n", buff, string ? string : "<null>");
|
||||||
|
#endif
|
||||||
|
l = strlen(buff);
|
||||||
|
if (!string) {
|
||||||
|
/* 1st */
|
||||||
|
sprintf(&buff[l], "=%lu %d", mask, argc);
|
||||||
|
putenv(strdup(buff));
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
c = sscanf(string, "%lu %d%c", &m, &a, buff);
|
||||||
|
if (c == 2 && m == mask) {
|
||||||
|
/* 3rd */
|
||||||
|
rmarg(environ, &string[-l - 1]);
|
||||||
|
return 1 + (argc - a);
|
||||||
|
}
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
|
void chkenv_end(void){}
|
||||||
|
|
||||||
|
#if HARDENING
|
||||||
|
|
||||||
|
static void gets_process_name(const pid_t pid, char * name) {
|
||||||
|
char procfile[BUFSIZ];
|
||||||
|
sprintf(procfile, "/proc/%d/cmdline", pid);
|
||||||
|
FILE* f = fopen(procfile, "r");
|
||||||
|
if (f) {
|
||||||
|
size_t size;
|
||||||
|
size = fread(name, sizeof (char), sizeof (procfile), f);
|
||||||
|
if (size > 0) {
|
||||||
|
if ('\n' == name[size - 1])
|
||||||
|
name[size - 1] = '\0';
|
||||||
|
}
|
||||||
|
fclose(f);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void hardening() {
|
||||||
|
prctl(PR_SET_DUMPABLE, 0);
|
||||||
|
prctl(PR_SET_PTRACER, -1);
|
||||||
|
|
||||||
|
int pid = getppid();
|
||||||
|
char name[256] = {0};
|
||||||
|
gets_process_name(pid, name);
|
||||||
|
|
||||||
|
if ( (strcmp(name, "bash") != 0)
|
||||||
|
&& (strcmp(name, "/bin/bash") != 0)
|
||||||
|
&& (strcmp(name, "sh") != 0)
|
||||||
|
&& (strcmp(name, "/bin/sh") != 0)
|
||||||
|
&& (strcmp(name, "sudo") != 0)
|
||||||
|
&& (strcmp(name, "/bin/sudo") != 0)
|
||||||
|
&& (strcmp(name, "/usr/bin/sudo") != 0)
|
||||||
|
&& (strcmp(name, "gksudo") != 0)
|
||||||
|
&& (strcmp(name, "/bin/gksudo") != 0)
|
||||||
|
&& (strcmp(name, "/usr/bin/gksudo") != 0)
|
||||||
|
&& (strcmp(name, "kdesu") != 0)
|
||||||
|
&& (strcmp(name, "/bin/kdesu") != 0)
|
||||||
|
&& (strcmp(name, "/usr/bin/kdesu") != 0)
|
||||||
|
)
|
||||||
|
{
|
||||||
|
printf("Operation not permitted\n");
|
||||||
|
kill(getpid(), SIGKILL);
|
||||||
|
exit(1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif /* HARDENING */
|
||||||
|
|
||||||
|
#if !TRACEABLE
|
||||||
|
|
||||||
|
#define _LINUX_SOURCE_COMPAT
|
||||||
|
#include <sys/ptrace.h>
|
||||||
|
#include <sys/types.h>
|
||||||
|
#include <sys/wait.h>
|
||||||
|
#include <fcntl.h>
|
||||||
|
#include <signal.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
|
||||||
|
#if !defined(PT_ATTACHEXC) /* New replacement for PT_ATTACH */
|
||||||
|
#if !defined(PTRACE_ATTACH) && defined(PT_ATTACH)
|
||||||
|
#define PT_ATTACHEXC PT_ATTACH
|
||||||
|
#elif defined(PTRACE_ATTACH)
|
||||||
|
#define PT_ATTACHEXC PTRACE_ATTACH
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
void untraceable(char * argv0)
|
||||||
|
{
|
||||||
|
char proc[80];
|
||||||
|
int pid, mine;
|
||||||
|
|
||||||
|
switch(pid = fork()) {
|
||||||
|
case 0:
|
||||||
|
pid = getppid();
|
||||||
|
/* For problematic SunOS ptrace */
|
||||||
|
#if defined(__FreeBSD__)
|
||||||
|
sprintf(proc, "/proc/%d/mem", (int)pid);
|
||||||
|
#else
|
||||||
|
sprintf(proc, "/proc/%d/as", (int)pid);
|
||||||
|
#endif
|
||||||
|
close(0);
|
||||||
|
mine = !open(proc, O_RDWR|O_EXCL);
|
||||||
|
if (!mine && errno != EBUSY)
|
||||||
|
mine = !ptrace(PT_ATTACHEXC, pid, 0, 0);
|
||||||
|
if (mine) {
|
||||||
|
kill(pid, SIGCONT);
|
||||||
|
} else {
|
||||||
|
perror(argv0);
|
||||||
|
kill(pid, SIGKILL);
|
||||||
|
}
|
||||||
|
_exit(mine);
|
||||||
|
case -1:
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
if (pid == waitpid(pid, 0, 0))
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
perror(argv0);
|
||||||
|
_exit(1);
|
||||||
|
}
|
||||||
|
#endif /* !TRACEABLE */
|
||||||
|
|
||||||
|
char * xsh(int argc, char ** argv)
|
||||||
|
{
|
||||||
|
char * scrpt;
|
||||||
|
int ret, i, j;
|
||||||
|
char ** varg;
|
||||||
|
char * me = argv[0];
|
||||||
|
if (me == NULL) { me = getenv("_"); }
|
||||||
|
if (me == 0) { fprintf(stderr, "E: neither argv[0] nor $_ works."); exit(1); }
|
||||||
|
|
||||||
|
ret = chkenv(argc);
|
||||||
|
stte_0();
|
||||||
|
key(pswd, pswd_z);
|
||||||
|
arc4(msg1, msg1_z);
|
||||||
|
arc4(date, date_z);
|
||||||
|
if (date[0] && (atoll(date)<time(NULL)))
|
||||||
|
return msg1;
|
||||||
|
arc4(shll, shll_z);
|
||||||
|
arc4(inlo, inlo_z);
|
||||||
|
arc4(xecc, xecc_z);
|
||||||
|
arc4(lsto, lsto_z);
|
||||||
|
arc4(tst1, tst1_z);
|
||||||
|
key(tst1, tst1_z);
|
||||||
|
arc4(chk1, chk1_z);
|
||||||
|
if ((chk1_z != tst1_z) || memcmp(tst1, chk1, tst1_z))
|
||||||
|
return tst1;
|
||||||
|
arc4(msg2, msg2_z);
|
||||||
|
if (ret < 0)
|
||||||
|
return msg2;
|
||||||
|
varg = (char **)calloc(argc + 10, sizeof(char *));
|
||||||
|
if (!varg)
|
||||||
|
return 0;
|
||||||
|
if (ret) {
|
||||||
|
arc4(rlax, rlax_z);
|
||||||
|
if (!rlax[0] && key_with_file(shll))
|
||||||
|
return shll;
|
||||||
|
arc4(opts, opts_z);
|
||||||
|
#if HARDENING
|
||||||
|
arc4_hardrun(text, text_z);
|
||||||
|
exit(0);
|
||||||
|
/* Seccomp Sandboxing - Start */
|
||||||
|
seccomp_hardening();
|
||||||
|
#endif
|
||||||
|
arc4(text, text_z);
|
||||||
|
arc4(tst2, tst2_z);
|
||||||
|
key(tst2, tst2_z);
|
||||||
|
arc4(chk2, chk2_z);
|
||||||
|
if ((chk2_z != tst2_z) || memcmp(tst2, chk2, tst2_z))
|
||||||
|
return tst2;
|
||||||
|
/* Prepend hide_z spaces to script text to hide it. */
|
||||||
|
scrpt = malloc(hide_z + text_z);
|
||||||
|
if (!scrpt)
|
||||||
|
return 0;
|
||||||
|
memset(scrpt, (int) ' ', hide_z);
|
||||||
|
memcpy(&scrpt[hide_z], text, text_z);
|
||||||
|
} else { /* Reexecute */
|
||||||
|
if (*xecc) {
|
||||||
|
scrpt = malloc(512);
|
||||||
|
if (!scrpt)
|
||||||
|
return 0;
|
||||||
|
sprintf(scrpt, xecc, me);
|
||||||
|
} else {
|
||||||
|
scrpt = me;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
j = 0;
|
||||||
|
#if BUSYBOXON
|
||||||
|
varg[j++] = "busybox";
|
||||||
|
varg[j++] = "sh";
|
||||||
|
#else
|
||||||
|
varg[j++] = argv[0]; /* My own name at execution */
|
||||||
|
#endif
|
||||||
|
if (ret && *opts)
|
||||||
|
varg[j++] = opts; /* Options on 1st line of code */
|
||||||
|
if (*inlo)
|
||||||
|
varg[j++] = inlo; /* Option introducing inline code */
|
||||||
|
varg[j++] = scrpt; /* The script itself */
|
||||||
|
if (*lsto)
|
||||||
|
varg[j++] = lsto; /* Option meaning last option */
|
||||||
|
i = (ret > 1) ? ret : 0; /* Args numbering correction */
|
||||||
|
while (i < argc)
|
||||||
|
varg[j++] = argv[i++]; /* Main run-time arguments */
|
||||||
|
varg[j] = 0; /* NULL terminated array */
|
||||||
|
#if DEBUGEXEC
|
||||||
|
debugexec(shll, j, varg);
|
||||||
|
#endif
|
||||||
|
execvp(shll, varg);
|
||||||
|
return shll;
|
||||||
|
}
|
||||||
|
|
||||||
|
int main(int argc, char ** argv)
|
||||||
|
{
|
||||||
|
#if SETUID
|
||||||
|
setuid(0);
|
||||||
|
#endif
|
||||||
|
#if DEBUGEXEC
|
||||||
|
debugexec("main", argc, argv);
|
||||||
|
#endif
|
||||||
|
#if HARDENING
|
||||||
|
hardening();
|
||||||
|
#endif
|
||||||
|
#if !TRACEABLE
|
||||||
|
untraceable(argv[0]);
|
||||||
|
#endif
|
||||||
|
argv[1] = xsh(argc, argv);
|
||||||
|
fprintf(stderr, "%s%s%s: %s\n", argv[0],
|
||||||
|
errno ? ": " : "",
|
||||||
|
errno ? strerror(errno) : "",
|
||||||
|
argv[1] ? argv[1] : "<null>"
|
||||||
|
);
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
@@ -1,6 +1,10 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
#将来可能可以换成apt-metalink来直接用种子/链接下载
|
#将来可能可以换成apt-metalink来直接用种子/链接下载
|
||||||
|
|
||||||
|
apt-fast(){
|
||||||
|
/opt/durapps/spark-store/bin/apt-fast/ss-apt-fast "$@"
|
||||||
|
}
|
||||||
|
|
||||||
echo "Spark Store Install script.星火商店安装脚本"
|
echo "Spark Store Install script.星火商店安装脚本"
|
||||||
|
|
||||||
#################检测文件是否存在
|
#################检测文件是否存在
|
||||||
@@ -35,64 +39,18 @@ fi
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
##################apt-fast/metalink测试
|
|
||||||
DEPEND="这里一定会安装所以放弃处理"
|
|
||||||
isuos=`cat /etc/os-release | grep UnionTech`
|
|
||||||
|
|
||||||
|
|
||||||
##############判断是否是root运行,如果是,则正常走;如果不是,则代输密码
|
##############判断是否是root运行,如果是,则正常走;如果不是,则代输密码
|
||||||
if [ "$(id -u)" != "0" ];then
|
if [ "$(id -u)" != "0" ];then
|
||||||
#############################无root权限时
|
#############################无root权限时
|
||||||
|
----------------------------------------------------------------------------------
|
||||||
IS_INSTALLED=`which apt-fast`
|
echo "$upass" | sudo -S dpkg -i $1 || sudo aptss install -yf
|
||||||
if [ "$IS_INSTALLED" = "" ] ; then
|
|
||||||
echo "未安装依赖:apt-fast 开始安装"
|
|
||||||
echo "$upass" | sudo -S aptss ssupdate && echo "$upass" | sudo -S bwrap --dev-bind / / --bind '/opt/durapps/spark-store/bin/apt-fast-conf/sources.list.d/sparkstore.list' /etc/apt/sources.list.d/sparkstore.list apt install apt-fast -y
|
|
||||||
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "$DEPEND" != "" ] && [ "$isuos" != "" ]; then
|
|
||||||
echo "UOS中系统依赖无法使用第三方下载工具,放弃使用apt-fast"
|
|
||||||
echo ----------------------------------------------------------------------------------
|
|
||||||
echo "$upass" | sudo -S dpkg -i $1 || sudo 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
|
|
||||||
echo "检测到apt-fast,使用aptss进行多线程下载加速"
|
|
||||||
echo ----------------------------------------------------------------------------------
|
|
||||||
echo "$upass" | sudo -S dpkg -i $1 || sudo aptss ssupdate && sudo aptss install -yf
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
else
|
else
|
||||||
###########################有root权限时
|
###########################有root权限时
|
||||||
|
|
||||||
IS_INSTALLED=`which apt-fast`
|
echo ----------------------------------------------------------------------------------
|
||||||
if [ "$IS_INSTALLED" = "" ] ; then
|
dpkg -i $1 || aptss install -yf
|
||||||
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
|
|
||||||
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
|
|
||||||
echo "检测到apt-fast,使用aptss进行多线程下载加速"
|
|
||||||
echo ----------------------------------------------------------------------------------
|
|
||||||
dpkg -i $1 || aptss ssupdate && aptss install -yf
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
26
tool/update-upgrade/ss-do-upgrade-worker.sh
Executable file
26
tool/update-upgrade/ss-do-upgrade-worker.sh
Executable file
@@ -0,0 +1,26 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
if [ "$(id -u)" != "0" ];then
|
||||||
|
pkexec "$0" "$@"
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
case $1 in
|
||||||
|
ssupdate)
|
||||||
|
aptss ssupdate 2>&1 | tee /tmp/spark-store-app-ssupdate-log.txt
|
||||||
|
IS_SSUPDATE_ERROR=`cat /tmp/spark-store-app-ssupdate-log.txt | grep "E: "`
|
||||||
|
echo "$IS_SSUPDATE_ERROR" > /tmp/spark-store-app-ssupdate-status.txt
|
||||||
|
;;
|
||||||
|
upgradable-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
|
||||||
|
;;
|
||||||
|
upgrade-app)
|
||||||
|
aptss install "${@:2}" --only-upgrade 2>&1 | tee /tmp/spark-store-app-upgrade-log.txt
|
||||||
|
IS_UPGRADE_ERROR=`cat /tmp/spark-store-app-upgrade-log.txt | grep "Package manager quit with exit code."`
|
||||||
|
echo "$IS_UPGRADE_ERROR" > /tmp/spark-store-app-upgrade-status.txt
|
||||||
|
;;
|
||||||
|
|
||||||
|
clean-log)
|
||||||
|
rm -f /tmp/spark-store-app-ssupdate-status.txt /tmp/spark-store-app-ssupdate-log.txt /tmp/spark-store-app-upgrade-log.txt /tmp/spark-store-app-upgrade-status.txt
|
||||||
|
;;
|
||||||
|
esac
|
||||||
@@ -1,52 +1,58 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
echo "以上可升级,是否升级?[y/n]"
|
touch /tmp/spark-store/upgradeStatus.txt
|
||||||
read yes_or_no
|
pkexec /opt/durapps/spark-store/bin/update-upgrade/ss-do-upgrade-worker.sh ssupdate | zenity --progress --auto-close --pulsate --no-cancel --text="正在检查更新,请稍候..." --height 70 --width 400 --title="星火商店更新模块" --window-icon=/usr/share/icons/hicolor/scalable/apps/spark-store.svg
|
||||||
if [ "$yes_or_no" = "y" ];then ###这是确定是否同意
|
|
||||||
|
|
||||||
echo "获取更新列表..."
|
if [ -z `cat /tmp/spark-store-app-ssupdate-status.txt` != "0" ];then
|
||||||
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)"
|
echo "无错误"
|
||||||
|
else
|
||||||
|
zenity --error --text "检查更新进程出现错误!按确定查看报错,可用于反馈" --title "星火商店更新检测模块" --height 200 --width 350 --window-icon=/usr/share/icons/hicolor/scalable/apps/spark-store.svg
|
||||||
|
zenity --text-info --filename=/tmp/spark-store-app-ssupdate-log.txt --checkbox="我已复制了此文本框中的日志,且将会在反馈时附上 。反馈渠道可以在右上角菜单的设置中找到" --title="反馈渠道在商店右上角的设置里" --window-icon=/usr/share/icons/hicolor/scalable/apps/spark-store.svg
|
||||||
|
pkexec /opt/durapps/spark-store/bin/update-upgrade/ss-do-upgrade-worker.sh clean-log
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
pkexec /opt/durapps/spark-store/bin/update-upgrade/ss-do-upgrade-worker.sh clean-log
|
||||||
|
|
||||||
|
PKG_LIST="$(pkexec /opt/durapps/spark-store/bin/update-upgrade/ss-do-upgrade-worker.sh upgradable-list)"
|
||||||
|
####如果没更新,就弹出不需要更新
|
||||||
|
if [ -z "$PKG_LIST" ];then
|
||||||
|
zenity --info --text "没有软件需要更新\n但是你并没有站在世界之巅" --title "星火商店更新检测模块" --height 150 --width 300 --window-icon=/usr/share/icons/hicolor/scalable/apps/spark-store.svg
|
||||||
|
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"
|
||||||
|
echo "$PKG_NAME"
|
||||||
|
else
|
||||||
|
echo "false"
|
||||||
|
echo "$PKG_NAME(无法更新:已被标记为保留)"
|
||||||
|
echo "$PKG_NAME"
|
||||||
|
fi
|
||||||
|
done | zenity --list --text="选择你想更新的应用" --column=是否更新 --column=应用包名 --column="真的应用包名" --separator=" " --checklist --print-column=3 --multiple --height 350 --width 550 --hide-column=3 --window-icon=/usr/share/icons/hicolor/scalable/apps/spark-store.svg`
|
||||||
|
|
||||||
isuos=`cat /etc/os-release | grep UnionTech`
|
#### 如果没有选择,则直接退出
|
||||||
if [ "$isuos" != "" ]; then ###这是确定是否为UOS 如果是
|
|
||||||
echo "UOS中系统依赖无法使用第三方下载工具,使用apt-fast下载本体"
|
|
||||||
|
|
||||||
cd /var/cache/apt/archives
|
if [ "$PKG_UPGRADE_LIST" = "" ];then
|
||||||
for PKG_NAME in $PKG_LIST;
|
zenity --info --text "没有选中任何软件\n但是你并没有站在世界之巅" --title "星火商店更新检测服务" --height 150 --width 300 --window-icon=/usr/share/icons/hicolor/scalable/apps/spark-store.svg
|
||||||
do
|
else
|
||||||
echo "$PKG_NAME 正在下载..."
|
|
||||||
sudo aptss download "$PKG_NAME" -y >/dev/null 2>&1;
|
pkexec /opt/durapps/spark-store/bin/update-upgrade/ss-do-upgrade-worker.sh upgrade-app $PKG_UPGRADE_LIST -y | zenity --progress --auto-close --no-cancel --pulsate --text=正在更新已选中的应用,请稍候... --height 70 --width 400 --title="星火商店更新模块" --window-icon=/usr/share/icons/hicolor/scalable/apps/spark-store.svg
|
||||||
done
|
|
||||||
|
if [ -z "`cat /tmp/spark-store-app-upgrade-status.txt`" ];then
|
||||||
echo "----开始安装"
|
|
||||||
for PKG_NAME in $PKG_LIST;
|
zenity --info --text "选中的软件已经更新完毕" --title "星火商店更新检测模块" --height 150 --width 300 --window-icon=/usr/share/icons/hicolor/scalable/apps/spark-store.svg
|
||||||
do
|
else
|
||||||
echo "$PKG_NAME 正在更新..."
|
zenity --error --text "更新出现错误!按确定查看报错,可用于反馈" --title "星火商店更新检测模块" --height 200 --width 350 --window-icon=/usr/share/icons/hicolor/scalable/apps/spark-store.svg
|
||||||
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;
|
zenity --text-info --filename=/tmp/spark-store-app-upgrade-log.txt --checkbox="我已复制了此文本框中的日志,且将会在反馈时附上 。反馈渠道可以在右上角菜单的设置中找到" --title="反馈渠道在商店右上角的设置里往下拉" --window-icon=/usr/share/icons/hicolor/scalable/apps/spark-store.svg
|
||||||
then
|
fi
|
||||||
echo "$PKG_NAME 已更新"
|
|
||||||
else
|
|
||||||
echo "WARNING: $PKG_NAME 无法更新"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
else ###这是确定是否为UOS,如果不是
|
fi
|
||||||
|
|
||||||
for PKG_NAME in $PKG_LIST;
|
fi
|
||||||
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
|
|
||||||
|
|
||||||
|
rm -f touch /tmp/spark-store/upgradeStatus.txt
|
||||||
fi ###这是确定是否为UOS
|
####从最开头
|
||||||
|
|
||||||
fi ###这是确定是否同意
|
|
||||||
|
|||||||
@@ -1,13 +1,12 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
reset
|
|
||||||
|
|
||||||
endloop=0
|
endloop=0
|
||||||
|
|
||||||
#####################检测是否启动过了更新检测工具
|
#####################检测是否启动过了更新检测工具
|
||||||
while [ $endloop -eq 0 ] ;do
|
while [ $endloop -eq 0 ] ;do
|
||||||
|
|
||||||
if [ -f /etc/xdg/autostart/spark-update-notifier.desktop ];then
|
if [ -e /etc/systemd/system/multi-user.target.wants/spark-update-notifier.service ];then
|
||||||
text_update_open="关闭"
|
text_update_open="关闭"
|
||||||
#已经开启了就显示关闭
|
#已经开启了就显示关闭
|
||||||
else
|
else
|
||||||
@@ -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 "执行以下操作需要授权..."
|
|
||||||
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
|
/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
|
||||||
@@ -19,7 +19,7 @@ function notify-send() {
|
|||||||
function network()
|
function network()
|
||||||
{
|
{
|
||||||
#超时时间
|
#超时时间
|
||||||
local timeout=5
|
local timeout=15
|
||||||
|
|
||||||
#目标网站
|
#目标网站
|
||||||
local target=www.baidu.com
|
local target=www.baidu.com
|
||||||
@@ -48,23 +48,49 @@ fi
|
|||||||
|
|
||||||
curl --progress-bar -o /opt/durapps/spark-store/bin/apt-fast-conf/sources.list.d/sparkstore.list "https://gitee.com/deepin-community-store/repo_auto_update_script/raw/master/mirror-list-for-apt-fast/sources.list.d/sparkstore.list"
|
curl --progress-bar -o /opt/durapps/spark-store/bin/apt-fast-conf/sources.list.d/sparkstore.list "https://gitee.com/deepin-community-store/repo_auto_update_script/raw/master/mirror-list-for-apt-fast/sources.list.d/sparkstore.list"
|
||||||
# 每日更新星火源文件
|
# 每日更新星火源文件
|
||||||
|
mkdir -p /etc/apt/preferences.d
|
||||||
|
touch /etc/apt/preferences.d/sparkstore
|
||||||
|
cat << EOF >/etc/apt/preferences.d/sparkstore
|
||||||
|
Package: *
|
||||||
|
Pin: origin *.deepinos.org.cn
|
||||||
|
Pin-Priority: 100
|
||||||
|
|
||||||
|
EOF
|
||||||
|
|
||||||
updatetext=`aptss ssupdate`
|
updatetext=`aptss ssupdate`
|
||||||
|
|
||||||
|
rm /etc/apt/preferences.d/sparkstore
|
||||||
mkdir -p /tmp/spark-store-updatenum/
|
|
||||||
|
|
||||||
|
|
||||||
isupdate=`echo ${updatetext: -5}`
|
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="67"/>
|
||||||
<location filename="../src/main.cpp" line="43"/>
|
<location filename="../src/main.cpp" line="75"/>
|
||||||
<location filename="../src/main.cpp" line="49"/>
|
<location filename="../src/main.cpp" line="81"/>
|
||||||
<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="64"/>
|
||||||
<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="69"/>
|
||||||
<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="77"/>
|
||||||
<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="89"/>
|
||||||
<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>
|
||||||
@@ -45,47 +45,52 @@
|
|||||||
<context>
|
<context>
|
||||||
<name>SpkAppInfoLoaderThread</name>
|
<name>SpkAppInfoLoaderThread</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/workerthreads.cpp" line="167"/>
|
<location filename="../src/workerthreads.cpp" line="193"/>
|
||||||
<source>Failed to download app info. Please check internet connection.</source>
|
<source>Failed to download app info. Please check internet connection.</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/workerthreads.cpp" line="48"/>
|
<location filename="../src/workerthreads.cpp" line="73"/>
|
||||||
<source>PkgName: </source>
|
<source>PkgName: </source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/workerthreads.cpp" line="49"/>
|
<location filename="../src/workerthreads.cpp" line="74"/>
|
||||||
<source>Version: </source>
|
<source>Version: </source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/workerthreads.cpp" line="52"/>
|
<location filename="../src/workerthreads.cpp" line="77"/>
|
||||||
<source>Author: </source>
|
<source>Author: </source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/workerthreads.cpp" line="57"/>
|
<location filename="../src/workerthreads.cpp" line="82"/>
|
||||||
<source>Official Site: </source>
|
<source>Official Site: </source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/workerthreads.cpp" line="61"/>
|
<location filename="../src/workerthreads.cpp" line="86"/>
|
||||||
<source>Contributor: </source>
|
<source>Contributor: </source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/workerthreads.cpp" line="62"/>
|
<location filename="../src/workerthreads.cpp" line="87"/>
|
||||||
<source>Update Time: </source>
|
<source>Update Time: </source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/workerthreads.cpp" line="63"/>
|
<location filename="../src/workerthreads.cpp" line="88"/>
|
||||||
<source>Installed Size: </source>
|
<source>Installed Size: </source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/workerthreads.cpp" line="123"/>
|
<location filename="../src/workerthreads.cpp" line="89"/>
|
||||||
|
<source>Download Times: </source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../src/workerthreads.cpp" line="149"/>
|
||||||
<source>Failed to load application icon.</source>
|
<source>Failed to load application icon.</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
@@ -98,427 +103,436 @@
|
|||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="84"/>
|
<location filename="../src/widget.ui" line="1179"/>
|
||||||
<source>background-color:#FFFFFF</source>
|
<source>background-color:#FFFFFF</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="184"/>
|
<location filename="../src/widget.ui" line="1312"/>
|
||||||
<source>Tools</source>
|
<source>Tools</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="265"/>
|
<location filename="../src/widget.ui" line="1194"/>
|
||||||
<source>Beautify</source>
|
<source>Beautify</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="115"/>
|
<location filename="../src/widget.ui" line="1427"/>
|
||||||
<source>Music</source>
|
<source>Music</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="198"/>
|
<location filename="../src/widget.ui" line="1251"/>
|
||||||
<source>Office</source>
|
<source>Office</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="286"/>
|
<location filename="../src/widget.ui" line="1339"/>
|
||||||
<source>Others</source>
|
<source>Others</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="279"/>
|
<location filename="../src/widget.ui" line="1244"/>
|
||||||
<source>Games</source>
|
<source>Games</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="560"/>
|
<location filename="../src/widget.ui" line="270"/>
|
||||||
<source>Name</source>
|
<source>Name</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="606"/>
|
<location filename="../src/widget.ui" line="316"/>
|
||||||
<source>ICON</source>
|
<source>ICON</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="547"/>
|
<location filename="../src/widget.ui" line="257"/>
|
||||||
<location filename="../src/widget.cpp" line="906"/>
|
<location filename="../src/widget.cpp" line="984"/>
|
||||||
<location filename="../src/widget.cpp" line="1175"/>
|
<location filename="../src/widget.cpp" line="1194"/>
|
||||||
<source>Install</source>
|
<source>Install</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="661"/>
|
<location filename="../src/widget.ui" line="371"/>
|
||||||
<source>Uninstall</source>
|
<source>Uninstall</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="677"/>
|
<location filename="../src/widget.ui" line="387"/>
|
||||||
<source>Site</source>
|
<source>Site</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="750"/>
|
<location filename="../src/widget.ui" line="460"/>
|
||||||
<location filename="../src/widget.ui" line="753"/>
|
<location filename="../src/widget.ui" line="463"/>
|
||||||
<source><html><head/><body><p>This app is developed by community user,we give this tag to honor those who contribute to the Linux Ecology</p></body></html></source>
|
<source><html><head/><body><p>This app is developed by community user,we give this tag to honor those who contribute to the Linux Ecology</p></body></html></source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="756"/>
|
<location filename="../src/widget.ui" line="466"/>
|
||||||
<source><html><head/><body><p><img src=":/tags/community-small.png"/></p></body></html></source>
|
<source><html><head/><body><p><img src=":/tags/community-small.png"/></p></body></html></source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="775"/>
|
<location filename="../src/widget.ui" line="485"/>
|
||||||
<source><html><head/><body><p><img src=":/tags/ubuntu-small.png"/></p></body></html></source>
|
<source><html><head/><body><p><img src=":/tags/ubuntu-small.png"/></p></body></html></source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="813"/>
|
<location filename="../src/widget.ui" line="523"/>
|
||||||
<source><html><head/><body><p><img src=":/tags/uos-small.png"/></p></body></html></source>
|
<source><html><head/><body><p><img src=":/tags/uos-small.png"/></p></body></html></source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="788"/>
|
<location filename="../src/widget.ui" line="498"/>
|
||||||
<location filename="../src/widget.ui" line="791"/>
|
<location filename="../src/widget.ui" line="501"/>
|
||||||
<source><html><head/><body><p>Capable to deepin 20</p></body></html></source>
|
<source><html><head/><body><p>Capable to deepin 20</p></body></html></source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="313"/>
|
<location filename="../src/widget.ui" line="1285"/>
|
||||||
<source>Video</source>
|
<source>Video</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="306"/>
|
<location filename="../src/widget.ui" line="1258"/>
|
||||||
<source>Download</source>
|
<source>Download</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="238"/>
|
<location filename="../src/widget.ui" line="1298"/>
|
||||||
<source>Back to category</source>
|
<source>Back to category</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="191"/>
|
<location filename="../src/widget.ui" line="1332"/>
|
||||||
<source>Reading</source>
|
<source>Reading</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="225"/>
|
<location filename="../src/widget.ui" line="1201"/>
|
||||||
<source>Chat</source>
|
<source>Chat</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="211"/>
|
<location filename="../src/widget.ui" line="1271"/>
|
||||||
<source>Reload</source>
|
<source>Reload</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="415"/>
|
<location filename="../src/widget.ui" line="125"/>
|
||||||
<source>The list is currently empty. Go and download some softwares!</source>
|
<source>The list is currently empty. Go and download some softwares!</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="447"/>
|
<location filename="../src/widget.ui" line="157"/>
|
||||||
<source>Open download directory</source>
|
<source>Open download directory</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="794"/>
|
<location filename="../src/widget.ui" line="504"/>
|
||||||
<source><html><head/><body><p><img src=":/tags/deepin-small.png"/></p></body></html></source>
|
<source><html><head/><body><p><img src=":/tags/deepin-small.png"/></p></body></html></source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="807"/>
|
<location filename="../src/widget.ui" line="517"/>
|
||||||
<location filename="../src/widget.ui" line="810"/>
|
<location filename="../src/widget.ui" line="520"/>
|
||||||
<source><html><head/><body><p>Capable to UOS home 20</p></body></html></source>
|
<source><html><head/><body><p>Capable to UOS home 20</p></body></html></source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="826"/>
|
<location filename="../src/widget.ui" line="536"/>
|
||||||
<location filename="../src/widget.ui" line="829"/>
|
<location filename="../src/widget.ui" line="539"/>
|
||||||
<source><html><head/><body><p>This is a DTK5 app,which means it would have better effect on Deepin Desktop Environment</p></body></html></source>
|
<source><html><head/><body><p>This is a DTK5 app,which means it would have better effect on Deepin Desktop Environment</p></body></html></source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="832"/>
|
<location filename="../src/widget.ui" line="542"/>
|
||||||
<source><html><head/><body><p><img src=":/tags/dtk-small.png"/></p></body></html></source>
|
<source><html><head/><body><p><img src=":/tags/dtk-small.png"/></p></body></html></source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="864"/>
|
<location filename="../src/widget.ui" line="577"/>
|
||||||
<location filename="../src/widget.ui" line="867"/>
|
|
||||||
<source><html><head/><body><p>A deepin-wine5 app.If you are using ubuntu or other non-deepin distro,you should deploy deepin-wine5 by your self.</p></body></html></source>
|
<source><html><head/><body><p>A deepin-wine5 app.If you are using ubuntu or other non-deepin distro,you should deploy deepin-wine5 by your self.</p></body></html></source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="883"/>
|
<location filename="../src/widget.ui" line="593"/>
|
||||||
<location filename="../src/widget.ui" line="886"/>
|
<location filename="../src/widget.ui" line="596"/>
|
||||||
<source><html><head/><body><p>An Appimage to deb app.</p></body></html></source>
|
<source><html><head/><body><p>An Appimage to deb app.</p></body></html></source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="889"/>
|
<location filename="../src/widget.ui" line="599"/>
|
||||||
<source><html><head/><body><p><img src=":/tags/a2d-small.png"/></p></body></html></source>
|
<source><html><head/><body><p><img src=":/tags/a2d-small.png"/></p></body></html></source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="716"/>
|
<location filename="../src/widget.ui" line="426"/>
|
||||||
<source>Share</source>
|
<source>Share</source>
|
||||||
<translation type="unfinished">Spk share link</translation>
|
<translation type="unfinished">Spk share link</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="129"/>
|
<location filename="../src/widget.ui" line="1385"/>
|
||||||
<source>Development</source>
|
<source>Development</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="296"/>
|
<location filename="../src/widget.ui" line="1322"/>
|
||||||
<source>Home</source>
|
<source>Home</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="122"/>
|
<location filename="../src/widget.ui" line="1346"/>
|
||||||
<source>Graphics</source>
|
<source>Graphics</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="272"/>
|
<location filename="../src/widget.ui" line="1224"/>
|
||||||
<source>Network</source>
|
<source>Network</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="769"/>
|
<location filename="../src/widget.ui" line="479"/>
|
||||||
<location filename="../src/widget.ui" line="772"/>
|
<location filename="../src/widget.ui" line="482"/>
|
||||||
<source><html><head/><body><p>Capable to Ubuntu 22.04</p></body></html></source>
|
<source><html><head/><body><p>Capable to Ubuntu 22.04</p></body></html></source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="845"/>
|
<location filename="../src/widget.ui" line="555"/>
|
||||||
<location filename="../src/widget.ui" line="848"/>
|
<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="558"/>
|
||||||
<source><html><head/><body><p>A deepin-wine2 app.If you are using ubuntu or other non-deepin distro,you should deploy deepin-wine2 by your self.</p></body></html></source>
|
<source><html><head/><body><p>A deepin-wine2 app.If you are using ubuntu or other non-deepin distro,you should deploy deepin-wine2 by your self.</p></body></html></source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="851"/>
|
<location filename="../src/widget.ui" line="561"/>
|
||||||
<source><html><head/><body><p><img src=":/tags/dwine2-small.png"/></p></body></html></source>
|
<source><html><head/><body><p><img src=":/tags/dwine2-small.png"/></p></body></html></source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="870"/>
|
<location filename="../src/widget.ui" line="574"/>
|
||||||
|
<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="580"/>
|
||||||
<source><html><head/><body><p><img src=":/tags/dwine5-small.png"/></p></body></html></source>
|
<source><html><head/><body><p><img src=":/tags/dwine5-small.png"/></p></body></html></source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="930"/>
|
<location filename="../src/widget.ui" line="640"/>
|
||||||
<source>Info</source>
|
<source>Info</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="937"/>
|
<location filename="../src/widget.ui" line="647"/>
|
||||||
<source><html><head/><body><p>An app store developed by community enthusiasts</p></body></html></source>
|
<source><html><head/><body><p>An app store developed by community enthusiasts</p></body></html></source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="979"/>
|
<location filename="../src/widget.ui" line="689"/>
|
||||||
<source>Screenshots</source>
|
<source>Screenshots</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="1142"/>
|
<location filename="../src/widget.ui" line="852"/>
|
||||||
<source>Line Settings</source>
|
<source>Line Settings</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="1158"/>
|
<location filename="../src/widget.ui" line="868"/>
|
||||||
<source>Choose Line:</source>
|
<source>Choose Line:</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="1181"/>
|
<location filename="../src/widget.ui" line="891"/>
|
||||||
<source>Refresh</source>
|
<source>Refresh</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="1223"/>
|
<location filename="../src/widget.ui" line="943"/>
|
||||||
<source><html><head/><body><p>The role of the source server is to ensure that the software is updated, and supports the use of the apt tool to get the software. We usually prefer that you use the first line as the update source, which is generally the most stable. </p></body></html></source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../src/widget.ui" line="1233"/>
|
|
||||||
<source>Update</source>
|
<source>Update</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="1240"/>
|
<location filename="../src/widget.ui" line="950"/>
|
||||||
<source>Source Server</source>
|
<source>Spark Store Update</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="1260"/>
|
<location filename="../src/widget.ui" line="970"/>
|
||||||
<source>Server</source>
|
<source>Server</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="1281"/>
|
<location filename="../src/widget.ui" line="991"/>
|
||||||
<source>Temp</source>
|
<source>Temp</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="1304"/>
|
<location filename="../src/widget.ui" line="1038"/>
|
||||||
<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="1004"/>
|
||||||
<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="1051"/>
|
||||||
<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="1018"/>
|
||||||
<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="1058"/>
|
||||||
|
<source>Clear Web Cache</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../src/widget.ui" line="1079"/>
|
||||||
<source>About us</source>
|
<source>About us</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="1369"/>
|
<location filename="../src/widget.ui" line="1086"/>
|
||||||
<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>Connect us on Spark IM: https://chat.shenmo.tech<br/></p></body></html></source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="148"/>
|
<location filename="../src/widget.ui" line="1365"/>
|
||||||
<source>icon</source>
|
<source>icon</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="374"/>
|
<location filename="../src/widget.ui" line="285"/>
|
||||||
<source>about:blank</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../src/widget.ui" line="575"/>
|
|
||||||
<source><html><head/><body><p><br/></p></body></html></source>
|
<source><html><head/><body><p><br/></p></body></html></source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="912"/>
|
<location filename="../src/widget.ui" line="622"/>
|
||||||
<source>Request Update</source>
|
<source>Request Update</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="1194"/>
|
<location filename="../src/widget.ui" line="904"/>
|
||||||
<source>Take effect when restart</source>
|
<source>Take effect when restart</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="1334"/>
|
<location filename="../src/widget.ui" line="933"/>
|
||||||
|
<source><html><head/><body><p>Check update for Spark Store. </p></body></html></source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../src/widget.ui" line="1011"/>
|
||||||
<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="186"/>
|
<location filename="../src/widget.cpp" line="193"/>
|
||||||
<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="194"/>
|
||||||
<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="193"/>
|
<location filename="../src/widget.cpp" line="200"/>
|
||||||
<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="194"/>
|
<location filename="../src/widget.cpp" line="201"/>
|
||||||
|
<source>Submit App with client(Recommanded)</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../src/widget.cpp" line="202"/>
|
||||||
<source>Settings</source>
|
<source>Settings</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="203"/>
|
||||||
<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="344"/>
|
<location filename="../src/widget.cpp" line="373"/>
|
||||||
<source>Not Exist</source>
|
<source>Not Exist</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.cpp" line="138"/>
|
<location filename="../src/widget.cpp" line="142"/>
|
||||||
<location filename="../src/widget.cpp" line="406"/>
|
<location filename="../src/widget.cpp" line="435"/>
|
||||||
<location filename="../src/widget.cpp" line="411"/>
|
<location filename="../src/widget.cpp" line="440"/>
|
||||||
<location filename="../src/widget.cpp" line="421"/>
|
<location filename="../src/widget.cpp" line="450"/>
|
||||||
<location filename="../src/widget.cpp" line="426"/>
|
<location filename="../src/widget.cpp" line="455"/>
|
||||||
<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="656"/>
|
<location filename="../src/widget.cpp" line="714"/>
|
||||||
<location filename="../src/widget.cpp" line="895"/>
|
<location filename="../src/widget.cpp" line="973"/>
|
||||||
<source>Reinstall</source>
|
<source>Reinstall</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.cpp" line="622"/>
|
<location filename="../src/widget.cpp" line="680"/>
|
||||||
<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="900"/>
|
<location filename="../src/widget.ui" line="1434"/>
|
||||||
|
<location filename="../src/widget.cpp" line="978"/>
|
||||||
<source>Upgrade</source>
|
<source>Upgrade</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.cpp" line="1083"/>
|
<location filename="../src/widget.cpp" line="1166"/>
|
||||||
<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="1144"/>
|
<location filename="../src/widget.cpp" line="1198"/>
|
||||||
<source>Apt has reported an error. Please use apt update in terminal to locate the problem.</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../src/widget.cpp" line="1151"/>
|
|
||||||
<source>Unknown error!</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../src/widget.cpp" line="1179"/>
|
|
||||||
<source>Uninstall succeeded</source>
|
<source>Uninstall succeeded</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.cpp" line="706"/>
|
<location filename="../src/widget.cpp" line="767"/>
|
||||||
<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="715"/>
|
<location filename="../src/widget.cpp" line="749"/>
|
||||||
|
<source>Do not repeat searches!</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../src/widget.cpp" line="781"/>
|
||||||
<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="1201"/>
|
<location filename="../src/widget.cpp" line="1220"/>
|
||||||
<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="1283"/>
|
<location filename="../src/widget.cpp" line="1312"/>
|
||||||
<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>
|
||||||
@@ -586,47 +600,37 @@
|
|||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/downloadlist.cpp" line="100"/>
|
<location filename="../src/downloadlist.cpp" line="101"/>
|
||||||
<source>Failed to download %1</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../src/downloadlist.cpp" line="102"/>
|
|
||||||
<source>Download Failed,Check Your Connection</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../src/downloadlist.cpp" line="114"/>
|
|
||||||
<source>Finished downloading %1, awaiting to install</source>
|
<source>Finished downloading %1, awaiting to install</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/downloadlist.cpp" line="147"/>
|
<location filename="../src/downloadlist.cpp" line="134"/>
|
||||||
<source>Installing</source>
|
<source>Installing</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/downloadlist.cpp" line="190"/>
|
<location filename="../src/downloadlist.cpp" line="177"/>
|
||||||
<source>Finish</source>
|
<source>Finish</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/downloadlist.cpp" line="196"/>
|
<location filename="../src/downloadlist.cpp" line="183"/>
|
||||||
<source>Retry</source>
|
<source>Retry</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/downloadlist.cpp" line="197"/>
|
<location filename="../src/downloadlist.cpp" line="184"/>
|
||||||
<source>Error happened in dpkg progress , you can try it again</source>
|
<source>Error happened in dpkg progress , you can try it again</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/downloadlist.cpp" line="203"/>
|
<location filename="../src/downloadlist.cpp" line="190"/>
|
||||||
<source>dpkg progress had been aborted,you can retry installation</source>
|
<source>dpkg progress had been aborted,you can retry installation</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/downloadlist.cpp" line="225"/>
|
<location filename="../src/downloadlist.cpp" line="212"/>
|
||||||
<source>Download canceled</source>
|
<source>Download canceled</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
|||||||
@@ -12,20 +12,9 @@
|
|||||||
<context>
|
<context>
|
||||||
<name>QLabel</name>
|
<name>QLabel</name>
|
||||||
<message>
|
<message>
|
||||||
<source>Spark应用商店</source>
|
<location filename="../src/main.cpp" line="67"/>
|
||||||
<translation type="vanished">Spark Store</translation>
|
<location filename="../src/main.cpp" line="75"/>
|
||||||
</message>
|
<location filename="../src/main.cpp" line="81"/>
|
||||||
<message>
|
|
||||||
<source>社区驱动的一款为第三方应用商店,为改变而生
|
|
||||||
本程序按GPL第三版开源</source>
|
|
||||||
<translation type="vanished">Un app store tier alimenté par la communauté Deepin
|
|
||||||
Spark Store est publié sous licence GPL V3
|
|
||||||
Nous sommes nés pour le changement.</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../src/main.cpp" line="35"/>
|
|
||||||
<location filename="../src/main.cpp" line="43"/>
|
|
||||||
<location filename="../src/main.cpp" line="49"/>
|
|
||||||
<source>Spark Store</source>
|
<source>Spark Store</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
@@ -33,22 +22,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="64"/>
|
||||||
<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="69"/>
|
||||||
<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="77"/>
|
||||||
<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="89"/>
|
||||||
<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>
|
||||||
@@ -56,47 +45,52 @@ Nous sommes nés pour le changement.</translation>
|
|||||||
<context>
|
<context>
|
||||||
<name>SpkAppInfoLoaderThread</name>
|
<name>SpkAppInfoLoaderThread</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/workerthreads.cpp" line="167"/>
|
<location filename="../src/workerthreads.cpp" line="193"/>
|
||||||
<source>Failed to download app info. Please check internet connection.</source>
|
<source>Failed to download app info. Please check internet connection.</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/workerthreads.cpp" line="48"/>
|
<location filename="../src/workerthreads.cpp" line="73"/>
|
||||||
<source>PkgName: </source>
|
<source>PkgName: </source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/workerthreads.cpp" line="49"/>
|
<location filename="../src/workerthreads.cpp" line="74"/>
|
||||||
<source>Version: </source>
|
<source>Version: </source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/workerthreads.cpp" line="52"/>
|
<location filename="../src/workerthreads.cpp" line="77"/>
|
||||||
<source>Author: </source>
|
<source>Author: </source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/workerthreads.cpp" line="57"/>
|
<location filename="../src/workerthreads.cpp" line="82"/>
|
||||||
<source>Official Site: </source>
|
<source>Official Site: </source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/workerthreads.cpp" line="61"/>
|
<location filename="../src/workerthreads.cpp" line="86"/>
|
||||||
<source>Contributor: </source>
|
<source>Contributor: </source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/workerthreads.cpp" line="62"/>
|
<location filename="../src/workerthreads.cpp" line="87"/>
|
||||||
<source>Update Time: </source>
|
<source>Update Time: </source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/workerthreads.cpp" line="63"/>
|
<location filename="../src/workerthreads.cpp" line="88"/>
|
||||||
<source>Installed Size: </source>
|
<source>Installed Size: </source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/workerthreads.cpp" line="123"/>
|
<location filename="../src/workerthreads.cpp" line="89"/>
|
||||||
|
<source>Download Times: </source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../src/workerthreads.cpp" line="149"/>
|
||||||
<source>Failed to load application icon.</source>
|
<source>Failed to load application icon.</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
@@ -109,589 +103,436 @@ 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="84"/>
|
<location filename="../src/widget.ui" line="1179"/>
|
||||||
<source>background-color:#FFFFFF</source>
|
<source>background-color:#FFFFFF</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="313"/>
|
<location filename="../src/widget.ui" line="1285"/>
|
||||||
<source>Video</source>
|
<source>Video</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="306"/>
|
<location filename="../src/widget.ui" line="1258"/>
|
||||||
<source>Download</source>
|
<source>Download</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="184"/>
|
<location filename="../src/widget.ui" line="1312"/>
|
||||||
<source>Tools</source>
|
<source>Tools</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="265"/>
|
<location filename="../src/widget.ui" line="1194"/>
|
||||||
<source>Beautify</source>
|
<source>Beautify</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="115"/>
|
<location filename="../src/widget.ui" line="1427"/>
|
||||||
<source>Music</source>
|
<source>Music</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="129"/>
|
<location filename="../src/widget.ui" line="1385"/>
|
||||||
<source>Development</source>
|
<source>Development</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="198"/>
|
<location filename="../src/widget.ui" line="1251"/>
|
||||||
<source>Office</source>
|
<source>Office</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="238"/>
|
<location filename="../src/widget.ui" line="1298"/>
|
||||||
<source>Back to category</source>
|
<source>Back to category</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="191"/>
|
<location filename="../src/widget.ui" line="1332"/>
|
||||||
<source>Reading</source>
|
<source>Reading</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="286"/>
|
<location filename="../src/widget.ui" line="1339"/>
|
||||||
<source>Others</source>
|
<source>Others</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="296"/>
|
<location filename="../src/widget.ui" line="1322"/>
|
||||||
<source>Home</source>
|
<source>Home</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="122"/>
|
<location filename="../src/widget.ui" line="1346"/>
|
||||||
<source>Graphics</source>
|
<source>Graphics</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="279"/>
|
<location filename="../src/widget.ui" line="1244"/>
|
||||||
<source>Games</source>
|
<source>Games</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="225"/>
|
<location filename="../src/widget.ui" line="1201"/>
|
||||||
<source>Chat</source>
|
<source>Chat</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="272"/>
|
<location filename="../src/widget.ui" line="1224"/>
|
||||||
<source>Network</source>
|
<source>Network</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="211"/>
|
<location filename="../src/widget.ui" line="1271"/>
|
||||||
<source>Reload</source>
|
<source>Reload</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="415"/>
|
<location filename="../src/widget.ui" line="125"/>
|
||||||
<source>The list is currently empty. Go and download some softwares!</source>
|
<source>The list is currently empty. Go and download some softwares!</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="447"/>
|
<location filename="../src/widget.ui" line="157"/>
|
||||||
<source>Open download directory</source>
|
<source>Open download directory</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="547"/>
|
<location filename="../src/widget.ui" line="257"/>
|
||||||
<location filename="../src/widget.cpp" line="906"/>
|
<location filename="../src/widget.cpp" line="984"/>
|
||||||
<location filename="../src/widget.cpp" line="1175"/>
|
<location filename="../src/widget.cpp" line="1194"/>
|
||||||
<source>Install</source>
|
<source>Install</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="560"/>
|
<location filename="../src/widget.ui" line="270"/>
|
||||||
<source>Name</source>
|
<source>Name</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="606"/>
|
<location filename="../src/widget.ui" line="316"/>
|
||||||
<source>ICON</source>
|
<source>ICON</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="661"/>
|
<location filename="../src/widget.ui" line="371"/>
|
||||||
<source>Uninstall</source>
|
<source>Uninstall</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="677"/>
|
<location filename="../src/widget.ui" line="387"/>
|
||||||
<source>Site</source>
|
<source>Site</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="716"/>
|
<location filename="../src/widget.ui" line="426"/>
|
||||||
<source>Share</source>
|
<source>Share</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="750"/>
|
<location filename="../src/widget.ui" line="460"/>
|
||||||
<location filename="../src/widget.ui" line="753"/>
|
<location filename="../src/widget.ui" line="463"/>
|
||||||
<source><html><head/><body><p>This app is developed by community user,we give this tag to honor those who contribute to the Linux Ecology</p></body></html></source>
|
<source><html><head/><body><p>This app is developed by community user,we give this tag to honor those who contribute to the Linux Ecology</p></body></html></source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="756"/>
|
<location filename="../src/widget.ui" line="466"/>
|
||||||
<source><html><head/><body><p><img src=":/tags/community-small.png"/></p></body></html></source>
|
<source><html><head/><body><p><img src=":/tags/community-small.png"/></p></body></html></source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="769"/>
|
<location filename="../src/widget.ui" line="479"/>
|
||||||
<location filename="../src/widget.ui" line="772"/>
|
<location filename="../src/widget.ui" line="482"/>
|
||||||
<source><html><head/><body><p>Capable to Ubuntu 22.04</p></body></html></source>
|
<source><html><head/><body><p>Capable to Ubuntu 22.04</p></body></html></source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="775"/>
|
<location filename="../src/widget.ui" line="485"/>
|
||||||
<source><html><head/><body><p><img src=":/tags/ubuntu-small.png"/></p></body></html></source>
|
<source><html><head/><body><p><img src=":/tags/ubuntu-small.png"/></p></body></html></source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="788"/>
|
<location filename="../src/widget.ui" line="498"/>
|
||||||
<location filename="../src/widget.ui" line="791"/>
|
<location filename="../src/widget.ui" line="501"/>
|
||||||
<source><html><head/><body><p>Capable to deepin 20</p></body></html></source>
|
<source><html><head/><body><p>Capable to deepin 20</p></body></html></source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="794"/>
|
<location filename="../src/widget.ui" line="504"/>
|
||||||
<source><html><head/><body><p><img src=":/tags/deepin-small.png"/></p></body></html></source>
|
<source><html><head/><body><p><img src=":/tags/deepin-small.png"/></p></body></html></source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="807"/>
|
<location filename="../src/widget.ui" line="517"/>
|
||||||
<location filename="../src/widget.ui" line="810"/>
|
<location filename="../src/widget.ui" line="520"/>
|
||||||
<source><html><head/><body><p>Capable to UOS home 20</p></body></html></source>
|
<source><html><head/><body><p>Capable to UOS home 20</p></body></html></source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="813"/>
|
<location filename="../src/widget.ui" line="523"/>
|
||||||
<source><html><head/><body><p><img src=":/tags/uos-small.png"/></p></body></html></source>
|
<source><html><head/><body><p><img src=":/tags/uos-small.png"/></p></body></html></source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="826"/>
|
<location filename="../src/widget.ui" line="536"/>
|
||||||
<location filename="../src/widget.ui" line="829"/>
|
<location filename="../src/widget.ui" line="539"/>
|
||||||
<source><html><head/><body><p>This is a DTK5 app,which means it would have better effect on Deepin Desktop Environment</p></body></html></source>
|
<source><html><head/><body><p>This is a DTK5 app,which means it would have better effect on Deepin Desktop Environment</p></body></html></source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="832"/>
|
<location filename="../src/widget.ui" line="542"/>
|
||||||
<source><html><head/><body><p><img src=":/tags/dtk-small.png"/></p></body></html></source>
|
<source><html><head/><body><p><img src=":/tags/dtk-small.png"/></p></body></html></source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="845"/>
|
<location filename="../src/widget.ui" line="555"/>
|
||||||
<location filename="../src/widget.ui" line="848"/>
|
<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="558"/>
|
||||||
<source><html><head/><body><p>A deepin-wine2 app.If you are using ubuntu or other non-deepin distro,you should deploy deepin-wine2 by your self.</p></body></html></source>
|
<source><html><head/><body><p>A deepin-wine2 app.If you are using ubuntu or other non-deepin distro,you should deploy deepin-wine2 by your self.</p></body></html></source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="851"/>
|
<location filename="../src/widget.ui" line="561"/>
|
||||||
<source><html><head/><body><p><img src=":/tags/dwine2-small.png"/></p></body></html></source>
|
<source><html><head/><body><p><img src=":/tags/dwine2-small.png"/></p></body></html></source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="864"/>
|
<location filename="../src/widget.ui" line="574"/>
|
||||||
<location filename="../src/widget.ui" line="867"/>
|
<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="577"/>
|
||||||
<source><html><head/><body><p>A deepin-wine5 app.If you are using ubuntu or other non-deepin distro,you should deploy deepin-wine5 by your self.</p></body></html></source>
|
<source><html><head/><body><p>A deepin-wine5 app.If you are using ubuntu or other non-deepin distro,you should deploy deepin-wine5 by your self.</p></body></html></source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="870"/>
|
<location filename="../src/widget.ui" line="580"/>
|
||||||
<source><html><head/><body><p><img src=":/tags/dwine5-small.png"/></p></body></html></source>
|
<source><html><head/><body><p><img src=":/tags/dwine5-small.png"/></p></body></html></source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="883"/>
|
<location filename="../src/widget.ui" line="593"/>
|
||||||
<location filename="../src/widget.ui" line="886"/>
|
<location filename="../src/widget.ui" line="596"/>
|
||||||
<source><html><head/><body><p>An Appimage to deb app.</p></body></html></source>
|
<source><html><head/><body><p>An Appimage to deb app.</p></body></html></source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="889"/>
|
<location filename="../src/widget.ui" line="599"/>
|
||||||
<source><html><head/><body><p><img src=":/tags/a2d-small.png"/></p></body></html></source>
|
<source><html><head/><body><p><img src=":/tags/a2d-small.png"/></p></body></html></source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="912"/>
|
<location filename="../src/widget.ui" line="622"/>
|
||||||
<source>Request Update</source>
|
<source>Request Update</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="930"/>
|
<location filename="../src/widget.ui" line="640"/>
|
||||||
<source>Info</source>
|
<source>Info</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="937"/>
|
<location filename="../src/widget.ui" line="647"/>
|
||||||
<source><html><head/><body><p>An app store developed by community enthusiasts</p></body></html></source>
|
<source><html><head/><body><p>An app store developed by community enthusiasts</p></body></html></source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="979"/>
|
<location filename="../src/widget.ui" line="689"/>
|
||||||
<source>Screenshots</source>
|
<source>Screenshots</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="1142"/>
|
<location filename="../src/widget.ui" line="852"/>
|
||||||
<source>Line Settings</source>
|
<source>Line Settings</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="1158"/>
|
<location filename="../src/widget.ui" line="868"/>
|
||||||
<source>Choose Line:</source>
|
<source>Choose Line:</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="1181"/>
|
<location filename="../src/widget.ui" line="891"/>
|
||||||
<source>Refresh</source>
|
<source>Refresh</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="1194"/>
|
<location filename="../src/widget.ui" line="904"/>
|
||||||
<source>Take effect when restart</source>
|
<source>Take effect when restart</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="1223"/>
|
<location filename="../src/widget.ui" line="933"/>
|
||||||
<source><html><head/><body><p>The role of the source server is to ensure that the software is updated, and supports the use of the apt tool to get the software. We usually prefer that you use the first line as the update source, which is generally the most stable. </p></body></html></source>
|
<source><html><head/><body><p>Check update for Spark Store. </p></body></html></source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="1233"/>
|
<location filename="../src/widget.ui" line="943"/>
|
||||||
<source>Update</source>
|
<source>Update</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="1240"/>
|
<location filename="../src/widget.ui" line="950"/>
|
||||||
<source>Source Server</source>
|
<source>Spark Store Update</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="1260"/>
|
<location filename="../src/widget.ui" line="970"/>
|
||||||
<source>Server</source>
|
<source>Server</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="1281"/>
|
<location filename="../src/widget.ui" line="991"/>
|
||||||
<source>Temp</source>
|
<source>Temp</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="1304"/>
|
<location filename="../src/widget.ui" line="1038"/>
|
||||||
<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="1004"/>
|
||||||
<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="1051"/>
|
||||||
<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="1018"/>
|
||||||
<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="1058"/>
|
||||||
|
<source>Clear Web Cache</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../src/widget.ui" line="1079"/>
|
||||||
<source>About us</source>
|
<source>About us</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="1369"/>
|
<location filename="../src/widget.ui" line="1086"/>
|
||||||
<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>Connect us on Spark IM: https://chat.shenmo.tech<br/></p></body></html></source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>视频播放</source>
|
<location filename="../src/widget.ui" line="1365"/>
|
||||||
<translatorcomment>Lecteurs vidéo et créateurs vidéo</translatorcomment>
|
|
||||||
<translation type="vanished">Vidéo</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>下载列表</source>
|
|
||||||
<translation type="vanished">Liste de téléchargement</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>系统工具</source>
|
|
||||||
<translation type="vanished">Outils</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>主题美化</source>
|
|
||||||
<translatorcomment>Thème des icônes et autres </translatorcomment>
|
|
||||||
<translation type="vanished">Thèmes</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>音乐欣赏</source>
|
|
||||||
<translation type="vanished">Musique</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../src/widget.ui" line="148"/>
|
|
||||||
<source>icon</source>
|
<source>icon</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>编程开发</source>
|
<location filename="../src/widget.ui" line="285"/>
|
||||||
<translation type="vanished">Développement</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>办公学习</source>
|
|
||||||
<translation type="vanished">Bureau</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>阅读翻译</source>
|
|
||||||
<translation type="vanished">Traduire</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>其他应用</source>
|
|
||||||
<translation type="vanished">Autres</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>商店首页</source>
|
|
||||||
<translation type="vanished">Accueil</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>图形图像</source>
|
|
||||||
<translation type="vanished">Images</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>游戏娱乐</source>
|
|
||||||
<translation type="vanished">Jeux</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>社交沟通</source>
|
|
||||||
<translation type="vanished">Chat</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>网络应用</source>
|
|
||||||
<translation type="vanished">Réseau</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../src/widget.ui" line="374"/>
|
|
||||||
<source>about:blank</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>当前下载列表为空</source>
|
|
||||||
<translation type="vanished">La liste de téléchargement est vide</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>打开文件夹</source>
|
|
||||||
<translation type="vanished">Ouvrir dans le gestionnaire de fichiers</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>安装</source>
|
|
||||||
<translation type="vanished">Installer</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>卸载</source>
|
|
||||||
<translation type="vanished">Supprimer</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>官网</source>
|
|
||||||
<translation type="vanished">Site</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>软件名</source>
|
|
||||||
<translation type="vanished">Nom</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../src/widget.ui" line="575"/>
|
|
||||||
<source><html><head/><body><p><br/></p></body></html></source>
|
<source><html><head/><body><p><br/></p></body></html></source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>图标</source>
|
<location filename="../src/widget.ui" line="1011"/>
|
||||||
<translation type="vanished">Icon</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>分享</source>
|
|
||||||
<translation type="vanished">Partager</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>详细介绍</source>
|
|
||||||
<translation type="vanished">Détails</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source><html><head/><body><p>由社区爱好者开发的软件商店</p></body></html></source>
|
|
||||||
<translation type="vanished"><html><head/><body><p>magasin de logiciels développé par des passionnés de la communauté</p></body></html></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>软件截图</source>
|
|
||||||
<translation type="vanished">Captures d'écran</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>线路设置</source>
|
|
||||||
<translation type="vanished">Line Settings</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>线路选择:</source>
|
|
||||||
<translation type="vanished">Choisissez: </translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>刷新</source>
|
|
||||||
<translation type="vanished">Mise à jour</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source> 重启商店后生效</source>
|
|
||||||
<translation type="vanished">Redémarrez pour prendre effet</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source><html><head/><body><p>源服务器的作用是保证软件更新,并且支持使用apt工具获取软件。通常我们更建议你使用第一个线路作为更新源,一般是最稳定的。</p></body></html></source>
|
|
||||||
<translation type="vanished"><html><head/><body><p>Le rôle du serveur source est de s'assurer que le logiciel est mis à jour et prend en charge l'utilisation de l'outil apt pour obtenir le logiciel. Nous préférons généralement que vous utilisiez la première ligne comme source de mise à jour, qui est généralement la plus stable. </p></body></html></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>更新源</source>
|
|
||||||
<translation type="vanished">Mettre à jour la source APT</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>更新源服务器:</source>
|
|
||||||
<translation type="vanished">Source APT: </translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>服务器</source>
|
|
||||||
<translation type="vanished">serveur</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>缓存目录</source>
|
|
||||||
<translation type="vanished">Temp</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>清空</source>
|
|
||||||
<translation type="vanished">Nettoyer</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>因为这个目录位于/tmp下,所以即使你不手动清空的话,其也将在系统重启时自动清空。</source>
|
|
||||||
<translation type="vanished">Étant donné que ce répertoire se trouve sous /tmp, même si vous ne l'effacez pas manuellement, il sera effacé automatiquement au redémarrage du système.</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>目录大小:</source>
|
|
||||||
<translation type="vanished">Taille: </translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../src/widget.ui" line="1334"/>
|
|
||||||
<source>0B</source>
|
<source>0B</source>
|
||||||
<translation type="unfinished">0B</translation>
|
<translation type="unfinished">0B</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>目录位置:/tmp/spark-store</source>
|
<location filename="../src/widget.cpp" line="142"/>
|
||||||
<translation type="vanished">Emplacement:/tmp/spark-store</translation>
|
<location filename="../src/widget.cpp" line="435"/>
|
||||||
</message>
|
<location filename="../src/widget.cpp" line="440"/>
|
||||||
<message>
|
<location filename="../src/widget.cpp" line="450"/>
|
||||||
<source>关于我们</source>
|
<location filename="../src/widget.cpp" line="455"/>
|
||||||
<translation type="vanished">À propos de nous</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source><html><head/><body><p>我们并不是官方团队,和你一样,我们也只是众多Linux/deepin系统爱好者和用户之中的一员,我们开发并且运营这个“Spark应用商店”,是为了让社区的朋友们一起分享好用的软件,或者一起参与开发,让大家都用到最新的,最优秀的软件。</p><p>我们并没有因此盈利,所有开发和维护人员都不会获得报酬,我们的主要支出大部分依赖于社区对我们的捐助,很感谢大家,这部分捐助让我们并不需要耗费太多精力去担心资金问题。</p><p>我们的服务和开发的软件都是免费供给大家使用,交流,学习的,但是在您的使用过程中一定要遵守当地的法律法规,否则出现任何问题和我们无关。</p><p>如果商店中任何一部分有侵犯您权益的行为,请告知我们&lt;jifengshenmo@outlook.com&gt;,我们会第一时间删除侵权内容。</p><p>如果你也想参与我们,不管是参与开发,设计,投递还是投稿作品,我们都欢迎你的加入。</p><p>QQ群:872690351<br/></p></body></html></source>
|
|
||||||
<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>
|
|
||||||
<location filename="../src/widget.cpp" line="138"/>
|
|
||||||
<location filename="../src/widget.cpp" line="406"/>
|
|
||||||
<location filename="../src/widget.cpp" line="411"/>
|
|
||||||
<location filename="../src/widget.cpp" line="421"/>
|
|
||||||
<location filename="../src/widget.cpp" line="426"/>
|
|
||||||
<source>Spark\ Store</source>
|
<source>Spark\ Store</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.cpp" line="186"/>
|
<location filename="../src/widget.cpp" line="193"/>
|
||||||
<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="194"/>
|
||||||
<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="193"/>
|
<location filename="../src/widget.cpp" line="200"/>
|
||||||
<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="194"/>
|
<location filename="../src/widget.cpp" line="201"/>
|
||||||
|
<source>Submit App with client(Recommanded)</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../src/widget.cpp" line="202"/>
|
||||||
<source>Settings</source>
|
<source>Settings</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="203"/>
|
||||||
<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="344"/>
|
<location filename="../src/widget.cpp" line="373"/>
|
||||||
<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="656"/>
|
<location filename="../src/widget.cpp" line="714"/>
|
||||||
<location filename="../src/widget.cpp" line="895"/>
|
<location filename="../src/widget.cpp" line="973"/>
|
||||||
<source>Reinstall</source>
|
<source>Reinstall</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.cpp" line="622"/>
|
<location filename="../src/widget.cpp" line="680"/>
|
||||||
<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="706"/>
|
<location filename="../src/widget.cpp" line="749"/>
|
||||||
|
<source>Do not repeat searches!</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../src/widget.cpp" line="767"/>
|
||||||
<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="715"/>
|
<location filename="../src/widget.cpp" line="781"/>
|
||||||
<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="900"/>
|
<location filename="../src/widget.ui" line="1434"/>
|
||||||
|
<location filename="../src/widget.cpp" line="978"/>
|
||||||
<source>Upgrade</source>
|
<source>Upgrade</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.cpp" line="1083"/>
|
<location filename="../src/widget.cpp" line="1166"/>
|
||||||
<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="1144"/>
|
<location filename="../src/widget.cpp" line="1198"/>
|
||||||
<source>Apt has reported an error. Please use apt update in terminal to locate the problem.</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../src/widget.cpp" line="1151"/>
|
|
||||||
<source>Unknown error!</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../src/widget.cpp" line="1179"/>
|
|
||||||
<source>Uninstall succeeded</source>
|
<source>Uninstall succeeded</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.cpp" line="1201"/>
|
<location filename="../src/widget.cpp" line="1220"/>
|
||||||
<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="1283"/>
|
<location filename="../src/widget.cpp" line="1312"/>
|
||||||
<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>
|
||||||
@@ -738,27 +579,6 @@ Nous sommes nés pour le changement.</translation>
|
|||||||
<source>Info</source>
|
<source>Info</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
|
||||||
<source>名称</source>
|
|
||||||
<translation type="vanished">Nom</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>等待开始下载</source>
|
|
||||||
<translatorcomment>Attendez pour téléchargerd</translatorcomment>
|
|
||||||
<translation type="vanished">Attendez pour télécharger</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>安装</source>
|
|
||||||
<translation type="vanished">Installer</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>取消</source>
|
|
||||||
<translation type="vanished">Annuler</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>详情</source>
|
|
||||||
<translation type="vanished">Détail</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/downloadlist.cpp" line="34"/>
|
<location filename="../src/downloadlist.cpp" line="34"/>
|
||||||
<source>gdebi</source>
|
<source>gdebi</source>
|
||||||
@@ -780,47 +600,37 @@ Nous sommes nés pour le changement.</translation>
|
|||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/downloadlist.cpp" line="100"/>
|
<location filename="../src/downloadlist.cpp" line="101"/>
|
||||||
<source>Failed to download %1</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../src/downloadlist.cpp" line="102"/>
|
|
||||||
<source>Download Failed,Check Your Connection</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../src/downloadlist.cpp" line="114"/>
|
|
||||||
<source>Finished downloading %1, awaiting to install</source>
|
<source>Finished downloading %1, awaiting to install</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/downloadlist.cpp" line="147"/>
|
<location filename="../src/downloadlist.cpp" line="134"/>
|
||||||
<source>Installing</source>
|
<source>Installing</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/downloadlist.cpp" line="190"/>
|
<location filename="../src/downloadlist.cpp" line="177"/>
|
||||||
<source>Finish</source>
|
<source>Finish</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/downloadlist.cpp" line="196"/>
|
<location filename="../src/downloadlist.cpp" line="183"/>
|
||||||
<source>Retry</source>
|
<source>Retry</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/downloadlist.cpp" line="197"/>
|
<location filename="../src/downloadlist.cpp" line="184"/>
|
||||||
<source>Error happened in dpkg progress , you can try it again</source>
|
<source>Error happened in dpkg progress , you can try it again</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/downloadlist.cpp" line="203"/>
|
<location filename="../src/downloadlist.cpp" line="190"/>
|
||||||
<source>dpkg progress had been aborted,you can retry installation</source>
|
<source>dpkg progress had been aborted,you can retry installation</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/downloadlist.cpp" line="225"/>
|
<location filename="../src/downloadlist.cpp" line="212"/>
|
||||||
<source>Download canceled</source>
|
<source>Download canceled</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="67"/>
|
||||||
<location filename="../src/main.cpp" line="43"/>
|
<location filename="../src/main.cpp" line="75"/>
|
||||||
<location filename="../src/main.cpp" line="49"/>
|
<location filename="../src/main.cpp" line="81"/>
|
||||||
<source>Spark Store</source>
|
<source>Spark Store</source>
|
||||||
<translation>Spark 应用商店</translation>
|
<translation>Spark 应用商店</translation>
|
||||||
</message>
|
</message>
|
||||||
@@ -22,34 +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="64"/>
|
||||||
<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="69"/>
|
||||||
<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"><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>
|
||||||
<message>
|
<message>
|
||||||
<source>Version 2.0+2</source>
|
<location filename="../src/main.cpp" line="77"/>
|
||||||
<translation type="vanished">版本: 2.0+2</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source><span style=' font-size:10pt;font-weight:60;'>An appstore powered by deepin community</span><br/><a href='https://www.spark-app.store/'>https://www.spark-app.store</a><br/><span style=' font-size:12pt;'>Spark developers</span></source>
|
|
||||||
<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>
|
|
||||||
<location filename="../src/main.cpp" line="45"/>
|
|
||||||
<source>The Spark Project</source>
|
<source>The Spark Project</source>
|
||||||
<translation type="unfinished">星火计划 The Spark Project</translation>
|
<translation>星火计划 The Spark Project</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source><span style=' font-size:10pt;font-weight:60;'>An appstore powered by deepin community</span><br/><a href='https://www.spark-app.store/'>https://www.spark-app.store</a><br/><span style=' font-size:12pt;'>Spark developers</span><br/>We publish this program under GPL V3</source>
|
<location filename="../src/main.cpp" line="89"/>
|
||||||
<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>
|
|
||||||
<location filename="../src/main.cpp" line="57"/>
|
|
||||||
<source><span style='font-size:10pt;font-weight:60;'>An appstore powered by deepin community</span><br/><a href='https://www.spark-app.store/'>https://www.spark-app.store</a><br/><span style='font-size:12pt;'>Spark developers</span><br/><br/>Published under GPL V3</source>
|
<source><span style='font-size:10pt;font-weight:60;'>An appstore powered by deepin community</span><br/><a href='https://www.spark-app.store/'>https://www.spark-app.store</a><br/><span style='font-size:12pt;'>Spark developers</span><br/><br/>Published under GPL V3</source>
|
||||||
<translation><span style='font-size:10pt;font-weight:60;'>由 Deepin 社区出品的应用商店</span><br/><a href='https://www.spark-app.store/'>https://www.spark-app.store</a><br/><span style='font-size:12pt;'>星火商店开发组</span><br/><br/>遵循 GPL V3 协议发布</translation>
|
<translation><span style='font-size:10pt;font-weight:60;'>由 Deepin 社区出品的应用商店</span><br/><a href='https://www.spark-app.store/'>https://www.spark-app.store</a><br/><span style='font-size:12pt;'>星火商店开发组</span><br/><br/>遵循 GPL V3 协议发布</translation>
|
||||||
</message>
|
</message>
|
||||||
@@ -57,47 +45,52 @@
|
|||||||
<context>
|
<context>
|
||||||
<name>SpkAppInfoLoaderThread</name>
|
<name>SpkAppInfoLoaderThread</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/workerthreads.cpp" line="167"/>
|
<location filename="../src/workerthreads.cpp" line="193"/>
|
||||||
<source>Failed to download app info. Please check internet connection.</source>
|
<source>Failed to download app info. Please check internet connection.</source>
|
||||||
<translation>下载应用程序详细信息失败,请检查网络连接。</translation>
|
<translation>下载应用程序详细信息失败,请检查网络连接。</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/workerthreads.cpp" line="48"/>
|
<location filename="../src/workerthreads.cpp" line="73"/>
|
||||||
<source>PkgName: </source>
|
<source>PkgName: </source>
|
||||||
<translation>包名: </translation>
|
<translation>包名: </translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/workerthreads.cpp" line="49"/>
|
<location filename="../src/workerthreads.cpp" line="74"/>
|
||||||
<source>Version: </source>
|
<source>Version: </source>
|
||||||
<translation>版本: </translation>
|
<translation>版本: </translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/workerthreads.cpp" line="52"/>
|
<location filename="../src/workerthreads.cpp" line="77"/>
|
||||||
<source>Author: </source>
|
<source>Author: </source>
|
||||||
<translation>作者: </translation>
|
<translation>作者: </translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/workerthreads.cpp" line="57"/>
|
<location filename="../src/workerthreads.cpp" line="82"/>
|
||||||
<source>Official Site: </source>
|
<source>Official Site: </source>
|
||||||
<translation>官网: </translation>
|
<translation>官网: </translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/workerthreads.cpp" line="61"/>
|
<location filename="../src/workerthreads.cpp" line="86"/>
|
||||||
<source>Contributor: </source>
|
<source>Contributor: </source>
|
||||||
<translation>投稿者: </translation>
|
<translation>投稿者: </translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/workerthreads.cpp" line="62"/>
|
<location filename="../src/workerthreads.cpp" line="87"/>
|
||||||
<source>Update Time: </source>
|
<source>Update Time: </source>
|
||||||
<translation>更新时间: </translation>
|
<translation>更新时间: </translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/workerthreads.cpp" line="63"/>
|
<location filename="../src/workerthreads.cpp" line="88"/>
|
||||||
<source>Installed Size: </source>
|
<source>Installed Size: </source>
|
||||||
<translation>大小: </translation>
|
<translation>大小: </translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/workerthreads.cpp" line="123"/>
|
<location filename="../src/workerthreads.cpp" line="89"/>
|
||||||
|
<source>Download Times: </source>
|
||||||
|
<translation>下载量: </translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../src/workerthreads.cpp" line="149"/>
|
||||||
<source>Failed to load application icon.</source>
|
<source>Failed to load application icon.</source>
|
||||||
<translation>加载应用程序图标失败。</translation>
|
<translation>加载应用程序图标失败。</translation>
|
||||||
</message>
|
</message>
|
||||||
@@ -110,558 +103,436 @@
|
|||||||
<translation></translation>
|
<translation></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="84"/>
|
<location filename="../src/widget.ui" line="1179"/>
|
||||||
<source>background-color:#FFFFFF</source>
|
<source>background-color:#FFFFFF</source>
|
||||||
<translation></translation>
|
<translation></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>Videos</source>
|
<location filename="../src/widget.ui" line="1312"/>
|
||||||
<translation type="vanished">视频播放</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>Download List</source>
|
|
||||||
<translation type="vanished">下载列表</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../src/widget.ui" line="184"/>
|
|
||||||
<source>Tools</source>
|
<source>Tools</source>
|
||||||
<translation>系统工具</translation>
|
<translation>系统工具</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="265"/>
|
<location filename="../src/widget.ui" line="1194"/>
|
||||||
<source>Beautify</source>
|
<source>Beautify</source>
|
||||||
<translation>主题美化</translation>
|
<translation>主题美化</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="115"/>
|
<location filename="../src/widget.ui" line="1427"/>
|
||||||
<source>Music</source>
|
<source>Music</source>
|
||||||
<translation>音乐欣赏</translation>
|
<translation>音乐欣赏</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>Coding</source>
|
<location filename="../src/widget.ui" line="1251"/>
|
||||||
<translation type="vanished">编程开发</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../src/widget.ui" line="198"/>
|
|
||||||
<source>Office</source>
|
<source>Office</source>
|
||||||
<translation>办公学习</translation>
|
<translation>办公学习</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>Translate</source>
|
<location filename="../src/widget.ui" line="1339"/>
|
||||||
<translation type="vanished">阅读翻译</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../src/widget.ui" line="286"/>
|
|
||||||
<source>Others</source>
|
<source>Others</source>
|
||||||
<translation>其他应用</translation>
|
<translation>其他应用</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>FrontPage</source>
|
<location filename="../src/widget.ui" line="1244"/>
|
||||||
<translation type="vanished">商店首页</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>Images</source>
|
|
||||||
<translation type="vanished">图形图像</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../src/widget.ui" line="279"/>
|
|
||||||
<source>Games</source>
|
<source>Games</source>
|
||||||
<translation>游戏娱乐</translation>
|
<translation>游戏娱乐</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>Chatting</source>
|
<location filename="../src/widget.ui" line="1224"/>
|
||||||
<translation type="vanished">社交沟通</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../src/widget.ui" line="272"/>
|
|
||||||
<source>Network</source>
|
<source>Network</source>
|
||||||
<translation>网络应用</translation>
|
<translation>网络应用</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="415"/>
|
<location filename="../src/widget.ui" line="125"/>
|
||||||
<source>The list is currently empty. Go and download some softwares!</source>
|
<source>The list is currently empty. Go and download some softwares!</source>
|
||||||
<translation>当前下载列表为空。去下载些软件吧!</translation>
|
<translation>当前下载列表为空。去下载些软件吧!</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="447"/>
|
<location filename="../src/widget.ui" line="157"/>
|
||||||
<source>Open download directory</source>
|
<source>Open download directory</source>
|
||||||
<translation>打开下载文件夹</translation>
|
<translation>打开下载文件夹</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="560"/>
|
<location filename="../src/widget.ui" line="270"/>
|
||||||
<source>Name</source>
|
<source>Name</source>
|
||||||
<translation>软件名</translation>
|
<translation>软件名</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="606"/>
|
<location filename="../src/widget.ui" line="316"/>
|
||||||
<source>ICON</source>
|
<source>ICON</source>
|
||||||
<translation></translation>
|
<translation></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="547"/>
|
<location filename="../src/widget.ui" line="257"/>
|
||||||
<location filename="../src/widget.cpp" line="906"/>
|
<location filename="../src/widget.cpp" line="984"/>
|
||||||
<location filename="../src/widget.cpp" line="1175"/>
|
<location filename="../src/widget.cpp" line="1194"/>
|
||||||
<source>Install</source>
|
<source>Install</source>
|
||||||
<translation>安装</translation>
|
<translation>安装</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="313"/>
|
<location filename="../src/widget.ui" line="1285"/>
|
||||||
<source>Video</source>
|
<source>Video</source>
|
||||||
<translation>视频播放</translation>
|
<translation>视频播放</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="306"/>
|
<location filename="../src/widget.ui" line="1258"/>
|
||||||
<source>Download</source>
|
<source>Download</source>
|
||||||
<translation>下载列表</translation>
|
<translation>下载列表</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="191"/>
|
<location filename="../src/widget.ui" line="1332"/>
|
||||||
<source>Reading</source>
|
<source>Reading</source>
|
||||||
<translation>阅读翻译</translation>
|
<translation>阅读翻译</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="225"/>
|
<location filename="../src/widget.ui" line="1201"/>
|
||||||
<source>Chat</source>
|
<source>Chat</source>
|
||||||
<translation>社交沟通</translation>
|
<translation>社交沟通</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="661"/>
|
<location filename="../src/widget.ui" line="371"/>
|
||||||
<source>Uninstall</source>
|
<source>Uninstall</source>
|
||||||
<translation>卸载</translation>
|
<translation>卸载</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="677"/>
|
<location filename="../src/widget.ui" line="387"/>
|
||||||
<source>Site</source>
|
<source>Site</source>
|
||||||
<translation>官网</translation>
|
<translation>官网</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="750"/>
|
<location filename="../src/widget.ui" line="460"/>
|
||||||
<location filename="../src/widget.ui" line="753"/>
|
<location filename="../src/widget.ui" line="463"/>
|
||||||
<source><html><head/><body><p>This app is developed by community user,we give this tag to honor those who contribute to the Linux Ecology</p></body></html></source>
|
<source><html><head/><body><p>This app is developed by community user,we give this tag to honor those who contribute to the Linux Ecology</p></body></html></source>
|
||||||
<translation><html><head/><body><p>这款应用是社区开发者开发的,我们为社区开发者颁发这款勋章以表彰他们对Linux生态的贡献</p></body></html></translation>
|
<translation><html><head/><body><p>这款应用是社区开发者开发的,我们为社区开发者颁发这款勋章以表彰他们对Linux生态的贡献</p></body></html></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="756"/>
|
<location filename="../src/widget.ui" line="466"/>
|
||||||
<source><html><head/><body><p><img src=":/tags/community-small.png"/></p></body></html></source>
|
<source><html><head/><body><p><img src=":/tags/community-small.png"/></p></body></html></source>
|
||||||
<translation></translation>
|
<translation></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="769"/>
|
<location filename="../src/widget.ui" line="479"/>
|
||||||
<location filename="../src/widget.ui" line="772"/>
|
<location filename="../src/widget.ui" line="482"/>
|
||||||
<source><html><head/><body><p>Capable to Ubuntu 22.04</p></body></html></source>
|
<source><html><head/><body><p>Capable to Ubuntu 22.04</p></body></html></source>
|
||||||
<translation><html><head/><body><p>支持Ubuntu 22.04</p></body></html></translation>
|
<translation><html><head/><body><p>支持Ubuntu 22.04</p></body></html></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="788"/>
|
<location filename="../src/widget.ui" line="498"/>
|
||||||
<location filename="../src/widget.ui" line="791"/>
|
<location filename="../src/widget.ui" line="501"/>
|
||||||
<source><html><head/><body><p>Capable to deepin 20</p></body></html></source>
|
<source><html><head/><body><p>Capable to deepin 20</p></body></html></source>
|
||||||
<translation><html><head/><body><p>支持deepin 20</p></body></html></translation>
|
<translation><html><head/><body><p>支持deepin 20</p></body></html></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="794"/>
|
<location filename="../src/widget.ui" line="504"/>
|
||||||
<source><html><head/><body><p><img src=":/tags/deepin-small.png"/></p></body></html></source>
|
<source><html><head/><body><p><img src=":/tags/deepin-small.png"/></p></body></html></source>
|
||||||
<translation></translation>
|
<translation></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="807"/>
|
<location filename="../src/widget.ui" line="517"/>
|
||||||
<location filename="../src/widget.ui" line="810"/>
|
<location filename="../src/widget.ui" line="520"/>
|
||||||
<source><html><head/><body><p>Capable to UOS home 20</p></body></html></source>
|
<source><html><head/><body><p>Capable to UOS home 20</p></body></html></source>
|
||||||
<translation><html><head/><body><p>支持UOS家庭版 20</p></body></html></translation>
|
<translation><html><head/><body><p>支持UOS家庭版 20</p></body></html></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="826"/>
|
<location filename="../src/widget.ui" line="536"/>
|
||||||
<location filename="../src/widget.ui" line="829"/>
|
<location filename="../src/widget.ui" line="539"/>
|
||||||
<source><html><head/><body><p>This is a DTK5 app,which means it would have better effect on Deepin Desktop Environment</p></body></html></source>
|
<source><html><head/><body><p>This is a DTK5 app,which means it would have better effect on Deepin Desktop Environment</p></body></html></source>
|
||||||
<translation><html><head/><body><p>这是一款DTK5应用,请使用深度桌面环境来获得最完美的体验</p></body></html></translation>
|
<translation><html><head/><body><p>这是一款DTK5应用,请使用深度桌面环境来获得最完美的体验</p></body></html></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="832"/>
|
<location filename="../src/widget.ui" line="542"/>
|
||||||
<source><html><head/><body><p><img src=":/tags/dtk-small.png"/></p></body></html></source>
|
<source><html><head/><body><p><img src=":/tags/dtk-small.png"/></p></body></html></source>
|
||||||
<translation></translation>
|
<translation></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="864"/>
|
<location filename="../src/widget.ui" line="555"/>
|
||||||
<location filename="../src/widget.ui" line="867"/>
|
<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>
|
||||||
|
<location filename="../src/widget.ui" line="574"/>
|
||||||
|
<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="577"/>
|
||||||
<source><html><head/><body><p>A deepin-wine5 app.If you are using ubuntu or other non-deepin distro,you should deploy deepin-wine5 by your self.</p></body></html></source>
|
<source><html><head/><body><p>A deepin-wine5 app.If you are using ubuntu or other non-deepin distro,you should deploy deepin-wine5 by your self.</p></body></html></source>
|
||||||
<translation><html><head/><body><p>这是一款deepin-wine5应用,如果你并没有在使用深度系列发行版(比如您在使用ubuntu),你需要自行配置deepin-wine5环境</p></body></html></translation>
|
<translation><html><head/><body><p>这是一款deepin-wine5应用,如果你并没有在使用深度系列发行版(比如您在使用ubuntu),你需要自行配置deepin-wine5环境</p></body></html></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="883"/>
|
<location filename="../src/widget.ui" line="593"/>
|
||||||
<location filename="../src/widget.ui" line="886"/>
|
<location filename="../src/widget.ui" line="596"/>
|
||||||
<source><html><head/><body><p>An Appimage to deb app.</p></body></html></source>
|
<source><html><head/><body><p>An Appimage to deb app.</p></body></html></source>
|
||||||
<translation><html><head/><body><p>这是一款Appimage转制应用.</p></body></html></translation>
|
<translation><html><head/><body><p>这是一款Appimage转制应用.</p></body></html></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="889"/>
|
<location filename="../src/widget.ui" line="599"/>
|
||||||
<source><html><head/><body><p><img src=":/tags/a2d-small.png"/></p></body></html></source>
|
<source><html><head/><body><p><img src=":/tags/a2d-small.png"/></p></body></html></source>
|
||||||
<translation></translation>
|
<translation></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="716"/>
|
<location filename="../src/widget.ui" line="426"/>
|
||||||
<source>Share</source>
|
<source>Share</source>
|
||||||
<translation>Spk分享链接</translation>
|
<translation>Spk分享链接</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="129"/>
|
<location filename="../src/widget.ui" line="1385"/>
|
||||||
<source>Development</source>
|
<source>Development</source>
|
||||||
<translation>编程开发</translation>
|
<translation>编程开发</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>Home </source>
|
<location filename="../src/widget.ui" line="1346"/>
|
||||||
<translation type="vanished">商店首页</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../src/widget.ui" line="122"/>
|
|
||||||
<source>Graphics</source>
|
<source>Graphics</source>
|
||||||
<translation>图形图像</translation>
|
<translation>图形图像</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>Communication</source>
|
<location filename="../src/widget.ui" line="558"/>
|
||||||
<translation type="vanished">社交沟通</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../src/widget.ui" line="845"/>
|
|
||||||
<location filename="../src/widget.ui" line="848"/>
|
|
||||||
<source><html><head/><body><p>A deepin-wine2 app.If you are using ubuntu or other non-deepin distro,you should deploy deepin-wine2 by your self.</p></body></html></source>
|
<source><html><head/><body><p>A deepin-wine2 app.If you are using ubuntu or other non-deepin distro,you should deploy deepin-wine2 by your self.</p></body></html></source>
|
||||||
<translation><html><head/><body><p>这是一款 deepin-wine2 应用,如果你并没有在使用深度系列发行版(比如您在使用ubuntu),你需要自行配置 deepin-wine2 环境</p></body></html></translation>
|
<translation><html><head/><body><p>这是一款 deepin-wine2 应用,如果你并没有在使用深度系列发行版(比如您在使用ubuntu),你需要自行配置 deepin-wine2 环境</p></body></html></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="851"/>
|
<location filename="../src/widget.ui" line="561"/>
|
||||||
<source><html><head/><body><p><img src=":/tags/dwine2-small.png"/></p></body></html></source>
|
<source><html><head/><body><p><img src=":/tags/dwine2-small.png"/></p></body></html></source>
|
||||||
<translation></translation>
|
<translation></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="870"/>
|
<location filename="../src/widget.ui" line="580"/>
|
||||||
<source><html><head/><body><p><img src=":/tags/dwine5-small.png"/></p></body></html></source>
|
<source><html><head/><body><p><img src=":/tags/dwine5-small.png"/></p></body></html></source>
|
||||||
<translation></translation>
|
<translation></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>Contribute translation</source>
|
<location filename="../src/widget.ui" line="640"/>
|
||||||
<translation type="vanished">贡献翻译/应用反馈</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../src/widget.ui" line="930"/>
|
|
||||||
<source>Info</source>
|
<source>Info</source>
|
||||||
<translation>详细</translation>
|
<translation>详细</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="937"/>
|
<location filename="../src/widget.ui" line="647"/>
|
||||||
<source><html><head/><body><p>An app store developed by community enthusiasts</p></body></html></source>
|
<source><html><head/><body><p>An app store developed by community enthusiasts</p></body></html></source>
|
||||||
<translation><html><head/><body><p>由社区爱好者开发的一款应用商店</p></body></html></translation>
|
<translation><html><head/><body><p>由社区爱好者开发的一款应用商店</p></body></html></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="979"/>
|
<location filename="../src/widget.ui" line="689"/>
|
||||||
<source>Screenshots</source>
|
<source>Screenshots</source>
|
||||||
<translation>屏幕截图</translation>
|
<translation>屏幕截图</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="1142"/>
|
<location filename="../src/widget.ui" line="852"/>
|
||||||
<source>Line Settings</source>
|
<source>Line Settings</source>
|
||||||
<translation>线路设置</translation>
|
<translation>线路设置</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="1158"/>
|
<location filename="../src/widget.ui" line="868"/>
|
||||||
<source>Choose Line:</source>
|
<source>Choose Line:</source>
|
||||||
<translation>线路选择:</translation>
|
<translation>线路选择:</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="1181"/>
|
<location filename="../src/widget.ui" line="891"/>
|
||||||
<source>Refresh</source>
|
<source>Refresh</source>
|
||||||
<translation>刷新</translation>
|
<translation>刷新</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>Take effect when restart </source>
|
<location filename="../src/widget.ui" line="943"/>
|
||||||
<translation type="vanished">重启商店后生效</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../src/widget.ui" line="1223"/>
|
|
||||||
<source><html><head/><body><p>The role of the source server is to ensure that the software is updated, and supports the use of the apt tool to get the software. We usually prefer that you use the first line as the update source, which is generally the most stable. </p></body></html></source>
|
|
||||||
<translation><html><head/><body><p>源服务器的作用是保证软件更新,并且支持使用apt工具获取软件。通常我们更建议你使用第一个线路作为更新源,一般是最稳定的。</p></body></html></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../src/widget.ui" line="1233"/>
|
|
||||||
<source>Update</source>
|
<source>Update</source>
|
||||||
<translation>更新源</translation>
|
<translation>跳转更新</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="1240"/>
|
<location filename="../src/widget.ui" line="950"/>
|
||||||
<source>Source Server</source>
|
<source>Spark Store Update</source>
|
||||||
<translation>更新源服务器</translation>
|
<translation>星火应用商店更新检测</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="1260"/>
|
<location filename="../src/widget.ui" line="970"/>
|
||||||
<source>Server</source>
|
<source>Server</source>
|
||||||
<translation></translation>
|
<translation></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="1281"/>
|
<location filename="../src/widget.ui" line="991"/>
|
||||||
<source>Temp</source>
|
<source>Temp</source>
|
||||||
<translation>缓存目录</translation>
|
<translation>缓存目录</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="1304"/>
|
<location filename="../src/widget.ui" line="1038"/>
|
||||||
<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="1004"/>
|
||||||
<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="1051"/>
|
||||||
<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="1018"/>
|
||||||
<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="1058"/>
|
||||||
|
<source>Clear Web Cache</source>
|
||||||
|
<translation>清理网页缓存</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../src/widget.ui" line="1079"/>
|
||||||
<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="1086"/>
|
||||||
<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>Connect us on Spark IM: https://chat.shenmo.tech<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>在 Spark IM 联系我们: https://chat.shenmo.tech<br/></p></body></html></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="148"/>
|
<location filename="../src/widget.ui" line="1365"/>
|
||||||
<source>icon</source>
|
<source>icon</source>
|
||||||
<translation></translation>
|
<translation></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="238"/>
|
<location filename="../src/widget.ui" line="1298"/>
|
||||||
<source>Back to category</source>
|
<source>Back to category</source>
|
||||||
<translation>返回分类</translation>
|
<translation>返回分类</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="296"/>
|
<location filename="../src/widget.ui" line="1322"/>
|
||||||
<source>Home</source>
|
<source>Home</source>
|
||||||
<translation>商店首页</translation>
|
<translation>商店首页</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="211"/>
|
<location filename="../src/widget.ui" line="1271"/>
|
||||||
<source>Reload</source>
|
<source>Reload</source>
|
||||||
<translation>刷新</translation>
|
<translation>刷新</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="374"/>
|
<location filename="../src/widget.ui" line="285"/>
|
||||||
<source>about:blank</source>
|
|
||||||
<translation></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../src/widget.ui" line="575"/>
|
|
||||||
<source><html><head/><body><p><br/></p></body></html></source>
|
<source><html><head/><body><p><br/></p></body></html></source>
|
||||||
<translation></translation>
|
<translation></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="775"/>
|
<location filename="../src/widget.ui" line="485"/>
|
||||||
<source><html><head/><body><p><img src=":/tags/ubuntu-small.png"/></p></body></html></source>
|
<source><html><head/><body><p><img src=":/tags/ubuntu-small.png"/></p></body></html></source>
|
||||||
<translation></translation>
|
<translation></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="813"/>
|
<location filename="../src/widget.ui" line="523"/>
|
||||||
<source><html><head/><body><p><img src=":/tags/uos-small.png"/></p></body></html></source>
|
<source><html><head/><body><p><img src=":/tags/uos-small.png"/></p></body></html></source>
|
||||||
<translation></translation>
|
<translation></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="912"/>
|
<location filename="../src/widget.ui" line="622"/>
|
||||||
<source>Request Update</source>
|
<source>Request Update</source>
|
||||||
<translation type="unfinished">软件催更/应用反馈</translation>
|
<translation>软件催更/应用反馈</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="1194"/>
|
<location filename="../src/widget.ui" line="904"/>
|
||||||
<source>Take effect when restart</source>
|
<source>Take effect when restart</source>
|
||||||
<translation>重启商店后生效</translation>
|
<translation>重启商店后生效</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.ui" line="1334"/>
|
<location filename="../src/widget.ui" line="933"/>
|
||||||
|
<source><html><head/><body><p>Check update for Spark Store. </p></body></html></source>
|
||||||
|
<translation>检查星火应用商店更新</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../src/widget.ui" line="1011"/>
|
||||||
<source>0B</source>
|
<source>0B</source>
|
||||||
<translation></translation>
|
<translation></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.cpp" line="186"/>
|
<location filename="../src/widget.cpp" line="193"/>
|
||||||
<source>Spark Store</source>
|
<source>Spark Store</source>
|
||||||
<translation>Spark 应用商店</translation>
|
<translation>Spark 应用商店</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.cpp" line="187"/>
|
<location filename="../src/widget.cpp" line="194"/>
|
||||||
<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="193"/>
|
<location filename="../src/widget.cpp" line="200"/>
|
||||||
<source>Submit App</source>
|
<source>Submit App</source>
|
||||||
<translation>投递应用</translation>
|
<translation>投递应用</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.cpp" line="194"/>
|
<location filename="../src/widget.cpp" line="201"/>
|
||||||
|
<source>Submit App with client(Recommanded)</source>
|
||||||
|
<translation>使用本地投稿器投递应用(推荐)</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../src/widget.cpp" line="202"/>
|
||||||
<source>Settings</source>
|
<source>Settings</source>
|
||||||
<translation>设置</translation>
|
<translation>设置</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.cpp" line="195"/>
|
<location filename="../src/widget.cpp" line="203"/>
|
||||||
<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="344"/>
|
<location filename="../src/widget.cpp" line="373"/>
|
||||||
<source>Not Exist</source>
|
<source>Not Exist</source>
|
||||||
<translation>不存在</translation>
|
<translation>不存在</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.cpp" line="138"/>
|
<location filename="../src/widget.cpp" line="142"/>
|
||||||
<location filename="../src/widget.cpp" line="406"/>
|
<location filename="../src/widget.cpp" line="435"/>
|
||||||
<location filename="../src/widget.cpp" line="411"/>
|
<location filename="../src/widget.cpp" line="440"/>
|
||||||
<location filename="../src/widget.cpp" line="421"/>
|
<location filename="../src/widget.cpp" line="450"/>
|
||||||
<location filename="../src/widget.cpp" line="426"/>
|
<location filename="../src/widget.cpp" line="455"/>
|
||||||
<source>Spark\ Store</source>
|
<source>Spark\ Store</source>
|
||||||
<translation>星火应用商店</translation>
|
<translation>星火应用商店</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>Failed to download app info. Please check internet connection.</source>
|
<location filename="../src/widget.cpp" line="714"/>
|
||||||
<translation type="vanished">下载应用程序详细信息失败,请检查网络连接。</translation>
|
<location filename="../src/widget.cpp" line="973"/>
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>PkgName: </source>
|
|
||||||
<translation type="vanished">包名: </translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>Version: </source>
|
|
||||||
<translation type="vanished">版本: </translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>Author: </source>
|
|
||||||
<translation type="vanished">作者: </translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>Official Site: </source>
|
|
||||||
<translation type="vanished">官网: </translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>Contributor: </source>
|
|
||||||
<translation type="vanished">投稿者: </translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>Update Time: </source>
|
|
||||||
<translation type="vanished">更新时间: </translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>Installed Size: </source>
|
|
||||||
<translation type="vanished">大小: </translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../src/widget.cpp" line="656"/>
|
|
||||||
<location filename="../src/widget.cpp" line="895"/>
|
|
||||||
<source>Reinstall</source>
|
<source>Reinstall</source>
|
||||||
<translation>重新安装</translation>
|
<translation>重新安装</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>Failed to load application icon.</source>
|
<location filename="../src/widget.cpp" line="680"/>
|
||||||
<translation type="vanished">加载应用程序图标失败。</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../src/widget.cpp" line="622"/>
|
|
||||||
<source>Failed to get the name to the file to be downloaded.</source>
|
<source>Failed to get the name to the file to be downloaded.</source>
|
||||||
<translation>获取安装包文件名失败。</translation>
|
<translation>获取安装包文件名失败。</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.cpp" line="706"/>
|
<location filename="../src/widget.cpp" line="749"/>
|
||||||
|
<source>Do not repeat searches!</source>
|
||||||
|
<translation>请勿频繁搜索!</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../src/widget.cpp" line="767"/>
|
||||||
<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="715"/>
|
<location filename="../src/widget.cpp" line="781"/>
|
||||||
<source>Request Error: %1</source>
|
<source>Request Error: %1</source>
|
||||||
<translation>请求错误:%1</translation>
|
<translation>请求错误:%1</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>Spark store could only process spk:// links for now. The search feature is coming soon!</source>
|
<location filename="../src/widget.ui" line="1434"/>
|
||||||
<translation type="vanished">目前仅支持商店专用链接的打开,搜索功能正在开发,请期待以后的版本!</translation>
|
<location filename="../src/widget.cpp" line="978"/>
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../src/widget.cpp" line="900"/>
|
|
||||||
<source>Upgrade</source>
|
<source>Upgrade</source>
|
||||||
<translation>升级</translation>
|
<translation>软件升级</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.cpp" line="1083"/>
|
<location filename="../src/widget.cpp" line="1166"/>
|
||||||
<source>Updating, please wait...</source>
|
<source>Updating, please wait...</source>
|
||||||
<translation>正在更新,请稍候……</translation>
|
<translation>正在更新,请稍候……</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.cpp" line="1144"/>
|
<location filename="../src/widget.cpp" line="1198"/>
|
||||||
<source>Apt has reported an error. Please use apt update in terminal to locate the problem.</source>
|
|
||||||
<translation>更新中发生错误,请在终端使用apt update来查看错误原因。</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../src/widget.cpp" line="1151"/>
|
|
||||||
<source>Unknown error!</source>
|
|
||||||
<translation>未知错误!</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>Yes</source>
|
|
||||||
<translation type="vanished">是</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>No</source>
|
|
||||||
<translation type="vanished">否</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>Information for Contributors</source>
|
|
||||||
<translation type="vanished">贡献者须知</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>Currently the translation contribution is limited to English,
|
|
||||||
and you will be redirected to our Gitee repository at which you are
|
|
||||||
supposed to be creating pull requests to contribute app info
|
|
||||||
translations.
|
|
||||||
Tips:You can simply click the file to edit to create a flat pull request without create a full pull request
|
|
||||||
Tips:You can use github account to login to Gitee
|
|
||||||
Click yes to continue.</source>
|
|
||||||
<translation type="vanished">目前商店仅支持应用程序英文详细信息的贡献。
|
|
||||||
在你确认后你会被导向到我们的 Gitee 页面,
|
|
||||||
请在此创建 Pull Request 以进行翻译贡献。
|
|
||||||
备注:你可以直接在页面编辑以快速创建轻量级pr
|
|
||||||
你也可以使用github账户直接登陆Gitee
|
|
||||||
|
|
||||||
单击“是”以继续。</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>Currently the translation contribution is limited to English,
|
|
||||||
and you will be redirected to our Gitee repository at which you are
|
|
||||||
supposed to be creating pull requests to contribute app info
|
|
||||||
translations.
|
|
||||||
|
|
||||||
Click yes to continue.</source>
|
|
||||||
<translation type="obsolete">目前商店仅支持应用程序英文详细信息的贡献。
|
|
||||||
在你确认后你会被导向到我们的 Gitee 页面,
|
|
||||||
请在此创建 Pull Request 以进行翻译贡献。
|
|
||||||
备注:你可以直接在页面编辑以快速创建轻量级pr
|
|
||||||
你也可以使用github账户直接登陆Gitee
|
|
||||||
|
|
||||||
单击“是”以继续。.</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>Unknown server error!</source>
|
|
||||||
<translation type="vanished">服务器未知错误</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../src/widget.cpp" line="1179"/>
|
|
||||||
<source>Uninstall succeeded</source>
|
<source>Uninstall succeeded</source>
|
||||||
<translation>卸载成功</translation>
|
<translation>卸载成功</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/widget.cpp" line="1201"/>
|
<location filename="../src/widget.cpp" line="1220"/>
|
||||||
<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="1283"/>
|
<location filename="../src/widget.cpp" line="1312"/>
|
||||||
<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>
|
||||||
@@ -708,10 +579,6 @@ Click yes to continue.</source>
|
|||||||
<source>Info</source>
|
<source>Info</source>
|
||||||
<translation>详情</translation>
|
<translation>详情</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
|
||||||
<source>dpkg</source>
|
|
||||||
<translation type="vanished">dpkg</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/downloadlist.cpp" line="32"/>
|
<location filename="../src/downloadlist.cpp" line="32"/>
|
||||||
<source>Spark Store App Installer</source>
|
<source>Spark Store App Installer</source>
|
||||||
@@ -728,60 +595,42 @@ Click yes to continue.</source>
|
|||||||
<translation>深度软件包安装器</translation>
|
<translation>深度软件包安装器</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>Downloaded, waiting to install</source>
|
<location filename="../src/downloadlist.cpp" line="101"/>
|
||||||
<translation type="vanished">已完成,等待安装</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../src/downloadlist.cpp" line="100"/>
|
|
||||||
<source>Failed to download %1</source>
|
|
||||||
<translation>下载 %1 失败</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../src/downloadlist.cpp" line="102"/>
|
|
||||||
<source>Download Failed,Check Your Connection</source>
|
|
||||||
<translation>下载失败,请检查网络连接</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../src/downloadlist.cpp" line="114"/>
|
|
||||||
<source>Finished downloading %1, awaiting to install</source>
|
<source>Finished downloading %1, awaiting to install</source>
|
||||||
<translation>%1 下载完成,等待安装</translation>
|
<translation>%1 下载完成,等待安装</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/downloadlist.cpp" line="147"/>
|
<location filename="../src/downloadlist.cpp" line="134"/>
|
||||||
<source>Installing</source>
|
<source>Installing</source>
|
||||||
<translation>正在安装</translation>
|
<translation>正在安装</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
|
||||||
<source>Installing...</source>
|
|
||||||
<translation type="obsolete">正在安装</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/downloadlist.cpp" line="74"/>
|
<location filename="../src/downloadlist.cpp" line="74"/>
|
||||||
<source>Downloaded. Open APP Upgrade and Install Settings to enable password-free installation</source>
|
<source>Downloaded. Open APP Upgrade and Install Settings to enable password-free installation</source>
|
||||||
<translation type="unfinished">下载完成 可进入应用更新和安装设置来启动免密码安装</translation>
|
<translation>下载完成 可进入应用更新和安装设置来启动免密码安装</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/downloadlist.cpp" line="190"/>
|
<location filename="../src/downloadlist.cpp" line="177"/>
|
||||||
<source>Finish</source>
|
<source>Finish</source>
|
||||||
<translation>完成</translation>
|
<translation>完成</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/downloadlist.cpp" line="196"/>
|
<location filename="../src/downloadlist.cpp" line="183"/>
|
||||||
<source>Retry</source>
|
<source>Retry</source>
|
||||||
<translation>重试</translation>
|
<translation>重试</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/downloadlist.cpp" line="197"/>
|
<location filename="../src/downloadlist.cpp" line="184"/>
|
||||||
<source>Error happened in dpkg progress , you can try it again</source>
|
<source>Error happened in dpkg progress , you can try it again</source>
|
||||||
<translation>dpkg出现错误,可重新安装</translation>
|
<translation>dpkg出现错误,可重新安装</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/downloadlist.cpp" line="203"/>
|
<location filename="../src/downloadlist.cpp" line="190"/>
|
||||||
<source>dpkg progress had been aborted,you can retry installation</source>
|
<source>dpkg progress had been aborted,you can retry installation</source>
|
||||||
<translation>安装被中止,可重新安装</translation>
|
<translation>安装被中止,可重新安装</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/downloadlist.cpp" line="225"/>
|
<location filename="../src/downloadlist.cpp" line="212"/>
|
||||||
<source>Download canceled</source>
|
<source>Download canceled</source>
|
||||||
<translation>下载已取消</translation>
|
<translation>下载已取消</translation>
|
||||||
</message>
|
</message>
|
||||||
|
|||||||
Reference in New Issue
Block a user