From d354e1282f819287695ec2e6a310b2027a9ef717 Mon Sep 17 00:00:00 2001 From: wildlife Date: Wed, 3 Jul 2024 16:14:06 +0800 Subject: [PATCH] fix: missing link after upgrade --- SPECS/dingtalk.spec | 7 ++++++- SPECS/typora.spec | 15 ++++++++++++--- 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/SPECS/dingtalk.spec b/SPECS/dingtalk.spec index 58a32ae..4b9d250 100644 --- a/SPECS/dingtalk.spec +++ b/SPECS/dingtalk.spec @@ -5,7 +5,7 @@ # https://dtapp-pub.dingtalk.com/dingtalk-desktop/xc_dingtalk_update/linux_deb/Update/other/amd64/linux_dingtalk_update_package_gray.json Name: dingtalk -Version: 7.5.20.40523 +Version: 7.5.20.40605 Release: 1%{?dist} Summary: dingtalk License: Proprietary @@ -46,6 +46,11 @@ install -Dm755 %{S:3} -t %{buildroot}%{_bindir} /opt/dingtalk/ %changelog +* Thu Jun 13 2024 nobody - 7.5.20.40605 + -【功能】左侧导航栏功能入口开放 + -【兼容性】剪切板卡顿问题修复 + -【问题】修复若干 bug & 稳定性问题 + * Fri May 24 2024 nobody - 7.5.20.40523 -【功能】左侧导航栏功能入口开放 -【兼容性】剪切板卡顿问题修复 diff --git a/SPECS/typora.spec b/SPECS/typora.spec index 3cd6931..74901a2 100644 --- a/SPECS/typora.spec +++ b/SPECS/typora.spec @@ -4,7 +4,7 @@ %undefine __arch_install_post Name: typora -Version: 1.8.10 +Version: 1.9.3 Release: 1%{?dist} Summary: Markdown Editor License: Proprietary @@ -40,15 +40,24 @@ install -Dm644 %{S:3} -t %{buildroot}/opt/typora/ %{_datarootdir}/icons/hicolor/scalable/apps/typora.svg /opt/typora/ +%pre + %post ln -sf /opt/typora/Typora /usr/bin/typora xdg-mime install --mode system --novendor /opt/typora/typora.xml xdg-mime default typora.desktop text/markdown %preun -xdg-mime uninstall --mode system /opt/typora/typora.xml -rm -f /usr/bin/typora +if [ "$1" -eq 0 ]; then + xdg-mime uninstall --mode system /opt/typora/typora.xml + rm -f /usr/bin/typora +fi + +%postun %changelog +* Thu Jun 20 2024 nobody - 1.9.3 + - new version + * Tue May 21 2024 nobody - 1.8.10 - new version