linux - 我如何知道Electron需要运行哪些Debian库?

标签 linux docker electron debian balena

我在做什么
我正在使用Balena在Raspberry Pi 4上运行一个基于Electron的信息亭应用程序。Balena需要一个Dockerfile来构建将运行我的应用程序的容器。在该Dockerfile中,我必须确保安装了Electron所需的所有库。我使用的图像基于Debian Buster(Balena使用的默认图像)。
我知道的
我在GitHub中找到了两个有效的示例,它们与我试图在其中看到安装了哪些库的方式类似:

  • https://github.com/Ciantic/balena-electron-example(list of installed libraries)
  • https://github.com/balena-io/balena-electronjs(list of installed libraries)

  • 在 Electron 仓库中还有两个文件提到了所需的库:
  • https://github.com/electron/electron/blob/77049545050673949b2844f17b3731196947956a/build/install-build-deps.sh#L189-L231
  • https://github.com/electron/electron/blob/d5ab63b1ead93dcb4e3099fccd4670fe9258ca9c/docs/development/build-instructions-linux.md

  • 什么让我感到困惑
    上述文件中的库的每个列表都与其他列表不同。我不知道应该跟随哪一个。另外,build instructions for Linux没有任何特定于Debian的列表。
    我的问题
    我如何确切地知道我需要在基于Debian的容器中安装哪些库才能运行Electron?

    最佳答案

    在示例中,它应该显示一个Dockerfile,您可以使用它来获取所需的库。

    关于linux - 我如何知道Electron需要运行哪些Debian库?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63581450/

    相关文章:

    linux - ssh公钥认证,无需更改系统文件

    docker - Jenkins 使用 Docker 设置。无法安装自定义工具

    docker - 创建在多个 Docker 容器上运行的 HazelCast 集群

    node.js - 尝试运行基于 Electron 的应用程序时遇到问题?

    c - 线程在函数返回后停止

    c - 停止客户端服务器程序

    linux - 如何检测shell脚本输出的行号

    git - docker.exe:无效的引用格式:存储库名称必须为小写

    node.js - .returning() 不受 sqlite3 支持,不会有任何影响

    node.js - 如何遍历所有文件,支持暂停和继续