Hakuuyosei / QQHistoryExport

安卓设备QQ聊天记录导出,支持图片/视频/音频/引用/文件 大部分消息,支持几乎所有的重要消息类型,支持PDF导出,未来将支持html导出
230 stars 10 forks source link

resources files too big to clone #8

Closed snowman closed 8 months ago

snowman commented 8 months ago

The project has following big files, slow to clone

curl -H "Accept: application/vnd.github.v3+json" \
 'https://api.github.com/repos/Hakuuyosei/QQHistoryExport/git/trees/master?recursive=1' \
 | jq '[.tree[] | select(.type != "tree")] | sort_by(.size) | reverse | .[0:4] | map({path: .path, size: ((.size / 1024 / 1024 *100|round/100)|tostring + " MB")})'
[
  {
    "path": "resources/fonts/AppleEmoji/AppleEmoji",
    "size": "96.45 MB"
  },
  {
    "path": "lib/ffmpeg-lgpl/ffmpeg.exe",
    "size": "71.27 MB"
  },
  {
    "path": "resources/fonts/simhei_aspect_ratio.db",
    "size": "35.7 MB"
  },
  {
    "path": "resources/fonts/simhei.ttf",
    "size": "9.3 MB"
  }
]
snowman commented 8 months ago

suggestion:

  1. do not include those files in git repos, write script to downloading them from the web, and/or use local installed ffmpeg
  2. Build script to package those resources file into release for casual user
snowman commented 8 months ago

ignore it