summarylogtreecommitdiffstats
path: root/liteloader-qqnt-repatch.hook
blob: 0d55833e2356a3953519bd92cd01a33268891f2d (plain)
1
2
3
4
5
6
7
8
9
10
[Trigger]
Type=File
Operation=Install
Operation=Upgrade
Target=/opt/QQ/resources/app/app_launcher/index.js

[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'