Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F61489
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
View Options
diff --git a/electron.js b/electron.js
new file mode 100644
index 0000000..b873e92
--- /dev/null
+++ b/electron.js
@@ -0,0 +1,17 @@
+const {app,BrowserWindow} = require("electron");
+
+let window; //global reference is needed for garbage collection
+
+function createWindow()
+{
+ window = new BrowserWindow({icon:"favicon.ico",backgroundColor:"#000",show:false});
+
+ window.loadFile("index.html");
+ window.once("ready-to-show",window.show);
+ window.on("closed",function(){window=null});
+ window.autoHideMenuBar = true;
+}
+
+app.on("ready",createWindow);
+app.on("window-all-closed",app.quit);
+app.on('activate',function(){if(!window) createWindow()});
diff --git a/package.json b/package.json
new file mode 100644
index 0000000..4047999
--- /dev/null
+++ b/package.json
@@ -0,0 +1,13 @@
+{
+ "name": "3dc-web",
+ "description": "A lightcycle game.",
+ "author": "Glen Harpring",
+ "license": "GNU GPLv2",
+ "main": "electron.js",
+ "scripts": {
+ "start": "electron ."
+ },
+ "devDependencies": {
+ "electron": "^7.0.0"
+ }
+}
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Thu, Aug 14, 1:52 AM (1 d, 14 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
10842
Attached To
rTDCWEB 3DCycles Web
Event Timeline
Log In to Comment