adopted-ember-addons / ember-electron Goto Github PK
View Code? Open in Web Editor NEW:zap: Build, test, compile and package desktop apps with Ember and Electron
Home Page: https://ember-electron.js.org/
License: Other
:zap: Build, test, compile and package desktop apps with Ember and Electron
Home Page: https://ember-electron.js.org/
License: Other
A few questions. On this line: https://github.com/felixrieseberg/ember-electron/blob/master/blueprints/ember-electron/files/electron.js#L21, there is reference to a development server on port 5000. This doesn't seem to run by default?
Also, most ember apps involve API requests to server, often with a relative path. That appears to breaks since with ember-electron we are dealing with a file://
protocol? Is there a way to get around that, that you know of?
Hi, I'm on ember-cli 2.3.0 and ember-electron 1.1.0. When I run ember electron:package --app-category-type=public.app-category.music
I get the following warning:
The option '--app-category-type' is not registered with the electron:package command.
Run ember electron:package --help for a list of supported options.
Did I miss something obvious?
First off, thanks for this addon, it's exactly what I need and will save me a huge amount of time!
I'm on Windows 8.1 x64 with npm 3.7.2 and node v5.6.0, and the installation was failing when trying to compile the ws
node package for socket.io 1.3.5. Ultimately the issue was solved by editing ember-electron's package.json to use socket.io 1.3.6, which I tried after reviewing this issue: socketio/socket.io#2056
So I recommend updating the project's dependencies to "socket.io": "^1.3.6",
as long as that doesn't mess with anything else.
Otherwise users forced to solve "How to create installers?" issue :) And it leads to electron/windows-installer#81
I am not familiar with ember-electron, just ask what do you think. As electron-builder maintainer I will do anything on electron-builder side that will be required for better integration.
Hi, I'm getting the following error when I run ember electron:package
.
➜ xxx git:(electron) ✗ ember electron:package
version: 2.3.0
Build failed.
File: assets/vendor.js (62957:36)
Unexpected token: operator (>)
Error
at new JS_Parse_Error (eval at <anonymous> (/Users/xxx/Sites/xxx/node_modules/broccoli-uglify-sourcemap/node_modules/uglify-js/tools/node.js:22:1), <anonymous>:1508:18)
at js_error (eval at <anonymous> (/Users/xxx/Sites/xxx/node_modules/broccoli-uglify-sourcemap/node_modules/uglify-js/tools/node.js:22:1), <anonymous>:1516:11)
at croak (eval at <anonymous> (/Users/xxx/Sites/xxx/node_modules/broccoli-uglify-sourcemap/node_modules/uglify-js/tools/node.js:22:1), <anonymous>:2008:9)
From what I can tell, it's related to uglify not being able to minify es6 (?). But ember electron
and ember build -p
works fine which is why I'm asking here.
Is there currently a way to define all those options in the package.json
or another file? I looked at the docs for the electron-packager
and didn't see anything like that, it would be really helpful to be able to do that rather than having to have the options in a notepad somewhere and copy and past them each time I want to make a package.
Hi,
When trying to update the addon I get the following error message in my terminal:
events.js:85
throw er; // Unhandled 'error' event
^
Error: read ECONNRESET
at exports._errnoException (util.js:746:11)
at TCP.onread (net.js:559:26)
Any idea on how I can fix this?
I am using ember-cli v.1.13.13
Thx in advance.
I just tried this out on a brand new project but am getting the following error.
$ember --version
version: 2.3.0
node: 0.12.7
os: darwin x64
$ember new electron
...
$cd electron
$ember install ember-electron
/Users/jack/git/electron/node_modules/ember-electron/lib/helpers/remote-debug-script.js:2
return `<script src="http://${host}:${port}/socket.io/socket.io.js" type="
^
Unexpected token ILLEGAL
/Users/jack/git/electron/node_modules/ember-electron/lib/helpers/remote-debug-script.js:2
return `<script src="http://${host}:${port}/socket.io/socket.io.js" type="
^
SyntaxError: Unexpected token ILLEGAL
at exports.runInThisContext (vm.js:73:16)
at Module._compile (module.js:443:25)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at Object.<anonymous> (/Users/jack/git/electron/node_modules/ember-electron/index.js:7:34)
at Module._compile (module.js:460:26)
at Object.Module._extensions..js (module.js:478:10)
While building on Ubuntu 16.04 I receive the following error: error while loading shared libraries: libnotify.so.4
. This seems to be fixed since the issue for this problem was closed 14 days ago. The fix supposed to be in Electron version 1.1.1. That tells me that this package is not using that version. Is it a problem to upgrade?
Hi,
first thanks for this module, it helps me a lot!
I want to use a Node module (sqlite3) inside my electron/ember application. For testing I created a new ember application with ember-cli 2.3.0 via ember new testapp
. Then I ran npm install sqlite3 --save
and ember install ember-electron
. Now, when I try to include sqlite3 by writing requireNode('sqlite3') I see this error in the JavaScript console of my electron application.
Does anyone have any hints?
ember.debug.js:31566 Error: Cannot find module 'testapp/routes/index'
at Function.Module._resolveFilename (module.js:339)
at Function.Module._load (module.js:290)
at Module.require (module.js:367)
at require (internal/module.js:16)
at window.require (index.html:65)
at _extractDefaultExport (resolver.js:346)
at resolveOther (resolver.js:81)
at superWrapper (ember.debug.js:22638)
at exports.default._emberRuntimeSystemObject.default.extend.resolveRoute (ember.debug.js:5779)
at exports.default._emberRuntimeSystemObject.default.extend.resolve (ember.debug.js:5619)onerrorDefault @ ember.debug.js:31566exports.default.trigger @ ember.debug.js:53631(anonymous function) @ ember.debug.js:54880Queue.invoke @ ember.debug.js:327Queue.flush @ ember.debug.js:391DeferredActionQueues.flush @ ember.debug.js:192Backburner.end @ ember.debug.js:570Backburner.run @ ember.debug.js:692Backburner.join @ ember.debug.js:712run.join @ ember.debug.js:20712(anonymous function) @ ember.debug.js:20775fire @ jquery.js:3099self.fireWith @ jquery.js:3211jQuery.extend.ready @ jquery.js:3417completed @ jquery.js:3433
My versions:
~/Projects/ember-test $ ember --version
version: 2.4.2
node: 5.9.0
os: linux x64
Steps to reproduce:
ember init
ember install ember-electron
ember electron
Hi! I am working on a little app w/ ember-electron, so I setup a new Ember app with:
npm install -g ember-cli
ember new foo
I then installed ember-electron with:
ember install ember-electron
I followed the configuration steps, and then I ran ember electron:test
. The following error was raised:
gondor:brettchalupa foo $ ember electron:test
Cannot find module 'quick-temp'
Error: Cannot find module 'quick-temp'
at Function.Module._resolveFilename (module.js:336:15)
at Function.Module._load (module.js:278:25)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at Class.module.exports.init (/Users/brettchalupa/workspace/donely/node_modules/ember-electron/lib/commands/electron-test/index.js:51:26)
at new Class (/Users/brettchalupa/workspace/donely/node_modules/ember-cli/node_modules/core-object/core-object.js:18:12)
at CLI.<anonymous> (/Users/brettchalupa/workspace/donely/node_modules/ember-cli/lib/cli/cli.js:41:19)
at lib$rsvp$$internal$$tryCatch (/Users/brettchalupa/workspace/donely/node_modules/ember-cli/node_modules/rsvp/dist/rsvp.js:493:16)
at lib$rsvp$$internal$$invokeCallback (/Users/brettchalupa/workspace/donely/node_modules/ember-cli/node_modules/rsvp/dist/rsvp.js:505:17)
at lib$rsvp$$internal$$publish (/Users/brettchalupa/workspace/donely/node_modules/ember-cli/node_modules/rsvp/dist/rsvp.js:476:11)
at lib$rsvp$asap$$flush (/Users/brettchalupa/workspace/donely/node_modules/ember-cli/node_modules/rsvp/dist/rsvp.js:1198:9)
at process._tickCallback (node.js:355:11)
The ember test
command runs as expected.
Some additional info:
Running the command npm install quick-temp --save-dev
fixed the issue and tests now pass when running ember electron:test
.
Is the issue something on my end or is it something as straightforward as adding quick-temp
to the ember-electron dependencies? I am happy to contribute the fix and help figure it out. Thanks! 😄
When starting a basic app (either packaged or from ember-cli) based on the blueprint I occasionally just get a completely blank app. In the dev console I get the error Not allowed to load local resource
Restarting fixes this but it will come back sporadically. Any idea what this could be? Not sure if its ember-electron specific.
But, seriously. This package is awesome. Thanks!
Hi felix,
I played around with this project and really appreciate it. Nevertheless I tried to open a dialog to let the user pick a file. Looking at the electron API this should be pretty straightforward.
https://github.com/atom/electron/blob/master/docs/api/dialog.md
When I call require('electron') there is no dialog property. What am I doing wrong?
Thanks a lot, BR, toovy
Followed the steps in readme.md.
ember install ember-electron
as you can see in the link above, 4 errors appeared.
any idea on what I did wrong?
I need to include ipcRenderer in my ember code. Unfortunately, this:
const ipcRenderer = require('electron').ipcRenderer;
returns undefined
.
Hi, how can you change the output dir? I'd like to use dist-electron
instead of electron-builds
.
This is likely not an issue but rather just a case of a newbie.
I wrote a simple ember login screen and it appears to work fine when I run it with ember electron
. However when I package the app with ember electrion:package
, I lose all CSS styling, the menu bar, and the developer console so I can't even see what's missing. The form logic still works .
I suspected I'm just including some packages in my package.json but this doesn't explain why the menu bar options would be missing (I don't think...). Any ideas on a way I could debug the problem? Thanks!
Screenshots included for clarity and eye candy.
Throws error in CLI: Unable to set icon
Steps followed:
//package.json
"ember-electron": {
"copy-files": [
"package.json",
"main/*"
],
"icon": "assets/icons/p2pdrop"
}
I'm trying to get 0.5.0 working. After I install 0.5.0, when I do an ember init, I get the following:
Error: ENOENT: no such file or directory, open '/[stuff deleted]/node_modules/ember-electron/node_modules/ember-inspector/dist/websocket/index.html'
Running ember electron:package
(defaults to production env, right?) or ember electron -prod
, the addon injects socket.io.js, the io inline bootup code, and ember_debug.js into the header, but since it doesn't start the debug server, those end up being failed load requests, as seen in the console:
http://localhost:30820/socket.io/socket.io.js Failed to load resource: net::ERR_CONNECTION_REFUSED
index.html:36 Uncaught ReferenceError: io is not defined
\resources\atom.asar\renderer\lib\init.js:75 Uncaught TypeError: Cannot read property 'listeners' of undefined
http://localhost:30820/ember_debug.js Failed to load resource: net::ERR_CONNECTION_REFUSED
I see there's an option to specify environment when packaging a build (e.g. ember electron:package -dev
but if I package a dev build, the debug server isn't started.
I assume it's as easy as using some of the code from the electron.js command in the package.js command? https://github.com/felixrieseberg/ember-electron/blob/0327d570139765aa76fc6e95de9a8c9dd04df58a/lib/commands/electron.js#L57-L60
https://github.com/maxogden/electron-packager is amazing and should be included - ideally behind a simple command like ember electron:package
.
Hi,
thanks for this package. I combined this with the menu package and it works great. But how can i build a release package?
Thanks, Jan
Here is my current versions
package.json electron dependency versions
"electron-packager": "6.0.0",
"electron-prebuilt": "0.37.5",
"electron-rebuild": "1.1.3",
"ember-electron": "1.3.2",
$ ember -v
ember-cli: 2.4.3
node: 4.4.2
os: darwin x64
After running ember install ember-electron
and configuring project trying to run ember electron
gives me this:
Hi!
I am developing an app where electron just happens to be just one of the possible targets.
The dev-cycle involves running the test-suite on every commit.
Unfortunately the ci downloads and install electrons platform-deps on every installation. Is there a way to download them ad-hoc (i.e. when building?)
Would you someone familiar with the project would be open to giving an "Introduction to ember-electron" lightning talk at an upcoming Global Ember Meetup in the beginning of next year? We'll edit the video and give you video that you can embed into the addon's README. You can see an example of other introduction videos here https://vimeo.com/album/3607049
The talk usually covers:
An "Introduction to" talk is about 15-20 min. We still have availabilities for Feb 27th or March 19th.
Would you be interested in giving such a talk?
Here the details of my environment:
ubuntu 12.04 (64-bit)
Node version v4.2.4
ember 2.2.2
"ember-electron": "0.3.4",
while creating package using ember electron:package
Packaging app for platform win32 ia32 using electron v0.36.2
Error packaging your Ember app into an Electron executable:
Error: spawn wine ENOENT
spawn wine ENOENT
Error: spawn wine ENOENT
at exports._errnoException (util.js:870:11)
at Process.ChildProcess._handle.onexit (internal/child_process.js:178:32)
at onErrorNT (internal/child_process.js:344:16)
at doNTCallback2 (node.js:441:9)
at process._tickCallback (node.js:355:17)
But , I am able to create linux packages. and run it.
But this windows issue stucks . I wonder if http://stackoverflow.com/a/31327872/3286320 could be a solution. But no more details there how to implement it and where.
Same issue brought up in by gordonbisnor in #36, but it seems unrelated to the original issue that was closed, so I'm opening this issue.
https://stackoverflow.com/questions/8817423/node-dirname-not-defined
I've tried using node v5.2.0 and v5.11.0.
I run ember install ember-electron and get:
[?] Overwrite config/environment.js? No, skip
skip config/environment.js
create electron.js
create tests/electron.js
create tests/package.json
__dirname is not defined (Error in blueprint template: /Users/kevin/Web/mycms/netlify-cms/node_modules/ember-electron/blueprints/ember-electron/files/electron.js)
ReferenceError: __dirname is not defined (Error in blueprint template: /Users/kevin/Web/mycms/netlify-cms/node_modules/ember-electron/blueprints/ember-electron/files/electron.js)
at eval (eval at (/Users/kevin/Web/mycms/netlify-cms/node_modules/ember-cli/node_modules/lodash/string/template.js:214:12), :8:10)
at processTemplate (/Users/kevin/Web/mycms/netlify-cms/node_modules/ember-cli/lib/models/file-info.js:13:52)
at /Users/kevin/Web/mycms/netlify-cms/node_modules/ember-cli/lib/models/file-info.js:94:20
at lib$rsvp$$internal$$tryCatch (/Users/kevin/Web/mycms/netlify-cms/node_modules/rsvp/dist/rsvp.js:493:16)
at lib$rsvp$$internal$$invokeCallback (/Users/kevin/Web/mycms/netlify-cms/node_modules/rsvp/dist/rsvp.js:505:17)
at lib$rsvp$$internal$$publish (/Users/kevin/Web/mycms/netlify-cms/node_modules/rsvp/dist/rsvp.js:476:11)
at lib$rsvp$asap$$flush (/Users/kevin/Web/mycms/netlify-cms/node_modules/rsvp/dist/rsvp.js:1198:9)
at _combinedTickCallback (internal/process/next_tick.js:67:7)
at process._tickCallback (internal/process/next_tick.js:98:9)
Any images defined in css via
background-image: url('/assets/images/icon.png') ;
do not get loaded. Is there a workaround to this?
When trying to package an ember project using ember electron:package
I get the following error:
Error: spawn wine ENOENT
spawn wine ENOENT
Error: spawn wine ENOENT
at exports._errnoException (util.js:890:11)
at Process.ChildProcess._handle.onexit (internal/child_process.js:182:32)
at onErrorNT (internal/child_process.js:348:16)
at _combinedTickCallback (node.js:383:13)
at process._tickCallback (node.js:407:11)
Does anyone have any ideas why this is happening on my Mac?
Any ideas on how to distribute once the application is good to go?
Upgraded to 1.5.1 and Electron 1.0.1. When I run tests via ember electron:test
I get an alert:
Error: Cannot find module 'browser-window'
I'm just using stock test config. Do the test blueprints need to be updated to support latest electron changes?
Hello,
I updated my application with the 1.5.2 version of "ember-electron". And now "ember electron:package" doesn't work anymore for me.
To test this version and avoid mistakes with my application, I created a new "ember" application and I installed "ember-electron".
"ember electron" works
"ember electron:package" seems to work (no error), but the "electron-build" folder is not created as before
Do you have an idea of my error?
Frédéric
When trying to run ember electron
on Ember Hearth, I am getting the following error:
ENOENT: no such file or directory, open '/Users/locks/src/ember-hearth-mun/node_modules/ember-electron/node_modules/ember-inspector/dist/websocket/index.html'
> Error: ENOENT: no such file or directory, open '/Users/locks/src/ember-hearth-mun/node_modules/ember-electron/node_modules/ember-inspector/dist/websocket/index.html'
at Error (native)
at Object.fs.openSync (fs.js:584:18)
at Object.fs.readFileSync (fs.js:431:33)
at Object.<anonymous> (/Users/locks/src/ember-hearth-mun/node_modules/ember-electron/lib/helpers/debug-server.js:24:24)
at Module._compile (module.js:425:26)
at Object.Module._extensions..js (module.js:432:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:311:12)
at Module.require (module.js:366:17)
at require (module.js:385:17)
I managed to temporarily fix the problem by going into node_modules/ember-electron
and running npm install
.
Hi!
So I am trying to get things to work, but after much Googling I wasn't able to find the answer. I started with a clean install of Ember and then I created a controller and route called index
.
import Ember from 'ember';
const dialog = requireNode('electron').dialog;
export default Ember.Controller.extend({
actions: {
'clickMe': function() {
dialog.showErrorBox('Test', 'test');
}
}
});
When I run this I will get an error saying that dialog is undefined: Uncaught TypeError: Cannot read property 'showErrorBox' of undefined
. Any thoughts on what I am doing wrong?
In my terminal window I see the following message: index/controller.js: line 2, col 16, 'requireNode' is not defined.
When I change requireNode
to window.requireNode
there's no difference.
Note: I do use Ember Pods structure, but I cannot imagine this has something to do with that.
Probably a newbie error but I built my "hello world" app and ran ember electron:package
but it fell over after packaging linux executable and I think right as it started windows:
Packaging app for platform win32 ia32 using electron v0.36.2
Error packaging your Ember app into an Electron executable:
Error: spawn wine ENOENT
spawn wine ENOENT
Error: spawn wine ENOENT
at exports._errnoException (util.js:890:11)
at Process.ChildProcess._handle.onexit (internal/child_process.js:182:32)
at onErrorNT (internal/child_process.js:348:16)
at _combinedTickCallback (node.js:383:13)
at process._tickCallback (node.js:407:11)
I have this weird scenario where the ember app is not loaded inside the electron app. I am not getting any kind of errors. I am attaching a screenshot of this.
This is what comes up when I run ember electron
This is what the developer console is saying.
I reverted back to an old project to see if my code changes have caused this - but it seems not the case. I haven't updated the ember version either. Below are my versions
"devDependencies": {
"broccoli-asset-rev": "^2.2.0",
"electron-packager": "5.2.1",
"electron-prebuilt": "0.36.10",
"ember-ajax": "0.7.1",
"ember-bootstrap": "0.6.3",
"ember-browserify": "1.1.8",
"ember-cli": "2.3.0-beta.2",
"ember-cli-app-version": "^1.0.0",
"ember-cli-babel": "^5.1.5",
"ember-cli-dependency-checker": "^1.2.0",
"ember-cli-font-awesome": "1.5.0",
"ember-cli-htmlbars": "^1.0.1",
"ember-cli-htmlbars-inline-precompile": "^0.3.1",
"ember-cli-inject-live-reload": "^1.3.1",
"ember-cli-qunit": "^1.2.1",
"ember-cli-release": "0.2.8",
"ember-cli-sri": "^2.0.0",
"ember-cli-uglify": "^1.2.0",
"ember-data": "^2.3.0",
"ember-disable-proxy-controllers": "^1.0.1",
"ember-electron": "1.1.1",
"ember-export-application-global": "^1.0.4",
"ember-inspector": "1.9.5",
"ember-load-initializers": "^0.5.0",
"ember-resolver": "^2.0.3",
"loader.js": "^4.0.0"
},
"main": "electron.js",
Hi,
I installed a fresh copy of Ember and Ember Electron and I got an error when first running it:
App threw an error when running [Error: companyName is a required option to crashReporter.start]
I fixed it by changing the setting on rule number 13 in the electron.js
file to:
electron.crashReporter.start({
productName: 'productname',
companyName: 'companyname',
submitURL: 'http://localhost:30820'
});
Which fixes the issue. However, I don't understand why this issue occurs on a clean install of Ember. Furthermore, is the submitURL the correct one? It's the URL where Ember Inspector is running, but it seems like bad practice to hardcode it.
Hello,
Thanks for putting this addon together!
When writing an ember app with ember-data it would normally access a JSON-API compliant REST backend. When building this as an electron app, would I build that "backend" as an express server in electron (in electron.js)?
Or would I somehow write an ember-data adapter that accesses either the filesystem or a database directly?
I would prefer to keep the REST model, but am not sure if that is the right thing to do since there does not seem to be any information about packaging a REST backend inside of electron.
version: 2.4.2
Build failed.
File: assets/vendor.js (64148:8)
The Broccoli Plugin: [object Object] failed with:
Error
at new JS_Parse_Error (eval at (C:\application\node_modules\ember-cli-uglify\node_modules\broccoli-uglify-sourcemap\node_modules\uglify-js\tools\node.js:1:0), :1508:18)
at js_error (eval at (C:\application\node_modules\ember-cli-uglify\node_modules\broccoli-uglify-sourcemap\node_modules\uglify-js\tools\node.js:1:0), :1516:11)
at croak (eval at (C:\application\node_modules\ember-cli-uglify\node_modules\broccoli-uglify-sourcemap\node_modules\uglify-js\tools\node.js:1:0), :2008:9)
at token_error (eval at (C:\application\node_modules\ember-cli-uglify\node_modules\broccoli-uglify-sourcemap\node_modules\uglify-js\tools\node.js:1:0), :2016:9)
at unexpected (eval at (C:\application\node_modules\ember-cli-uglify\node_modules\broccoli-uglify-sourcemap\node_modules\uglify-js\tools\node.js:1:0), :2022:9)
at semicolon (eval at (C:\application\node_modules\ember-cli-uglify\node_modules\broccoli-uglify-sourcemap\node_modules\uglify-js\tools\node.js:1:0), :2042:43)
at simple_statement (eval at (C:\application\node_modules\ember-cli-uglify\node_modules\broccoli-uglify-sourcemap\node_modules\uglify-js\tools\node.js:1:0), :2222:73)
at eval (eval at (C:\application\node_modules\ember-cli-uglify\node_modules\broccoli-uglify-sourcemap\node_modules\uglify-js\tools\node.js:1:0), :2095:19)
at eval (eval at (C:\application\node_modules\ember-cli-uglify\node_modules\broccoli-uglify-sourcemap\node_modules\uglify-js\tools\node.js:1:0), :2055:24)
at block_ (eval at (C:\application\node_modules\ember-cli-uglify\node_modules\broccoli-uglify-sourcemap\node_modules\uglify-js\tools\node.js:1:0), :2335:20)
at eval (eval at (C:\application\node_modules\ember-cli-uglify\node_modules\broccoli-uglify-sourcemap\node_modules\uglify-js\tools\node.js:1:0), :2308:25)
at function_ (eval at (C:\application\node_modules\ember-cli-uglify\node_modules\broccoli-uglify-sourcemap\node_modules\uglify-js\tools\node.js:1:0), :2313:15)
at expr_atom (eval at (C:\application\node_modules\ember-cli-uglify\node_modules\broccoli-uglify-sourcemap\node_modules\uglify-js\tools\node.js:1:0), :2521:24)
at maybe_unary (eval at (C:\application\node_modules\ember-cli-uglify\node_modules\broccoli-uglify-sourcemap\node_modules\uglify-js\tools\node.js:1:0), :2691:19)
at expr_ops (eval at (C:\application\node_modules\ember-cli-uglify\node_modules\broccoli-uglify-sourcemap\node_modules\uglify-js\tools\node.js:1:0), :2726:24)
at maybe_conditional (eval at (C:\application\node_modules\ember-cli-uglify\node_modules\broccoli-uglify-sourcemap\node_modules\uglify-js\tools\node.js:1:0), :2731:20)
The broccoli plugin was instantiated at:
undefined
What i did is i made new dir and:
ember init
ember install ember-electron
ember electron:package
And got this error.
Here the details of my environment:
ubuntu 12.04 (64-bit)
Node version v4.2.4
ember 2.2.2
"ember-electron": "0.3.4",
I created a package for linux, but my gif image for loading page is not showing on the app. it only displays the text. Is this default?
I cerated a new ember project, I basically copied the ember tuto from https://guides.emberjs.com/v2.3.0/
The site is working correctly in the browser, but the electron just load a blank page. I created a new empty project and this one is working correctly.
the error that I get is this:
8. Integration | Component | rental listing: it renders (2, 0, 2)Rerun168 ms
1. failed@ 140 ms
Expected:
""
Result:
"Owner:
Type:
Location:
Number of bedrooms:
Show image"
Source:
at Object.<anonymous> (file:///Users/fernandogot/projects/ember/electron/tmp/class-tests_dist_electron-7tcZC0FG.tmp/assets/tests.js:210:12)
2. failed@ 147 ms
Expected:
"template block text"
Result:
"Owner:
Type:
Location:
Number of bedrooms:
Show image"
Diff:
"templOwner:
Type:
Location:
Number of block textedrooms:
Show image"
Source:
at Object.<anonymous> (file:///Users/fernandogot/projects/ember/electron/tmp/class-tests_dist_electron-7tcZC0FG.tmp/assets/tests.js:294:12)
Source: at testWrapper (file:///Users/fernandogot/projects/ember/electron/tmp/class-tests_dist_electron-7tcZC0FG.tmp/assets/test-support.js:6400:11)
the problem is probably in this component:
https://guides.emberjs.com/v2.3.0/tutorial/simple-component/
Could you make additional option like --use-dev-node_modules or direct me where i could change it myself? Because now every time i package my app, ember-electron is downloading packages (from dependencies in package.json) again, some of them are node native extensions, so it's compiling them every time.
EDIT: One more thing, while selecting --version=0.37.5 i get info "Installing Electron headers for version 0.37.3" while using 0.37.5
EDIT2: This is the function that install dependencies right?
https://github.com/felixrieseberg/ember-electron/blob/master/lib/commands/package.js#L203
From what I understand it should be possible to integrate Ember Inspector with this addon, to make it possible to debug the application more easily.
Related: https://github.com/atom/electron/blob/master/docs/tutorial/devtools-extension.md emberjs/ember-inspector#511
I have a new Ember CLI project where I added ember-electron to.
Now when I run ember electron:test
or ember electron:test --server
I get the following error:
Building.ENOENT: no such file or directory, lstat '/Users/Pascal/projects/ember-electron/tmp/funnel-input_base_path-JfSENpV2.tmp/0/package.json'
Error: ENOENT: no such file or directory, lstat '/Users/Pascal/projects/ember-electron/tmp/funnel-input_base_path-JfSENpV2.tmp/0/package.json'
at Error (native)
at Object.fs.lstatSync (fs.js:887:18)
at symlink (/Users/Pascal/projects/ember-electron/node_modules/symlink-or-copy/index.js:63:26)
at Function.symlinkOrCopySync [as sync] (/Users/Pascal/projects/ember-electron/node_modules/symlink-or-copy/index.js:58:5)
at Funnel._copy (/Users/Pascal/projects/ember-electron/node_modules/broccoli-funnel/index.js:398:19)
at Funnel.processFile (/Users/Pascal/projects/ember-electron/node_modules/broccoli-funnel/index.js:381:8)
at Funnel.applyPatch [as _applyPatch] (/Users/Pascal/projects/ember-electron/node_modules/broccoli-funnel/index.js:298:12)
at Funnel.<anonymous> (/Users/Pascal/projects/ember-electron/node_modules/broccoli-funnel/index.js:250:10)
at Array.forEach (native)
at Funnel.processFilters (/Users/Pascal/projects/ember-electron/node_modules/broccoli-funnel/index.js:249:9)
I'm using Ember CLI 1.13.13 with Ember 2.2.0. Any idea what could be the issue?
On ember electron
I can go fullscreen with F11
or through the menu. However on a built app the keyboard shortcut does not work. The built app does work on OSX for full screen however.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.