electron

Can't edit input text field after window.alert()

荒凉一梦 提交于 2020-03-03 17:10:23
问题 I've got this Electron app (using NodeJS, Bootstrap, AngularJS) with some text input fields that can be edited. I have a button that triggers a window.alert() After it has been triggered, the text input fields are no longer editable. Clicking on other elements of the app changes nothing. Clicking on another application then back on the app fixes the problem. Clicking on one of the text input fields with the Chrome inspector fixes it as well. These are some of the CSS attributes of my input

Issue saving to Windows “mapped network drive” in Electron

可紊 提交于 2020-03-02 19:32:07
问题 I have an Electron app in early beta and we just got a report that it is not saving correctly to a "DOCUMENTS directory that is using folder redirection to a network location" . The user is in a large, IT-managed computing environment. I work on macOS and only use Windows under emulation to test and debug simple issues, nothing involving networking and I don't know how to handle this. This is a "presentation tool" type app where the user can "import" (copy) media assets to a project folder,

Issue saving to Windows “mapped network drive” in Electron

旧城冷巷雨未停 提交于 2020-03-02 19:31:33
问题 I have an Electron app in early beta and we just got a report that it is not saving correctly to a "DOCUMENTS directory that is using folder redirection to a network location" . The user is in a large, IT-managed computing environment. I work on macOS and only use Windows under emulation to test and debug simple issues, nothing involving networking and I don't know how to handle this. This is a "presentation tool" type app where the user can "import" (copy) media assets to a project folder,

【原创】从零开始搭建Electron+Vue+Webpack项目框架(六)Electron打包,同时构建客户端和web端

我的未来我决定 提交于 2020-03-01 16:11:09
导航: (一)Electron跑起来 (二)从零搭建Vue全家桶+webpack项目框架 (三)Electron+Vue+Webpack,联合调试整个项目 (四)Electron配置润色 (五)预加载及自动更新 (六)构建、发布整个项目(包括client和web) 摘要: 整个项目就剩最后一哆嗦了,但仅仅是当作demo模版来说,实际项目的话,还有很多需要细化的地方。项目完整代码: https://github.com/luohao8023/electron-vue-template ,随博客更新。 一、打包客户端 首先是要改一下build.js,把上篇文章没做的事儿给做了。 上篇文章已经构建出了可执行文件目录app,这次我们要做的就是使用electron-builder把app目录打包为安装包。 在之前的基础上引入electron-builder,然后对app目录进行打包: const builder = require('electron-builder'); // 在所有的打包逻辑执行完成之后,确认已经正确生成了app目录 builder.build().then(() => { del(['./pack/*.yaml', './pack/*.blockmap']); // 为了方便,打包完成之后我们打开文件管理器 openFileManager(); }); function

electron-vue调用dll

半腔热情 提交于 2020-02-29 15:45:37
安装python2.7,一定要2.7 https://www.python.org/download/releases/2.7/ 安装后设置环境变量:在环境变量path中添加C:\Python27 (python路径) 新建electron-vue项目 vue init simulatedgreg/electron-vue my-project 安装electron-rebuild cnpm install --save-dev electron-rebuild 全局安装原生模块编译模块,编译ffi模块时需要用到的,这里一定要安装 3.7.0版本稳定 cnpm install node-gyp@3.7.0 -g 安装后如何全局找不到模块就设置环境变量,path中添加C:\Users\Administrator\AppData\Roaming\npm 安装ffi cnpm install ffi --save 在项目中导入ffi const ffi=require("ffi"); npm run dev试着运行一下会发现报错了。 咋又作妖了呢?事实上electron在使用c++模时还需要根据electron的版本等信息重新编译一下,这样在electron中才能执行,我们需要进入ffi模块执行重新编译的命令,并注入参数。 cmd进入node_modules/ffi目录执行如下,

electron 压缩安装包

你说的曾经没有我的故事 提交于 2020-02-28 17:50:59
有3个地方可以压缩 1、代码压缩 2、electron核心压缩 可以采用miniblink 3、build\win-unpacked\resources\app\node_modules 这个文件夹下压缩 在打包的时候,会把node_modules所有的资源全部打包进去,而不是package.json中的dependencies 这个时候想办法把devDependencies 删除掉。 页面:vue+webpack 估计也就几百k 外壳一:electron 就是 nodejs+chromium nodejs里面包含读写本地文件,自动升级功能,打包分发。 会打包整合node-module 外壳二:miniblink (c# winform)来写外壳,和升级功能。 这个比较小。 来源: oschina 链接: https://my.oschina.net/u/554046/blog/2394269

代码开源,音乐无价,GitHub 上这几个高颜值音乐播放器你值得拥有!

放肆的年华 提交于 2020-02-28 17:10:37
音乐,作为程序员日常不可或缺的精神食粮,能稳定你改 Bug 时那颗焦躁不安的心,亦能提升你的编码效率。 今天,与你分享 GitHub 上几个高颜值的音乐播放器。 ieaseMusic 网易云音乐,作为目前市场占比较高的一款音乐播放器,其界面设计、歌曲推荐系统、评论系统,都属上品。 如果你看腻了官方的那套 UI,不妨尝试下这个。 ieaseMusic,由一名独立开发者设计并开发的第三方网易云音乐客户端。 它支持以下功能: 微信扫码登录 音乐下载 音乐分享 跨平台安装 安装方式可见其官方文档: https://github.com/trazyn/ieaseMusic Chord 如果你钟爱 spotify,那你一定也会欣赏这款音乐播放器。 Chord(弦),基于 electron 实现的音乐播放器,实现了类似 spotify 的 UI。 暗黑色的选择,让你的音乐空间更显神秘。 其功能特性如下: 歌曲推荐、搜索 歌单、专辑、艺人筛选 无边框窗口 多平台(虾米、网易云音乐、QQ 音乐、千千音乐) https://github.com/PeterDing/chord music 作为一款 "有幸" 收到来自网易云音乐和 QQ 音乐律师警告函的开源项目,其功能的完善程度应该无需再多言。 其功能特性如下: 支持 QQ、微博授权登录 一键导入网易云、QQ 音乐、虾米歌单 支持离线歌单 歌词翻译

Why might Chrome (inside Electron) suddenly redirect to chrome-error://chromewebdata?

試著忘記壹切 提交于 2020-02-28 05:57:12
问题 My electron app is randomly redirecting to chrome-error://chromewebdata , and I've no idea why. There's no errors in the console, etc. When the Electron app first starts, the window opens, and it redirects away from my application to that URL and I see an empty blank white screen. No user interaction is necessary, it just happens when the app starts. If I open devtools, I can see that window.location.href contains chrome-error://chromewebdata instead of http://localhost:9080 (the Electron app

在 64 位系统下安装 32 位 electron

一曲冷凌霜 提交于 2020-02-28 00:55:12
直接 npm 安装 npm install --arch=ia32 electron@1.4.14 配置 .npmrc arch=ia32 registry=https://registry.npm.taobao.org 配置 package.json { "config": { "arch": "ia32", "registry": "https://registry.npm.taobao.org" }, "devDependencies": { "electron": "5.0.2" } } 来源: CSDN 作者: xdhc304 链接: https://blog.csdn.net/xdhc304/article/details/104537539