[Backport release-24.11] rustdesk-flutter: fix build (#356694)

rustdesk-flutter: fix build (#356450)

(cherry picked from commit 02d0071fa9)

Co-authored-by: Bot_wxt1221 <3264117476@qq.com>
This commit is contained in:
github-actions[bot] 2024-11-17 12:33:03 +01:00 committed by GitHub
parent 19c8994e0c
commit c5b561dcc4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -163,8 +163,11 @@ flutter319.buildFlutterApplication rec {
patches = [ ./make-build-reproducible.patch ];
postPatch = ''
substituteInPlace $cargoDepsCopy/libappindicator-sys-*/src/lib.rs \
--replace-fail "libayatana-appindicator3.so.1" "${lib.getLib libayatana-appindicator}/lib/libayatana-appindicator3.so.1"
if [ $cargoDepsCopy ]; then # That will be inherited to buildDartPackage and it doesn't have cargoDepsCopy
substituteInPlace $cargoDepsCopy/libappindicator-sys-*/src/lib.rs \
--replace-fail "libayatana-appindicator3.so.1" "${lib.getLib libayatana-appindicator}/lib/libayatana-appindicator3.so.1"
fi
substituteInPlace ../Cargo.toml --replace-fail ", \"staticlib\", \"rlib\"" ""
# The supplied Cargo.lock doesn't work with our fetcher so copy over the fixed version
cp ${./Cargo.lock} ../Cargo.lock