From 538c7fa6dc324bb914eed90b3079d38d134dcfc9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8F=B2=E9=B8=BF=E5=AE=87?= Date: Thu, 8 May 2025 19:31:38 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=9B=B4=E6=96=B0=E5=BA=94=E7=94=A8?= =?UTF-8?q?=E5=90=8D=E7=A7=B0=E5=92=8C=E6=8F=8F=E8=BF=B0=EF=BC=8C=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E7=9B=B8=E5=85=B3=E7=95=8C=E9=9D=A2=E6=96=87=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 史鸿宇 --- build/linux/euler-copilot-desktop.desktop | 22 +++++++++---------- build/linux/euler-copilot-web.spec | 26 +++++++++++------------ electron/main/window/create.ts | 2 +- electron/main/window/tray.ts | 2 +- package.json | 14 ++++++------ src/components/bubble/index.vue | 2 +- 6 files changed, 34 insertions(+), 34 deletions(-) diff --git a/build/linux/euler-copilot-desktop.desktop b/build/linux/euler-copilot-desktop.desktop index ccbeb451..1db83cbd 100644 --- a/build/linux/euler-copilot-desktop.desktop +++ b/build/linux/euler-copilot-desktop.desktop @@ -1,16 +1,16 @@ [Desktop Entry] -Name=EulerCopilot -Exec=/opt/EulerCopilot/euler-copilot-desktop %U +Name=openEuler Intelligence +Exec=/opt/Intelligence/euler-copilot-desktop %U Terminal=false Type=Application Icon=euler-copilot-desktop -StartupWMClass=EulerCopilot -Comment=openEuler LLM Intelligent System Desktop Client -Comment[zh]=openEuler 大模型智能系统桌面客户端 -Comment[zh_CN]=openEuler 大模型智能系统桌面客户端 -Comment[zh_CN.UTF-8]=openEuler 大模型智能系统桌面客户端 -Comment[zh_HK]=openEuler 大模型智能系統桌面應用程式 -Comment[zh_HK.UTF-8]=openEuler 大模型智能系統桌面應用程式 -Comment[zh_TW]=openEuler 大模型智能系統桌面軟體 -Comment[zh_TW.UTF-8]=openEuler 大模型智能系統桌面軟體 +StartupWMClass=Intelligence +Comment=openEuler Intelligence Desktop Client +Comment[zh]=openEuler 智能化解决方案桌面客户端 +Comment[zh_CN]=openEuler 智能化解决方案桌面客户端 +Comment[zh_CN.UTF-8]=openEuler 智能化解决方案桌面客户端 +Comment[zh_HK]=openEuler 智能化解決方案桌面應用程式 +Comment[zh_HK.UTF-8]=openEuler 智能化解決方案桌面應用程式 +Comment[zh_TW]=openEuler 智能化解決方案桌面軟體 +Comment[zh_TW.UTF-8]=openEuler 智能化解決方案桌面軟體 Categories=Utility; diff --git a/build/linux/euler-copilot-web.spec b/build/linux/euler-copilot-web.spec index bef916e9..dfec1dc3 100644 --- a/build/linux/euler-copilot-web.spec +++ b/build/linux/euler-copilot-web.spec @@ -21,7 +21,7 @@ Version: 0.9.6 Release: 1%{?dist} License: MulanPSL-2.0 Group: Applications/Utilities -Summary: openEuler 大模型智能系统 Web 前端 +Summary: openEuler 智能化解决方案 Web 前端 Source0: %{name}-%{version}.tar.gz URL: https://gitee.com/openeuler/euler-copilot-web @@ -31,10 +31,10 @@ Packager: openEuler BuildRequires: curl %description -openEuler 大模型智能系统 Web 前端 +openEuler 智能化解决方案 Web 前端 %package -n euler-copilot-desktop -Summary: openEuler 大模型智能系统桌面客户端 +Summary: openEuler 智能化解决方案桌面客户端 Requires: at-spi2-core Requires: gtk3 Requires: libXScrnSaver @@ -47,7 +47,7 @@ Requires(post): /bin/sh Requires(postun): /bin/sh %description -n euler-copilot-desktop -openEuler 大模型智能系统桌面客户端 +openEuler 智能化解决方案桌面客户端 %prep @@ -100,7 +100,7 @@ pnpm run package:linux %install -mkdir -p %{buildroot}/opt/EulerCopilot +mkdir -p %{buildroot}/opt/Intelligence mkdir -p %{buildroot}/usr/share/applications # 创建图标目录 mkdir -p %{buildroot}/usr/share/icons/hicolor/16x16/apps @@ -114,7 +114,7 @@ mkdir -p %{buildroot}/usr/share/icons/hicolor/256x256@2/apps mkdir -p %{buildroot}/usr/share/icons/hicolor/512x512/apps # 复制构件到目标目录 -cp -a %{_builddir}/%{name}-%{version}/release/euler-copilot-%{version}/%{_electron_build_dir}/* %{buildroot}/opt/EulerCopilot/ +cp -a %{_builddir}/%{name}-%{version}/release/openeuler-intelligence-%{version}/%{_electron_build_dir}/* %{buildroot}/opt/Intelligence/ # 拷贝桌面入口文件和图标 cp -a %{_builddir}/%{name}-%{version}/build/linux/euler-copilot-desktop.desktop %{buildroot}/usr/share/applications/ cp -a %{_builddir}/%{name}-%{version}/build/icons/16x16.png %{buildroot}/usr/share/icons/hicolor/16x16/apps/euler-copilot-desktop.png @@ -134,8 +134,8 @@ cp -a %{_builddir}/%{name}-%{version}/build/icons/512x512.png %{buildroot}/usr/s %files -n euler-copilot-desktop # 应用安装目录及其所有内容 -%dir /opt/EulerCopilot -%attr(0755, root, root) /opt/EulerCopilot/* +%dir /opt/Intelligence +%attr(0755, root, root) /opt/Intelligence/* # 桌面与图标 %attr(0644, root, root) /usr/share/applications/euler-copilot-desktop.desktop %attr(0644, root, root) /usr/share/icons/hicolor/16x16/apps/euler-copilot-desktop.png @@ -157,17 +157,17 @@ if type update-alternatives 2>/dev/null >&1; then if [ -L '/usr/bin/euler-copilot-desktop' -a -e '/usr/bin/euler-copilot-desktop' -a "`readlink '/usr/bin/euler-copilot-desktop'`" != '/etc/alternatives/euler-copilot-desktop' ]; then rm -f '/usr/bin/euler-copilot-desktop' fi - update-alternatives --install '/usr/bin/euler-copilot-desktop' 'euler-copilot-desktop' '/opt/EulerCopilot/euler-copilot-desktop' 100 || ln -sf '/opt/EulerCopilot/euler-copilot-desktop' '/usr/bin/euler-copilot-desktop' + update-alternatives --install '/usr/bin/euler-copilot-desktop' 'euler-copilot-desktop' '/opt/Intelligence/euler-copilot-desktop' 100 || ln -sf '/opt/Intelligence/euler-copilot-desktop' '/usr/bin/euler-copilot-desktop' else - ln -sf '/opt/EulerCopilot/euler-copilot-desktop' '/usr/bin/euler-copilot-desktop' + ln -sf '/opt/Intelligence/euler-copilot-desktop' '/usr/bin/euler-copilot-desktop' fi # Check if user namespaces are supported by the kernel and working with a quick test: if ! { [[ -L /proc/self/ns/user ]] && unshare --user true; }; then # Use SUID chrome-sandbox only on systems without user namespaces: - chmod 4755 '/opt/EulerCopilot/chrome-sandbox' || true + chmod 4755 '/opt/Intelligence/chrome-sandbox' || true else - chmod 0755 '/opt/EulerCopilot/chrome-sandbox' || true + chmod 0755 '/opt/Intelligence/chrome-sandbox' || true fi if hash update-mime-database 2>/dev/null; then @@ -189,7 +189,7 @@ fi # Unfortunately, at the moment AppArmor doesn't have a good story for backwards compatibility. # https://askubuntu.com/questions/1517272/writing-a-backwards-compatible-apparmor-profile if apparmor_status --enabled > /dev/null 2>&1; then - APPARMOR_PROFILE_SOURCE='/opt/EulerCopilot/resources/apparmor-profile' + APPARMOR_PROFILE_SOURCE='/opt/Intelligence/resources/apparmor-profile' APPARMOR_PROFILE_TARGET='/etc/apparmor.d/euler-copilot-desktop' if apparmor_parser --skip-kernel-load --debug "$APPARMOR_PROFILE_SOURCE" > /dev/null 2>&1; then cp -f "$APPARMOR_PROFILE_SOURCE" "$APPARMOR_PROFILE_TARGET" diff --git a/electron/main/window/create.ts b/electron/main/window/create.ts index 76cf174c..5fdafeed 100644 --- a/electron/main/window/create.ts +++ b/electron/main/window/create.ts @@ -173,7 +173,7 @@ export function createDefaultWindow(): BrowserWindow { // 设置窗口标题 defaultWindow.webContents.on('did-finish-load', () => { - defaultWindow?.setTitle('openEuler 大模型智能系统'); + defaultWindow?.setTitle('openEuler 智能化解决方案'); }); return defaultWindow; diff --git a/electron/main/window/tray.ts b/electron/main/window/tray.ts index 9e5e4cb2..7eaa0585 100644 --- a/electron/main/window/tray.ts +++ b/electron/main/window/tray.ts @@ -96,7 +96,7 @@ export function createTray(): Tray { appTray.setImage(resizedImage); } const contextMenu = Menu.buildFromTemplate(trayMenus); - appTray.setToolTip('EulerCopilot'); + appTray.setToolTip('openEuler Intelligence'); appTray.setContextMenu(contextMenu); return appTray; diff --git a/package.json b/package.json index 5737fa5d..c920f3cb 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { - "name": "euler-copilot", + "name": "openeuler-intelligence", "version": "0.9.6", - "description": "openEuler 大模型智能系统", + "description": "openEuler 智能化解决方案", "author": { "name": "openEuler", "email": "contact@openeuler.org" @@ -35,8 +35,8 @@ "package:linux": "pnpm run build:desktop && electron-builder --linux" }, "build": { - "appId": "org.openeuler.eulercopilot", - "productName": "EulerCopilot", + "appId": "org.openeuler.intelligence", + "productName": "openEuler Intelligence", "copyright": "Copyright (c) Huawei Technologies Co., Ltd. 2023-2025. All rights reserved.", "artifactName": "${name}-${version}-${os}-${arch}.${ext}", "directories": { @@ -71,7 +71,7 @@ ] }, "mac": { - "executableName": "EulerCopilot", + "executableName": "openEuler Intelligence", "category": "public.app-category.utilities", "target": [ "dmg" @@ -94,7 +94,7 @@ "installerHeaderIcon": "build/icon.ico", "createDesktopShortcut": true, "createStartMenuShortcut": true, - "shortcutName": "EulerCopilot", + "shortcutName": "openEuler Intelligence", "deleteAppDataOnUninstall": true, "include": "build/win/nsis-installer.nsh" }, @@ -188,5 +188,5 @@ "vite-plugin-mock": "^3.0.2", "vite-plugin-qiankun": "1.0.15" }, - "packageManager": "pnpm@10.9.0+sha512.0486e394640d3c1fb3c9d43d49cf92879ff74f8516959c235308f5a8f62e2e19528a65cdc2a3058f587cde71eba3d5b56327c8c33a97e4c4051ca48a10ca2d5f" + "packageManager": "pnpm@10.10.0+sha512.d615db246fe70f25dcfea6d8d73dee782ce23e2245e3c4f6f888249fb568149318637dca73c2c5c8ef2a4ca0d5657fb9567188bfab47f566d1ee6ce987815c39" } diff --git a/src/components/bubble/index.vue b/src/components/bubble/index.vue index c238d905..a0679492 100644 --- a/src/components/bubble/index.vue +++ b/src/components/bubble/index.vue @@ -36,7 +36,7 @@ const props = withDefaults(defineProps(), { >
-
EulerCopilot正在生成回答...
+
openEuler Intelligence 正在生成回答...