update wechat
parent
12b8948a2b
commit
f0b51fcdda
|
@ -3,7 +3,7 @@
|
|||
app_name="wechat"
|
||||
tmp_dir="/tmp/${app_name}_tmp"
|
||||
version="4.0.0.23"
|
||||
release="${version}"
|
||||
release="${version}-5"
|
||||
|
||||
deb_url="https://pro-store-packages.uniontech.com/appstore/pool/appstore/c/com.tencent.wechat/com.tencent.wechat_${version}_amd64.deb"
|
||||
# 创建临时目录, 用于下载官方包
|
||||
|
@ -32,9 +32,11 @@ mkdir -p "./unpack/usr/share/applications"
|
|||
mkdir -p "./unpack/usr/share/icons"
|
||||
mkdir -p "./unpack/opt/apps"
|
||||
|
||||
app_dir="./unpack/opt/apps"
|
||||
|
||||
echo "下载官方原包..."
|
||||
wget $deb_url -O "${tmp_dir}/${app_name}.deb"
|
||||
# cp ~/Downloads/bf103d215f344e4e8d0e17a7a37eebe8.deb "${tmp_dir}/${app_name}.deb"
|
||||
# cp ./wechat.deb "${tmp_dir}/${app_name}.deb"
|
||||
|
||||
|
||||
echo "下载完成, 解包中..."
|
||||
|
@ -42,15 +44,23 @@ dpkg-deb -R "${tmp_dir}/${app_name}.deb" "${tmp_dir}/${app_name}"
|
|||
|
||||
|
||||
echo "解包完成, 复制到待打包目录..."
|
||||
cp -r "${tmp_dir}/${app_name}/opt/apps/com.tencent.wechat/files" "./unpack/opt/apps/com.tencent.wechat"
|
||||
cp -r "${tmp_dir}/${app_name}/opt/apps/com.tencent.wechat/files" $app_dir/com.tencent.wechat
|
||||
cp -r "${tmp_dir}/${app_name}/opt/apps/com.tencent.wechat/entries/icons/hicolor" "./unpack/usr/share/icons/"
|
||||
|
||||
rm -rf $tmp_dir
|
||||
|
||||
echo "复制uos环境文件..."
|
||||
# echo "复制uos环境文件..."
|
||||
cp -r ./license/etc ./unpack/usr/share/wechat-uos/
|
||||
cp -r ./license/var ./unpack/usr/share/wechat-uos/
|
||||
mv ./unpack/opt/apps/com.tencent.wechat/libuosdevicea.so ./unpack/usr/lib/license/libuosdevicea.so
|
||||
cp ./license/libuosdevicea.so ./unpack/usr/lib/license/libuosdevicea.so
|
||||
|
||||
echo """
|
||||
#!/bin/bash
|
||||
echo "你在想屁吃~~"
|
||||
exit 1
|
||||
""" > $app_dir/com.tencent.wechat/crashpad_handler
|
||||
|
||||
chmod +x $app_dir/com.tencent.wechat/crashpad_handler
|
||||
|
||||
echo "复制完成, 创建可执行文件及程序桌面入口文件..."
|
||||
|
||||
|
|
Loading…
Reference in New Issue