From c14b20c86485e98fe3fbdf2bb3cd91d6400a1bca Mon Sep 17 00:00:00 2001 From: yutent Date: Mon, 11 Mar 2024 14:33:47 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0wechat?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wechat/license/etc/lsb-release | 4 + wechat/license/etc/os-release | 8 + wechat/license/libuosdevicea.so | Bin 0 -> 44403 bytes .../license/var/lib/uos-license/.license.json | 15 ++ wechat/license/var/uos/.license.key | Bin 0 -> 607 bytes wechat/package.sh | 176 ++++++++++++++++++ 6 files changed, 203 insertions(+) create mode 100644 wechat/license/etc/lsb-release create mode 100644 wechat/license/etc/os-release create mode 100755 wechat/license/libuosdevicea.so create mode 100644 wechat/license/var/lib/uos-license/.license.json create mode 100644 wechat/license/var/uos/.license.key create mode 100755 wechat/package.sh diff --git a/wechat/license/etc/lsb-release b/wechat/license/etc/lsb-release new file mode 100644 index 0000000..0c83ec8 --- /dev/null +++ b/wechat/license/etc/lsb-release @@ -0,0 +1,4 @@ +DISTRIB_ID=uos +DISTRIB_RELEASE=20 +DISTRIB_DESCRIPTION="UnionTech OS 20" +DISTRIB_CODENAME=plum diff --git a/wechat/license/etc/os-release b/wechat/license/etc/os-release new file mode 100644 index 0000000..714c4e5 --- /dev/null +++ b/wechat/license/etc/os-release @@ -0,0 +1,8 @@ +PRETTY_NAME="UnionTech OS Desktop 20 Home" +NAME="uos" +VERSION_ID="20 Home" +VERSION="20 Home" +ID=uos +HOME_URL="https://www.chinauos.com/" +BUG_REPORT_URL="http://bbs.chinauos.com" +VERSION_CODENAME=eagle diff --git a/wechat/license/libuosdevicea.so b/wechat/license/libuosdevicea.so new file mode 100755 index 0000000000000000000000000000000000000000..f066c2b3b2ff8072b24d07c5c4ec87ce9d0b4b91 GIT binary patch literal 44403 zcmeFad7K&J-shpKviAUUA^xsm~rpb`&QLktXOy?M-wq$ z6dvX|d@n=~2%nRXL~+2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{ zyM@ky5X&Bw%_>!Xbvi=5eJK%91(_U!6%L$Bh@SSnBX%}HNgd_v_J`?25)gpyoyyU? zNDHhOH|SMKg6myhQvQnJE7H|vE_?RV@gQwq{iF*Rv?z!e-I`$qT^r)HVK9>u*ZL4O z;YD*bqo9XEq_TDiaGXT+@o>KgsY=b`Ej+jCl0b7kF)MKHnP<%*@8`N|rsQ#Xs>?*e z+je}pFVV`e)@C~dA~HN1h58D15$umd$UQ*x0E!Xqh>*a-L!&IaL zic}@cy0s{>EzgKIU3!BYesT8wGD+pzcW8!={pbhZzBla{e@~m|_u!dV(SPO9w~xKd zAF^-Xqoo;^`t$eLe;)bil>2Sx2OI-Oo&P@J=T-+cxbHbETlMWbY<^E$*cjs(ekSlL zys3@+(f{^6&VD4lU&lYP2rlxq_j&3MzwiC!^Ng=;xPxEkA>6(l-&cmgeOxDibZiyJLuKpXCNLnB7%F*q%p3I4w0bbwCaKF5=jU{?l79b=Q5wMgJ#J--M zz}H1&J4Te5`8@QypJqF!@~yyP%3q$Cvy98!IqL0TW6*{v+uq8b==oyel^ruT z@juzOcL z`)VoQt%CyLv#sjzLJx(>{v;-_M)f=XGrNI-+fR1s$nJc_W^TC#^=DQ-Dqo;cqnazxtV321SqbFgq#FMel tgIIlIz4L#nwh#_7ML>?pM+%*keO9Xs&t_3Yo1ZX7C|PC@_x literal 0 HcmV?d00001 diff --git a/wechat/package.sh b/wechat/package.sh new file mode 100755 index 0000000..3540c7d --- /dev/null +++ b/wechat/package.sh @@ -0,0 +1,176 @@ +#!/bin/bash + +app_name="wechat" +tmp_dir="/tmp/${app_name}_tmp" +version="1.0.0.145" +release="1.0.0.145" + +deb_url="https://cdn4.cnxclm.com/uploads/2024/03/05/3VDyAc0x_wechat-beta_1.0.0.145_amd64.deb" +# 创建临时目录, 用于下载官方包 +if [ -d $tmp_dir ]; then + # echo "" + rm -rf $tmp_dir +fi + +if [ -d "./unpack" ]; then + sudo rm -rf ./unpack +fi + +if [ -f "./${app_name}_${version}.deb" ]; then + rm "./${app_name}_${version}.deb" +fi + + +mkdir $tmp_dir + +# 创建临时待打包目录 +echo "创建待打包目录..." +mkdir -p "./unpack/DEBIAN" +mkdir -p "./unpack/usr/bin" +mkdir -p "./unpack/usr/lib/license" +mkdir -p "./unpack/usr/share/wechat-uos" +mkdir -p "./unpack/usr/share/icons/hicolor/256x256/apps" + +echo "下载官方原包..." +wget $deb_url -O "${tmp_dir}/${app_name}.deb" + + +echo "下载完成, 解包中..." +dpkg-deb -R "${tmp_dir}/${app_name}.deb" "${tmp_dir}/${app_name}" + +echo "解包完成, 复制到待打包目录..." +cp -r "${tmp_dir}/${app_name}/opt" "./unpack/" +cp -r "${tmp_dir}/${app_name}/usr" "./unpack/" + +mv ./unpack/opt/wechat-beta/icons/wechat.png ./unpack/usr/share/icons/hicolor/256x256/apps/wechat.png +rm -rf ./unpack/opt/wechat-beta/icons + +rm -rf $tmp_dir + +echo "复制uos环境文件..." +cp -r ./license/etc ./unpack/usr/share/wechat-uos/ +cp -r ./license/var ./unpack/usr/share/wechat-uos/ +cp ./license/libuosdevicea.so ./unpack/usr/lib/license/libuosdevicea.so + +echo "复制完成, 创建可执行文件及程序桌面入口文件..." + +echo """ +[Desktop Entry] +Name=WeChat +Name[zh_CN]=微信 +Exec=wechat %u +Icon=wechat +Categories=Utility;Network;InstantMessaging;Chat; +Terminal=false +Type=Application +StartupWMClass=WeChat +X-GNOME-SingleWindow=true +SingleMainWindow=true +""" > "./unpack/usr/share/applications/wechat.desktop" + + +echo """ +#!/bin/bash + +# wechat only support xcb +BWRAP_ENV_APPEND=\"--setenv QT_QPA_PLATFORM xcb \" +WECHAT_HOME_DIR=\"\${HOME}/Documents/WeChat_Data\" + +if [ -z \${QT_IM_MODULE} ]; then + BWRAP_ENV_APPEND=\"\${BWRAP_ENV_APPEND} --setenv QT_IM_MODULE fcitx\" +fi + +case \"\$XDG_CURRENT_DESKTOP\" in + KDE) + SCALE_FACTOR=\$(kreadconfig6 --group KScreen --key ScaleFactor --default 1.0) + BWRAP_ENV_APPEND=\"\${BWRAP_ENV_APPEND} --setenv QT_SCALE_FACTOR \${SCALE_FACTOR}\" + ;; + *) + BWRAP_ENV_APPEND=\"\${BWRAP_ENV_APPEND} --setenv QT_AUTO_SCREEN_SCALE_FACTOR \${QT_AUTO_SCREEN_SCALE_FACTOR:-1}\" + ;; +esac + +if [ -z \${GTK_USE_PORTAL} ]; then + BWRAP_ENV_APPEND=\"\${BWRAP_ENV_APPEND} --setenv GTK_USE_PORTAL 1\" +fi + +if [ ! -d \"\${WECHAT_HOME_DIR}\" ]; then + mkdir -p \${WECHAT_HOME_DIR} +fi + +exec bwrap \\ + --dev-bind / / \\ + --bind \"\${WECHAT_HOME_DIR}\" \"\${HOME}\" \\ + --ro-bind /usr/share/wechat-uos/var/ /var/ \\ + --ro-bind /usr/share/wechat-uos/etc/os-release /etc/os-release \\ + --ro-bind /usr/share/wechat-uos/etc/lsb-release /etc/lsb-release \\ + \${BWRAP_ENV_APPEND} \\ + /opt/wechat-beta/wechat \$@ + + +""" > ./unpack/usr/bin/wechat + +chmod +x ./unpack/usr/bin/wechat + + +echo "修正完成, 计算文件md5..." + +cd ./unpack + +# opt目录中有文件名中带有空格, ;xargs需要处理一下 +find opt/ -type f | xargs -I {} md5sum {} > DEBIAN/md5sums +find usr/ -type f | xargs md5sum >> DEBIAN/md5sums + +IFS=$'\t' read -ra size <<< "$(du -d 0)" + +echo """ +Package: ${app_name} +Version: ${version} +Architecture: amd64 +Maintainer: Yutent +Installed-Size: ${size[0]} +Depends: bubblewrap, libssl1.1 +Section: non-free/chat +Priority: optional +Homepage: https://weixin.qq.com +Description: linux wechat +""" > DEBIAN/control + +echo """ +#!/bin/bash -e + +set -e + +if [ ! -f /etc/lsb-release ]; then + touch /etc/lsb-release +fi + +""" > DEBIAN/postinst + +echo """ +#!/bin/bash -e + +set -e + +if [ -f /etc/lsb-release ]; then + _cont=\"\$(cat /etc/lsb-release)\" + + if [ \$_cont == \"\" ]; then + rm -f /etc/lsb-release + fi +fi + +""" > DEBIAN/prerm + +chmod +x DEBIAN/postinst +chmod +x DEBIAN/prerm + +echo '计算文件md5完成, 打包中...' + +cd .. +sudo chown -R root:root unpack + +dpkg-deb -b ./unpack "./${app_name}_${version}.deb" + +sudo rm -rf ./unpack +echo "打包完成 :)" \ No newline at end of file