mirror of
https://gitee.com/spark-store-project/spark-store
synced 2025-12-15 21:32:05 +08:00
Compare commits
10 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 9a74368ef5 | |||
| cf5e1cae76 | |||
| 4c7d50d117 | |||
| 6318b5f51d | |||
| 2f94e78c32 | |||
| fecda52294 | |||
| 8cefdbaca0 | |||
| 0da714b35a | |||
| 379c5a857d | |||
| 3b349d43ad |
39
.workflow/dtk-build-commit-20220425.yml
Normal file
39
.workflow/dtk-build-commit-20220425.yml
Normal file
@@ -0,0 +1,39 @@
|
|||||||
|
version: '1.0'
|
||||||
|
name: dtk-build-commit-20220425
|
||||||
|
displayName: dtk-build-commit
|
||||||
|
triggers:
|
||||||
|
trigger: auto
|
||||||
|
pr:
|
||||||
|
branches:
|
||||||
|
prefix:
|
||||||
|
- ''
|
||||||
|
stages:
|
||||||
|
- name: stage-4e566164
|
||||||
|
displayName: build
|
||||||
|
strategy: naturally
|
||||||
|
trigger: auto
|
||||||
|
executor: []
|
||||||
|
steps:
|
||||||
|
- step: execute@docker
|
||||||
|
name: execute_by_docker
|
||||||
|
displayName: 基于镜像的脚本执行
|
||||||
|
certificate: ''
|
||||||
|
image: docker.io/debian:buster-slim
|
||||||
|
command:
|
||||||
|
- sed -i 's/deb.debian.org/mirrors.ustc.edu.cn/g' /etc/apt/sources.list
|
||||||
|
- '# 换源'
|
||||||
|
- apt update
|
||||||
|
- export DEBIAN_FRONTEND=noninteractive
|
||||||
|
- echo "安装git devscripts equivs ..."
|
||||||
|
- apt install git devscripts equivs curl -y >/dev/null 2>&1
|
||||||
|
- git clone https://gitlink.org.cn/shenmo7192/dtk-old-bundle.git
|
||||||
|
- cd dtk-old-bundle
|
||||||
|
- apt install ./*.deb -y
|
||||||
|
- cd ..
|
||||||
|
- rm -rf dtk-old-bundle
|
||||||
|
- 'mk-build-deps --install --tool "apt-get -o Debug::pkgProblemResolver=yes -y" '
|
||||||
|
- dpkg-buildpackage -b -us -uc
|
||||||
|
- cd ..
|
||||||
|
- ls -all
|
||||||
|
- pwd
|
||||||
|
strategy: {}
|
||||||
63
.workflow/dtk-build-release-tag-20220425.yml
Normal file
63
.workflow/dtk-build-release-tag-20220425.yml
Normal file
@@ -0,0 +1,63 @@
|
|||||||
|
version: '1.0'
|
||||||
|
name: dtk-build-release-tag-20220425
|
||||||
|
displayName: dtk-build-release-tag
|
||||||
|
triggers:
|
||||||
|
trigger: auto
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
prefix:
|
||||||
|
- ''
|
||||||
|
stages:
|
||||||
|
- name: stage-4e566164
|
||||||
|
displayName: build
|
||||||
|
strategy: naturally
|
||||||
|
trigger: auto
|
||||||
|
executor: []
|
||||||
|
steps:
|
||||||
|
- step: build@gcc
|
||||||
|
name: build_gcc
|
||||||
|
displayName: GCC 构建
|
||||||
|
gccVersion: '9.4'
|
||||||
|
commands:
|
||||||
|
- sed -i 's/archive.ubuntu.com/mirrors.ustc.edu.cn/g' /etc/apt/sources.list
|
||||||
|
- '# 换源'
|
||||||
|
- apt update
|
||||||
|
- echo "正在准备Debian 10环境..."
|
||||||
|
- apt install git -y >/dev/null 2>&1
|
||||||
|
- git clone https://gitlink.org.cn/shenmo7192/debian-10-container.git
|
||||||
|
- mv debian-10-container/Debian-10.tar.xz /mnt
|
||||||
|
- cd /mnt/
|
||||||
|
- tar -xf Debian-10.tar.xz
|
||||||
|
- cd Debian-10
|
||||||
|
- wget https://gitee.com/deepin-community-store/repo_auto_update_script/raw/master/spark-build.sh
|
||||||
|
- chmod +x spark-build.sh
|
||||||
|
- echo "进入Debian 10环境"
|
||||||
|
- chroot /mnt/Debian-10 /bin/bash /spark-build.sh
|
||||||
|
- cd /mnt/Debian-10/build-spark
|
||||||
|
- 'mkdir target '
|
||||||
|
- for f in $(find . -type f -name "*.deb")
|
||||||
|
- do
|
||||||
|
- ' mv $f target'
|
||||||
|
- done
|
||||||
|
artifacts:
|
||||||
|
- name: BUILD_ARTIFACT
|
||||||
|
path:
|
||||||
|
- /mnt/Debian-10/build-spark/target
|
||||||
|
caches: []
|
||||||
|
notify: []
|
||||||
|
strategy:
|
||||||
|
retry: '0'
|
||||||
|
- name: stage-29f3ffbb
|
||||||
|
displayName: 上传
|
||||||
|
strategy: naturally
|
||||||
|
trigger: auto
|
||||||
|
executor: []
|
||||||
|
steps:
|
||||||
|
- step: publish@general_artifacts
|
||||||
|
name: publish_general_artifacts
|
||||||
|
displayName: 上传制品
|
||||||
|
dependArtifact: BUILD_ARTIFACT
|
||||||
|
artifactName: output
|
||||||
|
notify: []
|
||||||
|
strategy:
|
||||||
|
retry: '0'
|
||||||
@@ -1,35 +0,0 @@
|
|||||||
version: '1.0'
|
|
||||||
name: dtk-build-commit-20220425
|
|
||||||
displayName: dtk-build-commit
|
|
||||||
triggers:
|
|
||||||
trigger: manual
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
prefix:
|
|
||||||
- master
|
|
||||||
tags:
|
|
||||||
prefix:
|
|
||||||
- ''
|
|
||||||
stages:
|
|
||||||
- name: stage-4e566164
|
|
||||||
displayName: build
|
|
||||||
strategy: naturally
|
|
||||||
trigger: auto
|
|
||||||
executor: []
|
|
||||||
steps:
|
|
||||||
- step: execute@docker
|
|
||||||
name: execute_by_docker
|
|
||||||
displayName: 基于镜像的脚本执行
|
|
||||||
certificate: d3a72e50-a6b5-013a-3031-5e77c3ac149e
|
|
||||||
image: hub.docker.com/r/shenmo7192/uos-21-dtk5.4
|
|
||||||
command:
|
|
||||||
- git clone https://gitee.com/deepin-community-store/spark-store
|
|
||||||
- mkdir debs
|
|
||||||
- cd spark-store
|
|
||||||
- dpkg-buildpackage
|
|
||||||
- mv *.deb ../debs
|
|
||||||
- cd ../debs
|
|
||||||
- curl -s --url "smtp://smtp.163.com" --mail-from "sparkstorefeedback@163.com" --mail-rcpt "shenmo@spark-app.store" --upload-file ./*.deb --user "sparkstorefeedback@163.com:YWYGLQNOPLWNNJJY"
|
|
||||||
permissions:
|
|
||||||
- role: admin
|
|
||||||
members: []
|
|
||||||
@@ -22,7 +22,7 @@ If you want to submit an APP to share with others,Please [Click here](https://
|
|||||||
|
|
||||||
If you simply want to install the Spark Store,just enter the [Release] page, find the version you want and install.
|
If you simply want to install the Spark Store,just enter the [Release] page, find the version you want and install.
|
||||||
|
|
||||||
If you are using Debian11/Ubuntu 20.04, you will need extra dependency package. Available [here](https://d.store.deepinos.org.cn/spark-store-dependencies-kylin.zip)
|
If you are using Debian11/Ubuntu 20.04, you will need extra dependency package. Available [here](https://code.gitlink.org.cn/shenmo7192/spark-store-dependencies/raw/branch/master/spark-store-dependencies-kylin.zip)
|
||||||
|
|
||||||
---
|
---
|
||||||
#### Compile and developement
|
#### Compile and developement
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
|
|
||||||
如果想安装 `星火应用商店` ,请打开右侧的 [Release] 页面,找到最新版本,并选择适用于当前系统的安装包下载。
|
如果想安装 `星火应用商店` ,请打开右侧的 [Release] 页面,找到最新版本,并选择适用于当前系统的安装包下载。
|
||||||
|
|
||||||
如果你在使用 `Debian 11/Ubuntu 20.04`,你需要额外下载[依赖补充包](https://d.store.deepinos.org.cn/spark-store-dependencies-kylin.zip)
|
如果你在使用 `Debian 11/Ubuntu 20.04`,你需要额外下载[依赖补充包](https://code.gitlink.org.cn/shenmo7192/spark-store-dependencies/raw/branch/master/spark-store-dependencies-kylin.zip)
|
||||||
|
|
||||||
---
|
---
|
||||||
#### 编译安装
|
#### 编译安装
|
||||||
|
|||||||
7
debian/changelog
vendored
7
debian/changelog
vendored
@@ -1,3 +1,10 @@
|
|||||||
|
spark-store (3.1.5-5) stable; urgency=medium
|
||||||
|
|
||||||
|
* 从所有镜像源中选取最快镜像源高速下载
|
||||||
|
|
||||||
|
-- shenmo <shenmo@spark-app.store> Fri, 30 Jan 2022 00:00:00 +0800
|
||||||
|
|
||||||
|
|
||||||
spark-store (3.1.5-4) stable; urgency=medium
|
spark-store (3.1.5-4) stable; urgency=medium
|
||||||
|
|
||||||
* 更改ss-apt-fast策略,现在只会在update,ssupdate和没有检测到配置文件的时候更新配置文件
|
* 更改ss-apt-fast策略,现在只会在update,ssupdate和没有检测到配置文件的时候更新配置文件
|
||||||
|
|||||||
@@ -99,15 +99,18 @@ void DownloadController::startDownload(const QString &url)
|
|||||||
gennerateDomain(domains);
|
gennerateDomain(domains);
|
||||||
// qDebug() << domains << domains.size();
|
// qDebug() << domains << domains.size();
|
||||||
}
|
}
|
||||||
QDir tmpdir("/tmp/spark-store/");
|
|
||||||
QString aria2Command = "-d";
|
QString aria2Command = "-d";
|
||||||
QString aria2Urls = "";
|
QString aria2Urls = "";
|
||||||
QString aria2Verbose = "--summary-interval=1";
|
QString aria2Verbose = "--summary-interval=1";
|
||||||
QString aria2Threads = "--split=16";
|
QString aria2Threads = "--split=2"; // 仅使用最快的两个镜像源
|
||||||
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 aria2StreamPiece = "--stream-piece-selector=default";
|
||||||
|
QString aria2ConnectionPerServer = "--max-connection-per-server=4";
|
||||||
|
|
||||||
if (useMetalink){
|
if (useMetalink){
|
||||||
command.append(metaUrl.toUtf8());
|
command.append(metaUrl.toUtf8());
|
||||||
@@ -128,6 +131,9 @@ void DownloadController::startDownload(const QString &url)
|
|||||||
command.append(aria2Verbose.toUtf8());
|
command.append(aria2Verbose.toUtf8());
|
||||||
command.append(aria2NoConfig.toUtf8());
|
command.append(aria2NoConfig.toUtf8());
|
||||||
command.append(aria2Threads.toUtf8());
|
command.append(aria2Threads.toUtf8());
|
||||||
|
command.append(aira2URLSelector.toUtf8());
|
||||||
|
command.append(aria2StreamPiece.toUtf8());
|
||||||
|
command.append(aria2ConnectionPerServer.toUtf8());
|
||||||
if (useMetalink){
|
if (useMetalink){
|
||||||
command.append(aria2NoSeeds.toUtf8());
|
command.append(aria2NoSeeds.toUtf8());
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ int main(int argc, char *argv[])
|
|||||||
DAboutDialog dialog;
|
DAboutDialog dialog;
|
||||||
a.setAboutDialog(&dialog);
|
a.setAboutDialog(&dialog);
|
||||||
dialog.setLicense(QObject::tr("We publish this program under GPL V3"));
|
dialog.setLicense(QObject::tr("We publish this program under GPL V3"));
|
||||||
dialog.setVersion(DApplication::buildVersion("Version 3.1.5-4"));
|
dialog.setVersion(DApplication::buildVersion("Version 3.1.5-5"));
|
||||||
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 +51,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-4"));
|
a.setApplicationVersion(DApplication::buildVersion("3.1.5-5"));
|
||||||
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(
|
||||||
|
|||||||
Reference in New Issue
Block a user