summarylogtreecommitdiffstats
path: root/liteloader-qqnt-patch.hook
blob: aade1e725a94e12ea953a9905353b8ab123056de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
[Trigger]
Operation=Install
Operation=Upgrade
Type=Package
Target=liteloader-qqnt-git
Target=liteloader-qqnt-bin
Target=linuxqq
Target=linuxqq-nt-bwrap

[Action]
Description=Repatch QQ for LiteLoaderQQNT
When=PostTransaction
Exec=/bin/sh -c 'grep -q /opt/LiteLoader /opt/QQ/resources/app/app_launcher/index.js || sed -i "1 i require(\"/opt/LiteLoader\");" /opt/QQ/resources/app/app_launcher/index.js'