Compare commits

..

5 Commits

Author SHA1 Message Date
zinface d8e94c87bc fix(app/detail): 详情页未更新警示横幅去除 Emoji 2026-06-10 10:41:53 +08:00
zinface e97052b93c feat: 添加软件更新警醒横幅
- 在应用详情页顶部添加警醒横幅
- 当软件超过一年未更新时显示警告提示
2026-06-09 09:54:30 +08:00
shenmo7192 8e8617218a !391 增加对aosc os的支持
Merge pull request !391 from Melorise/add-support-for-aosc
2026-05-22 15:06:40 +00:00
Melorise 97f49201b7 增加对aosc os的支持 2026-05-20 10:31:49 +08:00
shenmo7192 f62665cd73 release: bump version to 5.1.1 and fix dns download issue
add --async-dns=false aria2 parameter to all download jobs to fix potential dns resolution failures during package download
2026-05-16 02:35:29 +08:00
6 changed files with 42 additions and 1 deletions
+1
View File
@@ -390,6 +390,7 @@ async function processNextInQueue() {
const aria2Args = [ const aria2Args = [
`--dir=${downloadDir}`, `--dir=${downloadDir}`,
"--allow-overwrite=true", "--allow-overwrite=true",
"--async-dns=false",
"--summary-interval=1", "--summary-interval=1",
"--connect-timeout=10", "--connect-timeout=10",
"--timeout=15", "--timeout=15",
@@ -89,6 +89,7 @@ export const downloadPackage = async ({
const aria2Args = [ const aria2Args = [
`--dir=${downloadDir}`, `--dir=${downloadDir}`,
"--allow-overwrite=true", "--allow-overwrite=true",
"--async-dns=false",
"--summary-interval=1", "--summary-interval=1",
"--connect-timeout=10", "--connect-timeout=10",
"--timeout=15", "--timeout=15",
+6
View File
@@ -23,6 +23,12 @@ if ! command -v apt >/dev/null 2>&1; then
ARGS="$ARGS --no-spark" ARGS="$ARGS --no-spark"
fi fi
# 检查是否是AOSC OS
if grep -q "ID=aosc" /etc/os-release; then
echo "检测到 AOSC OS"
ARGS="$ARGS --no-spark"
fi
# 注意:已移除原先针对 arm64 + wayland 添加 --disable-gpu 的逻辑, # 注意:已移除原先针对 arm64 + wayland 添加 --disable-gpu 的逻辑,
# 现在 arm64 设备无论是否使用 wayland 均不再添加此参数。 # 现在 arm64 设备无论是否使用 wayland 均不再添加此参数。
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "spark-store", "name": "spark-store",
"version": "5.1.0", "version": "5.1.1",
"main": "dist-electron/main/index.js", "main": "dist-electron/main/index.js",
"description": "Client for Spark App Store", "description": "Client for Spark App Store",
"author": "elysia-best <elysia-best@simplelinux.cn.eu.org>", "author": "elysia-best <elysia-best@simplelinux.cn.eu.org>",
@@ -37,6 +37,7 @@ void DownloadManager::startDownload(const QString &packageName, const QString &u
QStringList arguments = { QStringList arguments = {
"--enable-rpc=false", "--enable-rpc=false",
"--console-log-level=warn", "--console-log-level=warn",
"--async-dns=false",
"--summary-interval=1", "--summary-interval=1",
"--allow-overwrite=true", "--allow-overwrite=true",
"--connect-timeout=30", "--connect-timeout=30",
+32
View File
@@ -262,6 +262,23 @@
<!-- 右侧应用详情+ 截图 --> <!-- 右侧应用详情+ 截图 -->
<div class="flex-1 min-w-0 space-y-5"> <div class="flex-1 min-w-0 space-y-5">
<!-- 警醒横幅 - 早于一年未更新 -->
<div
v-if="displayApp?.update && isOutdated(displayApp.update)"
class="rounded-2xl border-l-4 border-amber-500 bg-amber-50 p-4 dark:bg-amber-950/30 dark:border-amber-600"
>
<div class="flex items-center gap-3">
<i class="fas fa-exclamation-triangle text-amber-500 text-lg"></i>
<div>
<p class="text-sm font-medium text-amber-800 dark:text-amber-300">
注意该软件已超过一年未更新
</p>
<p class="text-xs text-amber-700/80 dark:text-amber-400/80 mt-0.5">
最后更新于 {{ displayApp.update }}可能存在兼容性或安全问题请谨慎安装
</p>
</div>
</div>
</div>
<!-- 应用详情 --> <!-- 应用详情 -->
<div <div
v-if="displayApp?.more && displayApp.more.trim() !== ''" v-if="displayApp?.more && displayApp.more.trim() !== ''"
@@ -633,4 +650,19 @@ const onOverlayWheel = (e: WheelEvent) => {
if (target.closest(".overflow-y-auto, .overflow-auto")) return; if (target.closest(".overflow-y-auto, .overflow-auto")) return;
e.preventDefault(); e.preventDefault();
}; };
// 判断是否超过一年未更新
const isOutdated = (updateDate: string) => {
if (!updateDate) return false;
try {
// 假设日期格式如 "2023-01-15" 或 "2024年12月20日"
const date = new Date(updateDate);
if (isNaN(date.getTime())) return false;
const oneYearAgo = new Date();
oneYearAgo.setFullYear(oneYearAgo.getFullYear() - 1);
return date < oneYearAgo;
} catch {
return false;
}
};
</script> </script>