更新dingtalk

master
yutent 2024-11-05 15:54:18 +08:00
parent 780ce11a69
commit 71d7d91058
1 changed files with 10 additions and 7 deletions

View File

@ -3,8 +3,8 @@
app_name="dingtalk" app_name="dingtalk"
tmp_dir="/tmp/${app_name}_tmp" tmp_dir="/tmp/${app_name}_tmp"
curr_dir="$(pwd)" curr_dir="$(pwd)"
version="7.6.0.40718" version="7.6.15.4102301"
release="7.6.0-Release.40718" 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" 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 "创建待打包目录..." echo "创建待打包目录..."
mkdir -p "./unpack/DEBIAN" mkdir -p "./unpack/DEBIAN"
mkdir -p "./unpack/usr/bin" mkdir -p "./unpack/usr/bin"
mkdir -p "./unpack/usr/lib/dingtalk" mkdir -p "./unpack/usr/share/dingtalk"
mkdir -p "./unpack/usr/share/applications" mkdir -p "./unpack/usr/share/applications"
source_dir="${tmp_dir}/dingtalk/opt/apps/com.alibabainc.dingtalk/files" 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" files_dir="${dtalk_dir}/files"
echo "下载官方原包..." echo "下载官方原包..."
@ -55,7 +55,7 @@ Categories=Chat;
Comment=钉钉 Comment=钉钉
Exec=dingtalk %u Exec=dingtalk %u
GenericName=dingtalk GenericName=dingtalk
Icon=/usr/lib/dingtalk/logo.ico Icon=/usr/share/dingtalk/logo.ico
Keywords=dingtalk; Keywords=dingtalk;
MimeType=x-scheme-handler/dingtalk; MimeType=x-scheme-handler/dingtalk;
Name=钉钉 Name=钉钉
@ -66,7 +66,7 @@ Type=Application
echo """ echo """
#!/bin/bash #!/bin/bash
cd /usr/lib/dingtalk/files cd /usr/share/dingtalk/files
./dingtalk_run $1 ./dingtalk_run $1
""" > ./unpack/usr/bin/dingtalk """ > ./unpack/usr/bin/dingtalk
@ -87,6 +87,9 @@ exit 1
chmod +x ${files_dir}/dingtalk_updater 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}/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}/libgtk-x11-2.0.so.*