You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
在 macOS 上,将 wiliwili 打包成独立的app的一大问题是依赖太多,很难分清哪些是需要打包的哪些是不需要的,很容易会出现打包的应用因为缺乏依赖而无法在其他人的电脑上运行起来的情况。
通过缩减依赖和借助 dylibbundler,我们可以方便地打包 wiliwili.app
webp 是应用所需的依赖;
dylibbundler 用于打包app;
jq 用于读取应用版本信息;
mpv-wiliwil 是精简过的 mpv,默认的 mpv 拥有相当多的 wiliwili 用不上的依赖,这里通过自定义精简来实现减少依赖。
注意:如果这是你首次使用brew安装应用,需要下载xcode,并启动xcode选择同意协议,否则在部分系统下构建可能会失败。
cmake -B build -DPLATFORM_DESKTOP=ON -DCMAKE_BUILD_TYPE=Release make -C build wiliwili.app -j$(sysctl -n hw.ncpu)
相关链接:
wiliwili Github Action 打包脚本
mpv-wiliwili
Beta Was this translation helpful? Give feedback.
All reactions