-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Running pex in Electron #7
Comments
You can also package it as a native app with electron-packager npm install electron-packager --save-dev
./node_modules/.bin/electron-packager . ../Proton --platform=darwin --arch=x64 --version=0.27.2 But watch out. Remove Issues
|
wohoo! 👍 |
It would be cool if we could just <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title></title>
<script>
require('main.js');
</script>
</head>
<body>
</html> Or is it working like that already? (can't check right now) |
@szymon, you can require it or just do |
With pex-gl/pex-sys@c1f0fb5 and pex-gl/pex-gui@9b3eb04 it's now possible to run
pex
apps in Electron without browserify, pure node!All you need to do is to update your package.json and add index.html and app.js as below and run this in the project folder:
npm install electron-prebuilt --save-dev ./node_modules/.bin/electron .
package.json:
index.html:
app.js:
Issues
pex-sys/IO
is broken as it thinks it's a browser but Electron blocks AJAX to local files.The text was updated successfully, but these errors were encountered: