diff --git a/debian/changelog b/debian/changelog index 9e1bb8d..5cb748e 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,6 +1,18 @@ -spark-store (4.8.1) UNRELEASED; urgency=medium +spark-store (4.8.2) UNRELEASED; urgency=medium + + * 更新软件主图标 + * 软件更新器更新成功后删除软件包 + * 修复:首次安装ACE环境情况下无法正确配置ACE中aptss的问题 + * 修复:使用aptss后在/tmp下留下垃圾的问题 + + -- momen Tue, 28 Aug 2025 01:03:08 +0800 + + + +spark-store (4.8.1-1) UNRELEASED; urgency=medium * 修复更新器安装软件完成后仍然显示下载完成的问题 + * 修复一些aptss锁定失败bug -- momen Tue, 28 Aug 2025 01:03:08 +0800 diff --git a/pkg/usr/share/icons/hicolor/scalable/apps/spark-store.png b/pkg/usr/share/icons/hicolor/scalable/apps/spark-store.png new file mode 100644 index 0000000..bc47ff0 Binary files /dev/null and b/pkg/usr/share/icons/hicolor/scalable/apps/spark-store.png differ diff --git a/pkg/usr/share/icons/hicolor/scalable/apps/spark-store.svg b/pkg/usr/share/icons/hicolor/scalable/apps/spark-store.svg deleted file mode 100644 index a84891b..0000000 --- a/pkg/usr/share/icons/hicolor/scalable/apps/spark-store.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/src/assets/icon/spark-store.svg b/src/assets/icon/spark-store.svg index a84891b..a1f9396 100644 --- a/src/assets/icon/spark-store.svg +++ b/src/assets/icon/spark-store.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/src/spark-update-tool/src/appdelegate.cpp b/src/spark-update-tool/src/appdelegate.cpp index 4efbc46..7db37ff 100644 --- a/src/spark-update-tool/src/appdelegate.cpp +++ b/src/spark-update-tool/src/appdelegate.cpp @@ -317,6 +317,6 @@ void AppDelegate::startNextInstall() { // 注意参数顺序:deb路径在前,--no-create-desktop-entry在后 QStringList args; - args << debPath << "--no-create-desktop-entry"; + args << debPath << "--no-create-desktop-entry" << "--delete-after-install"; m_installProcess->start("ssinstall", args); } diff --git a/src/spark-update-tool/src/aptssupdater.cpp b/src/spark-update-tool/src/aptssupdater.cpp index f4bb6dd..71dc533 100644 --- a/src/spark-update-tool/src/aptssupdater.cpp +++ b/src/spark-update-tool/src/aptssupdater.cpp @@ -78,7 +78,7 @@ QStringList aptssUpdater::getPackageSizes() foreach (const QString &packageName, updateablePackages) { // 构建新命令(包含包名参数) - QString command = QString("apt download %1 --print-uris -c /opt/durapps/spark-store/bin/apt-fast-conf/aptss-apt.conf " + QString command = QString("/usr/bin/apt download %1 --print-uris -c /opt/durapps/spark-store/bin/apt-fast-conf/aptss-apt.conf " "-o Dir::Etc::sourcelist=\"/opt/durapps/spark-store/bin/apt-fast-conf/sources.list.d/sparkstore.list\" " "-o Dir::Etc::sourceparts=\"/dev/null\"").arg(packageName); diff --git a/tool/apt-fast/ss-apt-fast b/tool/apt-fast/ss-apt-fast index f1a0746..57e10fa 100755 --- a/tool/apt-fast/ss-apt-fast +++ b/tool/apt-fast/ss-apt-fast @@ -55,6 +55,41 @@ msg_already_running() # exit 1 #fi +# 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 -fr -- "${LISTTEMP}" 2>/dev/null + then + msg "Could not clean up download list file." "warning" + msg "无法清除下载列表文件." "warning" + CLEANUP_STATE=1 + fi + fi + fi +} + +cleanup_aptfast() +{ + local last_exit_code=$? + [ "$CLEANUP_STATE" -eq 0 ] && CLEANUP_STATE=$last_exit_code + cleanup_dllist + _remove_lock + # 添加删除临时目录的逻辑 + if [ -n "$LISTTEMP" ] && [ -d "$LISTTEMP" ]; then + rm -rf "$LISTTEMP" + fi +} +exit_cleanup_state() +{ + cleanup_aptfast + exit $CLEANUP_STATE +} + LCK_FD=99 # create the lock file and lock it, die on failure _create_lock() @@ -289,36 +324,6 @@ fi -# 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 -fr -- "${LISTTEMP}" 2>/dev/null - then - msg "Could not clean up download list file." "warning" - msg "无法清除下载列表文件." "warning" - CLEANUP_STATE=1 - fi - fi - fi -} - -cleanup_aptfast() -{ - local last_exit_code=$? - [ "$CLEANUP_STATE" -eq 0 ] && CLEANUP_STATE=$last_exit_code - cleanup_dllist - _remove_lock -} - -exit_cleanup_state() -{ - exit $CLEANUP_STATE -} # decode url string # translates %xx but must not convert '+' in spaces diff --git a/tool/ssaudit b/tool/ssaudit index 2afffe6..ad5610e 100755 --- a/tool/ssaudit +++ b/tool/ssaudit @@ -178,6 +178,7 @@ function hash_check() { # 确保aptss存在 function ensure_aptss_exist() { if ! command -v aptss &>/dev/null; then + apt update local deb_file="/tmp/spark-store-console-in-container_latest_all.deb" if ! wget -O "$deb_file" "https://amber-ce-resource.spark-app.store/store/depends/spark-store-console-in-container_latest_all.deb"; then diff --git a/tool/ssinstall b/tool/ssinstall index e7be005..a1e44b6 100755 --- a/tool/ssinstall +++ b/tool/ssinstall @@ -178,6 +178,7 @@ function hash_check() { # 确保aptss存在 function ensure_aptss_exist() { if ! command -v aptss &>/dev/null; then + apt update local deb_file="/tmp/spark-store-console-in-container_latest_all.deb" if ! wget -O "$deb_file" "https://amber-ce-resource.spark-app.store/store/depends/spark-store-console-in-container_latest_all.deb"; then