From 7c2adcb6c8443dd1f091acc2f751d3d9341fdf9d Mon Sep 17 00:00:00 2001 From: dingjiahuichina Date: Thu, 4 Sep 2025 11:14:10 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E7=89=88=E6=9C=AC=E5=8D=87=E7=BA=A7?= =?UTF-8?q?=E5=88=B01.0.1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build/dev-store.spec | 39 +++++++++++++++++++++++++++++--------- frontend/package-lock.json | 8 ++++---- 2 files changed, 34 insertions(+), 13 deletions(-) diff --git a/build/dev-store.spec b/build/dev-store.spec index 5e35e83..45ffaed 100644 --- a/build/dev-store.spec +++ b/build/dev-store.spec @@ -1,7 +1,7 @@ %global debug_package %{nil} Name: dev-store -Version: 1.0.0 +Version: 1.0.1 Release: 1 Summary: Development Store Management System @@ -36,6 +36,12 @@ BuildRequires: gcc BuildRequires: gcc-c++ BuildRequires: make +# 排除Electron应用目录的自动依赖分析 +%global __provides_exclude_from ^/opt/dev-store/app/.*$ +%global __requires_exclude_from ^/opt/dev-store/app/.*$ +# 排除特定的Electron应用共享库依赖 +%global __requires_exclude ^(libffmpeg\.so|libEGL\.so|libGLESv2\.so|libvulkan\.so|libvk_swiftshader\.so).*$ + %description DevStore is a comprehensive development store management system that provides both frontend and backend components for managing development resources, @@ -260,13 +266,23 @@ fi # 重新加载systemd配置 systemctl daemon-reload -echo "DevStore服务已安装。" -echo "使用以下命令管理服务:" -echo " 启用自启动: systemctl enable dev-store" -echo " 启动服务: systemctl start dev-store" -echo " 停止服务: systemctl stop dev-store" -echo " 查看状态: systemctl status dev-store" -echo " 查看日志: journalctl -u dev-store -f" +# Enable and start dev-store service (failure won't affect installation) +systemctl enable dev-store.service 2>/dev/null || { + echo "Warning: Failed to enable dev-store service auto-start. Please run manually: systemctl enable dev-store" +} + +systemctl start dev-store.service 2>/dev/null || { + echo "Warning: Failed to start dev-store service. Please run manually: systemctl start dev-store" + echo "Possible reasons: Dependencies not ready or configuration needs adjustment" +} + +echo "DevStore service has been installed." +echo "Use the following commands to manage the service:" +echo " Enable auto-start: systemctl enable dev-store" +echo " Start service: systemctl start dev-store" +echo " Stop service: systemctl stop dev-store" +echo " Check status: systemctl status dev-store" +echo " View logs: journalctl -u dev-store -f" %preun # 卸载前脚本 @@ -282,10 +298,15 @@ fi if [ $1 -eq 0 ]; then # 完全卸载时执行 systemctl daemon-reload - echo "DevStore服务已完全移除。" + echo "DevStore service has been completely removed." fi %changelog +* Tue Sep 2 2025 dingjiahui - 1.0.1-1 +- Support search functionality +- Fix the issue where the list is empty when returning to the homepage from the details page +- Auto-enable and start dev-store service after installation +- Add error handling to ensure service startup failures don't affect package installation * Tue Aug 19 2025 dingjiahui - 1.0.0-1 - Initial release of DevStore - Includes frontend Electron application diff --git a/frontend/package-lock.json b/frontend/package-lock.json index 311c6bc..b5586c6 100644 --- a/frontend/package-lock.json +++ b/frontend/package-lock.json @@ -33,7 +33,7 @@ "@vue/tsconfig": "^0.7.0", "concurrently": "^9.2.0", "cross-env": "^7.0.3", - "electron": "^37.3.1", + "electron": "^37.4.0", "electron-builder": "^26.0.12", "eslint": "^9.33.0", "eslint-config-prettier": "^10.1.8", @@ -4703,9 +4703,9 @@ } }, "node_modules/electron": { - "version": "37.3.1", - "resolved": "https://mirrors.huaweicloud.com/repository/npm/electron/-/electron-37.3.1.tgz", - "integrity": "sha512-7DhktRLqhe6OJh/Bo75bTI0puUYEmIwSzMinocgO63mx3MVjtIn2tYMzLmAleNIlud2htkjpsMG2zT4PiTCloA==", + "version": "37.4.0", + "resolved": "https://mirrors.huaweicloud.com/repository/npm/electron/-/electron-37.4.0.tgz", + "integrity": "sha512-HhsSdWowE5ODOeWNc/323Ug2C52mq/TqNBG+4uMeOA3G2dMXNc/nfyi0RYu1rJEgiaJLEjtHveeZZaYRYFsFCQ==", "dev": true, "hasInstallScript": true, "license": "MIT", -- Gitee