!3 24.09分支同步到master主分支

From: @lipingEmmaSiguyi 
Reviewed-by: @Lostwayzxc 
Signed-off-by: @Lostwayzxc
This commit is contained in:
李萍 2024-12-26 07:54:26 +00:00 committed by openeuler-ci-bot
parent b3f5defab8
commit bf9f0a6199
5 changed files with 47 additions and 2 deletions

View File

@ -1,7 +1,7 @@
# devstation-config
#### Description
config and shortcut for devstation
the config of devstation
#### Software Architecture
Software architecture description

View File

@ -1,7 +1,7 @@
# devstation-config
#### 介绍
config and shortcut for devstation
the config of devstation
#### 软件架构
软件架构说明

37
devstation-config.spec Normal file
View File

@ -0,0 +1,37 @@
Name: devstation-config
Version: 1
Release: 1
Summary: A shortcut to openEuler official site
License: LGPLv3
Source0: openEuler.desktop
Source1: openEuler.jpg
#BuildRequires:
#Requires:
%description
A shortcut to openEuler official site.
%install
%{__mkdir} -p %{buildroot}%{_datadir}/applications
%{__cp} %{_sourcedir}/{openEuler.desktop,openEuler.jpg} %{buildroot}%{_datadir}/applications
%post
echo "Trying to install the shortcut to user desktops..."
for user in $(ls /home); do
[[ ! -d /home/$user/Desktop ]] && mkdir /home/$user/Desktop
%{__install} %{_datadir}/applications/openEuler.desktop /home/$user/Desktop
echo " Installed to \"$user\"."
done
[[ ! -d /root/Desktop ]] && mkdir /root/Desktop
%{__install} %{_datadir}/applications/openEuler.desktop /root/Desktop
echo " Installed to \"root\"."
%files
%attr(755, root, root) %{_datadir}/applications/{openEuler.desktop,openEuler.jpg}
%changelog
* Wed Aug 28 2024 Li Ping <liping136@huawei.com> - 1-1
- Init.

8
openEuler.desktop Executable file
View File

@ -0,0 +1,8 @@
[Desktop Entry]
Version=1.0
Type=Application
Name=easysoftware
Exec=xdg-open https://easysoftware.openeuler.org/zh
Icon=/usr/share/applications/openEuler.jpg
Comment=Open openEuler easysoftware site in your default web browser
Terminal=false

BIN
openEuler.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 962 B