Updated patches

This commit is contained in:
DarkCat09 2023-08-09 11:48:12 +04:00
parent 638746d742
commit abcd780bd1
Signed by: DarkCat09
GPG key ID: 4785B6FB1C50A540

View file

@ -18,9 +18,9 @@ patch_reqwest4j () {
patcher \ patcher \
reqwest-jni/build.gradle.kts \ reqwest-jni/build.gradle.kts \
-e 's/command\.set\("cross"\)/command.set("cargo")/' \ -e 's/command\.set\("cross"\)/command.set("cargo")/' \
-e ' /command\.set\("cargo"\)/a cargoInstallTargets.set(true)' \ -e ' /command\.set\("cargo"\)/a targets += target("x86_64-unknown-linux-musl", "libreqwest.so")' \
-e ' /targets \+= target\(".*-unknown-linux-gnu", "libreqwest\.so"\)/d' \ -e ' /targets \+= target\(".*-unknown-linux-gnu", "libreqwest\.so"\)/d' \
-e ' /cargoInstallTargets\.set\(true\)/a targets += target("x86_64-unknown-linux-musl", "libreqwest.so")' -e ' /targets \+= target\(".*-pc-windows-gnu", "libreqwest\.dll"\)/d'
} }
patcher () { patcher () {