Giter Club home page Giter Club logo

cocos-hotupdate's Introduction

1、将 version_generator.js复制到项目根目录。

2、修改version_generator.js文件中的配置

"packageUrl" : 远程资源的本地缓存根路径

"remoteVersionUrl" : 远程版本文件的路径,用来判断服务器端是否有新版本的资源

"remoteManifestUrl" : 远程资源 Manifest 文件的路径,包含版本信息以及所有资源信息

"version" : 资源的版本

3、修改构建结果路径及热更文件路径

4、hot-update插件文件夹放到packages目录下

5、添加热更组件到项目里,根据需求自行调整逻辑。

6、热更新逻辑处理完之后,构建版本,注意:version_generator.js配置要对应构建模板的配置

7、在项目根目录执行 node .\version_generator.js -v 1.0.0

-v 指定 Manifest 文件的主版本号

8、将生成的project.manifest文件拖到Cocos Creator里,此为基础热更新版本

9、如果版本内容更新以后,需要线上版本进行热更新,则需重新构建,再执行第6步,并升级版本号。将对应版本的文件及文件夹放到服务器。

cocos-hotupdate's People

Contributors

jonle avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.