Patch tlottie to fix broken sticker rendering

Stickers that showed only an outline, gift patterns without their dots
and gift models that were not drawn at all now render like in rlottie.
This commit is contained in:
John Preston
2026-09-16 23:39:48 +04:00
parent 173c0f138d
commit 0b7af2d638
3 changed files with 12 additions and 4 deletions

View File

@@ -160,7 +160,7 @@ RUN <<EOF
git init patches
cd patches
git remote add origin https://github.com/desktop-app/patches.git
git fetch --depth=1 origin a00bc85caa2ca5decefff96ec39ed4e622d31937
git fetch --depth=1 origin 519aaa084608fa6f9a2bfbd1959d133c44d94227
git reset --hard FETCH_HEAD
rm -rf .git
EOF
@@ -1001,7 +1001,7 @@ cd ..
rm -rf tde2e
EOF
FROM builder AS tlottie
FROM patches AS tlottie
RUN <<EOF
RUST_TOOLCHAIN=1.96.1
export RUSTUP_HOME=/usr/src/rustup
@@ -1017,6 +1017,7 @@ cd tlottie
git remote add origin https://github.com/dkaraush/tlottie.git
git fetch --depth=1 origin 31f1b542f88e7b4be9a01e749920d857535fc715
git reset --hard FETCH_HEAD
git apply ../patches/tlottie.patch
cargo rustc --lib --release --locked \
--features c-api --crate-type staticlib \
--target x86_64-unknown-linux-gnu \

View File

@@ -458,7 +458,7 @@ if customRunCommand:
stage('patches', """
git clone https://github.com/desktop-app/patches.git
cd patches
git checkout f08e9082964e39be74f2ae6d2398011f6226f078
git checkout 519aaa084608fa6f9a2bfbd1959d133c44d94227
mac:
git clone https://github.com/desktop-app/qt6_highsierra_patches.git qt6_highsierra
cd qt6_highsierra
@@ -1926,9 +1926,11 @@ release:
""")
stage('tlottie', """
depends:patches/tlottie.patch
git clone https://github.com/dkaraush/tlottie.git
cd tlottie
git checkout 31f1b542f8
git apply ../patches/tlottie.patch
win:
SET "RUSTUP_HOME=%THIRDPARTY_DIR%\\rust\\rustup"
SET "CARGO_HOME=%THIRDPARTY_DIR%\\rust\\cargo"

View File

@@ -123,7 +123,7 @@ parts:
patches:
source: https://github.com/desktop-app/patches.git
source-depth: 1
source-commit: a00bc85caa2ca5decefff96ec39ed4e622d31937
source-commit: 519aaa084608fa6f9a2bfbd1959d133c44d94227
plugin: nil
override-pull: |
craftctl default
@@ -480,6 +480,9 @@ parts:
plugin: nil
build-packages:
- wget
override-pull: |
craftctl default
git apply "$CRAFT_STAGE/patches/tlottie.patch"
override-build: |
RUST_TOOLCHAIN=1.96.1
export RUSTUP_HOME="$CRAFT_PART_BUILD/rustup"
@@ -498,6 +501,8 @@ parts:
objcopy --strip-debug target/release/libtlottie.a "$LIBDIR/libtlottie.a"
cp include/tlottie.h "$INCLUDEDIR/tlottie.h"
prime: [-./*]
after:
- patches
webrtc:
source: https://github.com/desktop-app/tg_owt.git