diff --git a/README.en.md b/README.en.md index 7987c3f..13e4603 100644 --- a/README.en.md +++ b/README.en.md @@ -1,7 +1,7 @@ # devstation-config #### Description -config and shortcut for devstation +the config of devstation #### Software Architecture Software architecture description diff --git a/README.md b/README.md index fbf535d..fe7d81a 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # devstation-config #### 介绍 -config and shortcut for devstation +the config of devstation #### 软件架构 软件架构说明 diff --git a/devstation-config.spec b/devstation-config.spec new file mode 100644 index 0000000..642e28b --- /dev/null +++ b/devstation-config.spec @@ -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 - 1-1 +- Init. diff --git a/openEuler.desktop b/openEuler.desktop new file mode 100755 index 0000000..b326b98 --- /dev/null +++ b/openEuler.desktop @@ -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 diff --git a/openEuler.jpg b/openEuler.jpg new file mode 100644 index 0000000..21b7820 Binary files /dev/null and b/openEuler.jpg differ