From 71d7d91058eb587efe008ff6262e8589d1ceb0a3 Mon Sep 17 00:00:00 2001 From: yutent Date: Tue, 5 Nov 2024 15:54:18 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0dingtalk?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dingtalk/package.sh | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/dingtalk/package.sh b/dingtalk/package.sh index ab1ea66..7ae37bc 100755 --- a/dingtalk/package.sh +++ b/dingtalk/package.sh @@ -3,8 +3,8 @@ app_name="dingtalk" tmp_dir="/tmp/${app_name}_tmp" curr_dir="$(pwd)" -version="7.6.0.40718" -release="7.6.0-Release.40718" +version="7.6.15.4102301" +release="7.6.15-Release.4102301" deb_url="https://dtapp-pub.dingtalk.com/dingtalk-desktop/xc_dingtalk_update/linux_deb/Release/com.alibabainc.dingtalk_${version}_amd64.deb" @@ -27,11 +27,11 @@ mkdir $tmp_dir echo "创建待打包目录..." mkdir -p "./unpack/DEBIAN" mkdir -p "./unpack/usr/bin" -mkdir -p "./unpack/usr/lib/dingtalk" +mkdir -p "./unpack/usr/share/dingtalk" mkdir -p "./unpack/usr/share/applications" source_dir="${tmp_dir}/dingtalk/opt/apps/com.alibabainc.dingtalk/files" -dtalk_dir="./unpack/usr/lib/dingtalk" +dtalk_dir="./unpack/usr/share/dingtalk" files_dir="${dtalk_dir}/files" echo "下载官方原包..." @@ -55,7 +55,7 @@ Categories=Chat; Comment=钉钉 Exec=dingtalk %u GenericName=dingtalk -Icon=/usr/lib/dingtalk/logo.ico +Icon=/usr/share/dingtalk/logo.ico Keywords=dingtalk; MimeType=x-scheme-handler/dingtalk; Name=钉钉 @@ -66,7 +66,7 @@ Type=Application echo """ #!/bin/bash -cd /usr/lib/dingtalk/files +cd /usr/share/dingtalk/files ./dingtalk_run $1 """ > ./unpack/usr/bin/dingtalk @@ -87,10 +87,13 @@ exit 1 chmod +x ${files_dir}/dingtalk_updater cp -rfv ${files_dir}/dingtalk_updater ${files_dir}/dingtalk_crash_report +cp -rfv ${files_dir}/dingtalk_updater ${files_dir}/doctor + +rm -rfv ${files_dir}/doctor_config rm -rfv ${files_dir}/libgtk-x11-2.0.so.* -rm -rfv ${files_dir}/libm.so.6 +rm -rfv ${files_dir}/libm.so.6 rm -rfv ${files_dir}/i18n/[!iez]*.json rm -rfv ${files_dir}/i18n/id_ID.json