npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

zegoliveroom

v1.0.3

Published

zego electron sdk

Downloads

33

Readme

如何下载指定版本Electron 的 ZEGO LiveRoomSDK

在自己项目中的package.json文件,添加以下内容(其中4.0.8 表示对应的Electron版本号)。然后执行npm install

  1. 方式一
  "scripts": {
    "postinstall": "node node_modules/zegodown/bin/zegodown -v 4.0.8"
  },
  "dependencies": {
    "zegoliveroom": "latest"
  }

如果指定下载32位,postinstall配置为 node node_modules/zegodown/bin/zegodown -v 4.0.8 -a ia32

如果指定下载64位 node node_modules/zegodown/bin/zegodown -v 4.0.8 -a x64

如果不指定,默认取值为node的os.platform()平台信息

mac 下不支持32位,默认为64位。

或者使用下面的配置进行配置

  1. 方式二

"electron": "4.0.8" 表示对应的Electron版本号,

"arch": "auto" 表示自动根据平台下载32位或者64位信息。

"arch": "ia32" 表示指定32位的zego sdk。

"arch": "x64" 表示指定64位zego sdk。

  "zegoDeps": {
    "electron": "4.0.8",
    "arch": "auto"
  },
  "dependencies": {
    "zegoliveroom": "latest"
  }

下载的Zego Electron Sdk 会自动解压放在node_modules/zegoliveroom目录下

目前支持指定以下版本Electron

['2.0.18', '3.0.16', '3.1.13', '4.0.8', '4.1.5', '4.2.11', '5.0.11']

版本说明:

由于Electron 的版本管理规则是从2.0开始符合semver规范:

规范大概是这样的:

版本号由3个数字组成:a.b.c

前面两个数字表示大小版本号的更新,数字a和b发生变化是,都会导致abi的不兼容,但是c的变化只是bug修改,不涉及abi的兼容问题。

例如:

可以通过以下命令查询到目前所有的Electron版本号。

npm view electron versions

用以上命令可以看到Electron的2.0版本有:2.0.0到2.0.18,目前Electron的2.0版本最高版本是2.0.18。那么ZEGO 就会对2.0.18进行支持,

所以ZEGO 的2.0.18版本的sdk就能兼容Electron的2.0.0到2.0.18的任何一个版本,以此类推:

目前ZEGO能默认支持2.0 到 5.0 的所有Electron版本,用户根据相关的版本号进行配置下载即可。