1 Star 0 Fork 3

jaychuo / Electron-forge-Mac

forked from yunlin / Electron-forge-Mac 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

Electron-forge 获取本机MAC地址的客户端工具

  基于electron-forge demo的二次开发
  这里只是个简单的应用,可以当做模板,去开发其他桌面应用

配置文件package.json

electronPackagerConfig:{
  "packageManager": "npm",
  "icon": "src/images/icon/app_logo",//应用图标
  "asar": true,//加密
  "overwrite": true//覆盖打包
}
注意:
  这里的配置要特别注意,配置的所有系统的,win/mac/linux...
  icon的路径最后的文件不需要加后缀,electron-forge会检测到系统,自己添加对应的文件

dependencies:
  这个是正式打包需要的配置,必要的包都要配置在这里

主进口文件index.js

主要功能:

  1. 创建窗体,加载
  2. 关闭托管后台
  3. 开机自启
  4. 开机自启的开关(已注释掉了,开发任务不需要)

对外接口api.js

  提供浏览器访问,获取相关信息

获取mac地址mac.js

  获取本机的mac地址,加密

The MIT License (MIT) Copyright (c) 2014 connors and other contributors Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

关于最近的一个需求,web应用,在用户登录时,校验用户的mac地址,是否已绑定 展开 收起
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/jaychuo/electron-forge-mac.git
git@gitee.com:jaychuo/electron-forge-mac.git
jaychuo
electron-forge-mac
Electron-forge-Mac
master

搜索帮助