简体   繁体   中英

Convert HTML5 Canvas + Javascript Application into an Executable

Is there a way to run html5/js apps/games into an executable rather than a browser? I've looked into node webkit but doesn't seem like it suits my ambition.

Also tried Electron . but doesn't seem it supports canvas?

I remember a few years back I was able to run one of my canvas applications with an executable made from Visual Studio using I think Basic? I faintly recall.

Electron supports Canvas tags.

Clone the Quick Start repository

$ git clone https://github.com/ehartford/electron-quick-start

Go into the repository

$ cd electron-quick-start

Install the dependencies and run

$ npm install && npm start

Use electron packager to create a .exe

https://www.npmjs.com/package/electron-packager

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM