feat: pack dingtalk

This commit is contained in:
wildlife 2024-05-28 10:54:49 +08:00
parent 9b4cacfdd5
commit ad544ef14f
4 changed files with 74 additions and 0 deletions

6
SOURCES/dingtalk Executable file
View File

@ -0,0 +1,6 @@
#!/usr/bin/sh
cd "/opt/dingtalk/$(cat /opt/dingtalk/version)"
export QT_QPA_PLATFORM="wayland;xcb"
export QT_AUTO_SCREEN_SCALE_FACTOR=1
export QT_PLUGIN_PATH="$(pwd)"
LD_PRELOAD="./libgbm.so ./plugins/dtwebview/libcef.so" ./com.alibabainc.dingtalk $1

12
SOURCES/dingtalk.desktop Normal file
View File

@ -0,0 +1,12 @@
[Desktop Entry]
Categories=Chat;Network;
Comment=DingTalk
Exec=dingtalk %u
GenericName=dingtalk
Icon=dingtalk
Keywords=dingtalk;
MimeType=x-scheme-handler/dingtalk;
Name=DingTalk
Name[zh_CN]=
Type=Application
X-Deepin-Vendor=user-custom

1
SOURCES/dingtalk.svg Normal file
View File

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="64" height="64" image-rendering="optimizeSpeed"><path fill="#1791f5" d="M58.182 25.136a25.576 25.576 0 0 0-2.016-5.354 27.163 27.163 0 0 0-.704-1.282h-.001q-1.751-2.975-4.367-5.591C45.824 7.638 39.456 5 32 5S18.18 7.638 12.908 12.91C7.638 18.18 5 24.544 5 32c0 7.456 2.637 13.823 7.908 19.094 3.893 3.893 8.38 6.347 13.437 7.359A28.66 28.66 0 0 0 32 59c7.457 0 13.823-2.634 19.094-7.905 2.78-2.78 4.828-5.863 6.14-9.256.973-2.514 1.545-5.194 1.714-8.051.034-.584.052-1.181.052-1.788 0-2.388-.27-4.668-.818-6.864z"/><path fill="#fff" d="M16.843 14.608c0 2.747.375 6.646 2.35 8.773 1.06 1.141 2.807 1.451 4.21 1.956 3.065 1.104 6.458 2.783 9.726 3.069l-4.298-.631-9.726-1.857c.02.98.219 1.805.59 2.714 2.43 5.974 8.3 4.75 13.66 4.75-2.02.614-4.245.687-6.333.968-.696.094-2.037.118-2.472.774-.733 1.104 1.34 2.622 2.02 3.175 2.967 2.411 5.932 1.95 9.273.511l-1.13 5.655h3.618l-1.81 8.143 4.243-5.428 4.805-6.56h-4.75c1.558-2.928 3.476-5.659 5.026-8.595.68-1.286 1.625-2.777 1.21-4.298-.648-2.369-4.876-3.41-6.914-4.11-5.601-1.92-11.023-4.17-16.512-6.373-2.143-.86-4.453-2.515-6.786-2.636z"/></svg>

After

Width:  |  Height:  |  Size: 1.1 KiB

55
SPECS/dingtalk.spec Normal file
View File

@ -0,0 +1,55 @@
%global __brp_check_rpaths %{nil}
%global debug_package %{nil}
%define _build_id_links none
%undefine __arch_install_post
# 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
Release: 1%{?dist}
Summary: dingtalk
License: Proprietary
URL: https://www.dingtalk.com
Source0: https://dtapp-pub.dingtalk.com/dingtalk-desktop/xc_dingtalk_update/linux_deb/Release/com.alibabainc.dingtalk_%{version}_amd64.deb
Source1: dingtalk.desktop
Source2: dingtalk.svg
Source3: dingtalk
AutoReqProv: no
BuildRequires: dpkg
Requires: libcrypt.so.1()(64bit)
Requires: libstdc++.so.6()(64bit)
%description
钉钉Ding Talk是阿里巴巴集团打造的企业级智能移动办公平台引领未来新一代工作方式将陪伴每一个企业成长是数字经济时代的企业组织协同办公和应用开发平台是新生产力工具。
%prep
%setup -T -c %{name}-%{version}
dpkg -X %{S:0} %{_builddir}/%{name}-%{version}
%build
rm -rf %{_builddir}/%{name}-%{version}/opt/apps/com.alibabainc.dingtalk/files/*Release*/{libm.so*,libstdc++.so*}
%install
install -d %{buildroot}/opt/dingtalk
cp -r %{_builddir}/%{name}-%{version}/opt/apps/com.alibabainc.dingtalk/files/{version,*Release*} %{buildroot}/opt/dingtalk/
install -Dm644 %{S:1} -t %{buildroot}%{_datarootdir}/applications/
# Icon From: https://github.com/vinceliuice/Tela-icon-theme/
install -Dm644 %{S:2} -t %{buildroot}%{_datarootdir}/icons/hicolor/scalable/apps/
install -Dm755 %{S:3} -t %{buildroot}%{_bindir}
# chmod 4755 {buildroot}/opt/dingtalk/plugins/dtwebview/chrome-sandbox
%files
%{_datarootdir}/applications/dingtalk.desktop
%{_datarootdir}/icons/hicolor/scalable/apps/dingtalk.svg
%{_bindir}/dingtalk
/opt/dingtalk/
%changelog
* Fri May 24 2024 nobody <nobody@nobody.com> - 7.5.20.40523
-【功能】左侧导航栏功能入口开放
-【兼容性】剪切板卡顿问题修复
-【问题】修复若干 bug & 稳定性问题
* Sat May 18 2024 nobody <nobody@nobody.com> - 7.5.20.40511
- new version