Comments (5)
有个简单的办法
https://github.com/electron/electron/releases/tag/v1.3.3 https://github.com/electron/electron/releases/tag/v1.3.3
你登录这个发布版网址
找到你想要发布的平台的demo 比如你想搞windows版本的
就下
electron-v1.3.3-darwin-x64.zip https://github.com/electron/electron/releases/download/v1.3.3/electron-v1.3.3-darwin-x64.zip
然后解压里面有resources文件夹
你在这里面创建一个叫app的文件夹,如果里面有可以删掉
然后把自己项目的依赖放进去就可以,比如你用到任何的字体文件声音文件css之类的以及node_module都放进去。保存后应该就打开外面的exe文件,应该就可以看到自己的东西,然后再借助其他工具改改图标,名称之类的
不过这种方式会暴露你的源文件,所以建议可以把代码混淆压缩,重要信息加密。然后应该有更严密的打包方法,不过我最近没时间研究这方面,以后大家一起去找找再互相交流一下心得拜。
在 2016年8月15日,10:51,Tom [email protected] 写道:
你说官方的asar方法打包限制太多,有没有好的打包方法,尤其是打包成windows下可执行文件
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub #2, or mute the thread https://github.com/notifications/unsubscribe-auth/AEQCfOuQF30XEY2EJS0AG14p7SWQosjQks5qf9REgaJpZM4JkEyp.
from cnode-electron.
很有用,感谢
from cnode-electron.
@wq123456 为啥我下载的electron-v1.3.3-darwin-x64.zip 文件夹下没有resources文件夹 而且也没有exe的执行文件
from cnode-electron.
@wq123456
目录结构是:
Electron.app
LICENSE
LICENSES.chromium.html
version
在Electron.app 里面有很多文件
from cnode-electron.
@wq123456
我在electron-xxxx-win32-x64.zip里面找到了对应的文件
是否写错了?
from cnode-electron.
Related Issues (4)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cnode-electron.