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 🙏

© 2026 – Pkg Stats / Ryan Hefner

rpmgametool

v1.2.8

Published

用于发布rpm项目时组织游戏包结构。

Readme

rpm大厅游戏打包工具

用于创建Electron工程固定文件夹结构和输出更新包结构。

目录要求

1、electron工程同级目录需要有rpm_hall_need文件夹。里面需要提前放置特定的文件,例如:
——app/
| rpm_hall_need/
|    ——platformResources/
|    |      icon_bg.png
|    |      icon_press.png
|    | update.txt
|    | updateConfig.json
|    ——updateinstall
| node_modules/
| package-lock.json
——package.json

2、文件详细说明
rpm_hall_need:固定文件夹,需要放置在electron工程目录,与package.json同级。
    platformResources:大厅显示按钮需求图片。
        icon_bg.png:大厅按钮常态图片。大小393*314的png图片
        icon_press.png:大厅按钮按下图片。大小393*314的png图片

    update.txt:更新内容描述。(因为考虑到如果在updateConfig.json中写修改内容会很麻烦,因此单独拎出来一个文件写更新内容)
        本次更新内容:
        我就不告诉你,我就不告诉你。气死你。

    updateConfig.json:一个包含json内容的json文件
        {"out_dir":"","name":"rpmPackager","version":"01.00.00","old_version":"01.00.0-1","command":"electron-packager . --platform=win32 --arch=x64 --overwrite","repair_name":"chenfang","customer":"rpm rpm_hall_need"}
        //可以用下列方式生成范本
        //将修改后的配置写入文件前需要先转成json字符串格式
        var jsonstr = JSON.stringify({
            "out_dir": "",
            "name": "rpmPackager",
            "version": "01.00.00",
            "old_version": "01.00.0-1",
            "command": "electron-packager . --platform=win32 --arch=x64 --overwrite",
            "repair_name": "chenfang",
            "customer":"rpm hall",
            "environment":"development"
        });

        //将修改后的内容写入文件
        require('fs').writeFile(configPath, jsonstr, function (err) {
            if (err) {
                console.error(err);
            } else {
                console.log('----------修改成功-------------');
            }

        });
        out_dir:默认"",即运行当前目录。建议不做修改。
        name:包名(参数大厅给)
        version:当前版本号,范例01.00.02
        old_version:上一个版本的版本号,范例01.00.01
        command:需要执行的打包命令
        repair_name:谁发布了这个包
        customer:包提供对象
        environment:输出包环境 Development|Release|Stable
        
    updateinstall:大厅给的签名工具文件夹。(不对外)
    

安装

npm install rpmgametool -g

打包方式

rpmgametool pi    //说明,此模式不读取updateConfig.txt,需要用户手动输入更新对应参数。(不推荐)
或者
rpmgametool p     //说明,此模式读取updateConfig.txt,需要用户提前配置更新对应参数。(推荐)

输出

默认会输出在package.json文件夹同级目录rpm_build_out/中。

注意

1、默认需要保存上个版本相关的内容。请勿删除比对文件。
2、如果rpmgametool是全局安装,那么electron-packager也需要全局安装,否则会报找不到electron-packager。
3、electron打包对应平台的包最好先下载或者更新好对应平台的electron包。比如:electron-v10.1.2-linux-x64.zip

联系方式

[email protected]

版权

本npm包归作者个人所有,任何机构、组织、个人使用,作者均保留法律效应。