From c50170392b0fe0e35d7964022d4bbf23c53d4cf6 Mon Sep 17 00:00:00 2001 From: wildlife Date: Tue, 28 May 2024 10:59:18 +0800 Subject: [PATCH] feat: pack wechat --- SOURCES/.kyact | 5 ++++ SOURCES/LICENSE | 19 +++++++++++++ SOURCES/libactivation.so | Bin 0 -> 10392 bytes SOURCES/lsb-release | 7 +++++ SOURCES/wechat | 7 +++++ SOURCES/wechat.desktop | 23 +++++++++++++++ SOURCES/wechat.svg | 20 +++++++++++++ SPECS/wechat.spec | 59 +++++++++++++++++++++++++++++++++++++++ 8 files changed, 140 insertions(+) create mode 100644 SOURCES/.kyact create mode 100644 SOURCES/LICENSE create mode 100644 SOURCES/libactivation.so create mode 100644 SOURCES/lsb-release create mode 100755 SOURCES/wechat create mode 100644 SOURCES/wechat.desktop create mode 100644 SOURCES/wechat.svg create mode 100644 SPECS/wechat.spec diff --git a/SOURCES/.kyact b/SOURCES/.kyact new file mode 100644 index 0000000..5af4b92 --- /dev/null +++ b/SOURCES/.kyact @@ -0,0 +1,5 @@ +systemuuid=25ef0280-ec82-42b0-8fb6-10adccc67c02 +netmac=00:07:3e:9c:2e:43 +registernum=WCYU-3AS2-Q7LP-HWH6-SJPZ +serialnum=27734012 +harddisk=WDC-PC-SN530-SDBPNPZ-512G_204485805972 diff --git a/SOURCES/LICENSE b/SOURCES/LICENSE new file mode 100644 index 0000000..b795523 --- /dev/null +++ b/SOURCES/LICENSE @@ -0,0 +1,19 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + +TO:麒麟软件内部版本 +SERIAL:100000 +TERM:2021-08-29 +CLASS:desktop +VERSION:Desktop +PLATFORM:x86_64 +OSNAME:Kylin V10 SP1 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.14 (GNU/Linux) + +iJwEAQECAAYFAmEDwk8ACgkQLRr+uL6cqPu6xAP/QRty0END7q0VxbbwgoKYefHk +VJF9F7SFSU5FGVUyR0pLmKzAMAmi+9xhbGw5tGp2XLIBOJHayK6TGhdpgvP+wT6s +0QLrh3c7HZhM0maoo6ZNR07bYzXXPcrMt6qTgaSRQnV+zfARn9+e2Ub5xfBfphtk +KHL1Nd4NRj0aICyjlys= +=6SEp +-----END PGP SIGNATURE----- diff --git a/SOURCES/libactivation.so b/SOURCES/libactivation.so new file mode 100644 index 0000000000000000000000000000000000000000..258e70dc4998ff8415cc533d6982a253b5014ac1 GIT binary patch literal 10392 zcmeHNe{2-T6`nH~3?cT_;fG@&-cleYEr;XS$Sraq7@G|xl_7S6)Vj<1Ztc5pzH{&P zz#!5Z8MmRXQ(9DoNNp80L84OCM*Sx=Ra+BMNF!Axts0?LRjjs1XG9Yh+URIYuHT!P zcU~4BP5;SXH>ce+R4Rz25QYS(k9jzY<>3B`s{c^STV@bYLIxo8s$y=oK*L<=|!Gb08c7aE6zTXnmj=Ob##qv_4 z^TASIj=Z+TXk!kJ?Vs)z5486h;_O>pkG;L*{uMV?H8x!v`v-MF_PcRVGxKo_uh>;F zZ&)m-m@5KLEf$B#b`OqaIJUO`{_5fURK@XU@_$-*>PXYefBEL&f$w~6;^pZdzp%99 zV_lcNuxG_j#{XV<<#+E?F8z`iIOWH{ z;V(x3%+~MIMQ|Iqfx}-~02qD{`nPe+*8Xnbt7h@v7Z4&SYQ&IX++wW;UM&`h7X94m z;UaztFT!u!rQDZj)&}k0t^FDQqHO7J z>A9{J3&a^7h|sAl#ZiqX@vv@3f;jEa@js#QDs9L}|3#vEp#r`OKUplRe;}E#(ypCy zElXIjM9dXdAB33Y&2F*6LpC*F$76@!xMRPy zTer{_x6^4SEqa~4WXiDy>{vqdB?p~^NV}=H5^i!IY2krE5|PZH=<9dfwCD@RlW9lT zeTYOc?XVl$Z@V!>4-YGS5J3)DnM^Dqe5P0eq&_=LU535Jgmb{+i?9-zfnF!&HOpq5 zRLqVSF-GlFBoa&Svu^DZ$#gSmE1ZltA|C4vhtkQ=MqxP-+qH#d^`_G*-+&Skv3=(w zTidM0P-CcB-I6lAUFb(|89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%87p66!zcw{mt)V-Hhyu>m@)UlLvrNF|q3IAMo+{ zdnA?%IB}ZbZ|_MTpXVu-Ivnoqw(B3!e7=AF_Zi<8ZovQijrsV+z8hjb-D_`o77De= z{Tq71Wx37Qp+A4mgG--YahiBu=I@I9`C>lHAAwut;q$zmlbZxH^EO;$VIE8RK7~T$ z{wsJto?a{{?5DKb^$8ffeEwe&e4qSZgHO*s_s{bje>XOv^T&DTcsMU9U;n%xf2j@z zlzJr!XXdkf6Bcj$*g#jlT68L{aAqFMw_x$|`MZTq&95&oRfTyBUq*#6zJC5LXUI?< oet(?~WyJXk4#FA=h^jDuy$@%;S90H8*Hebl=({6tVIE`u1&lu7Jpcdz literal 0 HcmV?d00001 diff --git a/SOURCES/lsb-release b/SOURCES/lsb-release new file mode 100644 index 0000000..25aaa17 --- /dev/null +++ b/SOURCES/lsb-release @@ -0,0 +1,7 @@ +DISTRIB_ID=Kylin +DISTRIB_RELEASE=V10 +DISTRIB_CODENAME=kylin +DISTRIB_DESCRIPTION="Kylin V10 SP1" +DISTRIB_KYLIN_RELEASE=V10 +DISTRIB_VERSION_TYPE=enterprise +DISTRIB_VERSION_MODE=normal diff --git a/SOURCES/wechat b/SOURCES/wechat new file mode 100755 index 0000000..5ced403 --- /dev/null +++ b/SOURCES/wechat @@ -0,0 +1,7 @@ +#!/usr/bin/sh +set -e + +# wechat only support xcb +export QT_QPA_PLATFORM="xcb" +export QT_AUTO_SCREEN_SCALE_FACTOR=1 +/opt/wechat/wechat "$@" diff --git a/SOURCES/wechat.desktop b/SOURCES/wechat.desktop new file mode 100644 index 0000000..5a3464f --- /dev/null +++ b/SOURCES/wechat.desktop @@ -0,0 +1,23 @@ +[Desktop Entry] +Comment=WeChat +Comment[zh_CN]=微信 +TryExec=wechat +Exec=wechat %u +Icon=wechat +Name=WeChat +Name[zh_CN]=微信 +Categories=Network;InstantMessaging;Chat; +Terminal=false +Type=Application +Keywords=wechat;weixin;we;w; +Keywords[zh_CN]=微;微信;wechat;weixin;we; +StartupWMClass=wechat +X-GNOME-SingleWindow=true +SingleMainWindow=true +Actions=quit; + +[Desktop Action quit] +Name=Quit WeChat +Name[zh_CN]=退出 +Exec=bash -c '/usr/bin/killall wechat' +Icon=application-exit diff --git a/SOURCES/wechat.svg b/SOURCES/wechat.svg new file mode 100644 index 0000000..562efc7 --- /dev/null +++ b/SOURCES/wechat.svg @@ -0,0 +1,20 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/SPECS/wechat.spec b/SPECS/wechat.spec new file mode 100644 index 0000000..75a9e11 --- /dev/null +++ b/SPECS/wechat.spec @@ -0,0 +1,59 @@ +%global __brp_check_rpaths %{nil} +%global debug_package %{nil} +%define _build_id_links none +%undefine __arch_install_post + +Name: wechat +Version: 1.0.0.241 +Release: 1%{?dist} +Summary: WeChat +License: Proprietary +URL: https://weixin.qq.com +Source0: https://archive2.kylinos.cn/deb/kylin/production/PART-V10-SP1/custom/partner/V10-SP1/pool/all/wechat-beta_%{version}_amd64.deb +Source1: wechat.desktop +Source2: wechat.svg +Source3: wechat +Source4: libactivation.so +Source5: .kyact +Source6: LICENSE +Source7: lsb-release + +AutoReqProv: no +BuildRequires: dpkg +Requires: libbz2.so.1()(64bit) + +%description +WeChat from Tencent + +%prep +%setup -T -c %{name}-%{version} +dpkg -X %{S:0} %{_builddir}/%{name}-%{version} + +%build + +%install +install -d %{buildroot}/opt/wechat/ +cp -r %{_builddir}/%{name}-%{version}/opt/wechat*/* %{buildroot}/opt/wechat/ +cp -L /usr/lib64/libbz2.so.1 %{buildroot}/opt/wechat/libbz2.so.1.0 +install -Dm644 %{S:1} -t %{buildroot}%{_datarootdir}/applications/ +# Icon From: https://github.com/vinceliuice/WhiteSur-icon-theme +install -Dm644 %{S:2} -t %{buildroot}%{_datarootdir}/icons/hicolor/scalable/apps/ +install -Dm755 %{S:3} -t %{buildroot}%{_bindir} +install -d %{buildroot}/usr/lib/ +install -Dm755 %{S:4} -t %{buildroot}/usr/lib/ +install -d %{buildroot}%{_sysconfdir} +cp %{S:5} %{S:6} %{S:7} %{buildroot}%{_sysconfdir} + +%files +%{_datarootdir}/applications/wechat.desktop +%{_datarootdir}/icons/hicolor/scalable/apps/wechat.svg +%{_bindir}/wechat +%{_sysconfdir}/.kyact +%{_sysconfdir}/LICENSE +%{_sysconfdir}/lsb-release +/usr/lib/libactivation.so +/opt/wechat/ + +%changelog +* Thu May 23 2024 nobody - 1.0.0.241 + - new version