Code Monkey home page Code Monkey logo

cocoscreatorfordeskapp's Introduction

CocosCreatorForDeskApp

如果你的游戏时使用cocos creator开发制作的,并且希望能够发布为桌面应用,那么该解决方案一定能帮助到您!

该解决方案,基于Electron,轻松将cocos creator发布到任何桌面,使用该解决方案的好处是,再也不用去踩发布原生桌面应用的坑了!

为此,您需要注意,相比原生桌面应用,该解决方案最终游戏包体会增加50~70M不等,如果您特别在意游戏安装包体积,那么,请慎重考虑!

使用说明

  • 安装依赖npm install
  • 运行: npm run app

打包说明

打包前的准备工作

  • 使用CocosCreator构建出一份web版本的游戏
  • 将构建的web游戏拷贝到game目录,game目录文件示例

本项目采用的是electron-builder打包

  • 全局安装electron-builder依赖: npm install -g electron-builder
  • 打包:
    • win: npm run pack-win
    • mac: npm run pack-mac

后续开发功能

  • 请查看相关issues
  • 欢迎追加issues

欢迎加入CocosCreator插件交流群(224756137)

一起学习,一起进步!

cocoscreatorfordeskapp's People

Contributors

tidys 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.