Skip to content

Commit edd38af

Browse files
committed
Merge branch 'feature/qq-miniapp-card-parsing' into main
2 parents 72ae762 + c0da02a commit edd38af

File tree

25 files changed

+689
-1183
lines changed

25 files changed

+689
-1183
lines changed

Dockerfile

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,16 @@ RUN if [ "$USE_MIRROR" = "true" ]; then \
99
sed -i 's/deb.debian.org/mirrors.ustc.edu.cn/g' /etc/apt/sources.list.d/debian.sources; \
1010
fi && \
1111
apt-get update && apt-get install -y --no-install-recommends \
12-
curl wget \
12+
curl wget bash \
1313
fonts-wqy-microhei \
1414
libpixman-1-0 libcairo2 libpango1.0-0 libgif7 libjpeg62-turbo libpng16-16 librsvg2-2 libvips42 ffmpeg \
1515
&& rm -rf /var/lib/apt/lists/*
1616

17-
# 指定 pnpm 版本防止变动
1817
RUN corepack enable && corepack prepare pnpm@latest --activate && npm install -g npm@latest
1918
WORKDIR /app
2019

20+
FROM edasriyan/lottie-to-gif:latest AS lottie
21+
2122
FROM base AS build
2223
ARG USE_MIRROR=true
2324

@@ -50,12 +51,19 @@ RUN pnpm --filter=@napgram/core run build
5051
COPY web/ /app/web/
5152
RUN pnpm --filter=web run build
5253

54+
# Dev/Build 阶段也带上 tgs 转换工具,便于 compose.dev 使用 target=build
55+
COPY --from=lottie /usr/bin/lottie_to_gif.sh /usr/local/bin/tgs_to_gif
56+
COPY --from=lottie /usr/bin/lottie_common.sh /usr/local/bin/lottie_common.sh
57+
COPY --from=lottie /usr/bin/lottie_to_png /usr/local/bin/lottie_to_png
58+
COPY --from=lottie /usr/bin/gifski /usr/local/bin/gifski
59+
ENV TGS_TO_GIF=/usr/local/bin/tgs_to_gif
60+
5361
FROM base AS release
5462
# Lottie Converter
55-
COPY --from=edasriyan/lottie-to-gif:latest /usr/bin/lottie_to_gif.sh /usr/local/bin/tgs_to_gif
56-
COPY --from=edasriyan/lottie-to-gif:latest /usr/bin/lottie_common.sh /usr/local/bin/lottie_common.sh
57-
COPY --from=edasriyan/lottie-to-gif:latest /usr/bin/lottie_to_png /usr/local/bin/lottie_to_png
58-
COPY --from=edasriyan/lottie-to-gif:latest /usr/bin/gifski /usr/local/bin/gifski
63+
COPY --from=lottie /usr/bin/lottie_to_gif.sh /usr/local/bin/tgs_to_gif
64+
COPY --from=lottie /usr/bin/lottie_common.sh /usr/local/bin/lottie_common.sh
65+
COPY --from=lottie /usr/bin/lottie_to_png /usr/local/bin/lottie_to_png
66+
COPY --from=lottie /usr/bin/gifski /usr/local/bin/gifski
5967
ENV TGS_TO_GIF=/usr/local/bin/tgs_to_gif
6068

6169
COPY --from=build --chown=node:node /app/node_modules /app/node_modules

main/src/domain/constants/commands.ts

Lines changed: 0 additions & 138 deletions
This file was deleted.

main/src/domain/constants/exts.ts

Lines changed: 0 additions & 3 deletions
This file was deleted.

main/src/domain/constants/index.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,2 @@
1-
export * from './commands';
2-
export * from './emoji';
3-
export * from './exts';
41
export * from './flags';
5-
export * from './lottie';
6-
export * from './nameColor';
7-
export * from './regExps';
8-
export * from './qface';
2+
export { default as qfaceMap } from './qface';

main/src/domain/constants/lottie.ts

Lines changed: 0 additions & 11 deletions
This file was deleted.

main/src/domain/constants/nameColor.ts

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)