-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial Electron framework for HyperdriveToolkit.
- Loading branch information
Showing
9 changed files
with
136 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,10 @@ | |||
# Hyperdrive Toolkit | |||
A collection of tools designed to empower streamers to easily create advanced content for their streams and better manage their community. | |||
|
|||
## Running from Source | |||
To run: | |||
* Make sure you have [node.js](http://node.js) installed. | |||
* Make sure you have [npm](https://www.npmjs.com/) installed. This should already be installed with node.js. | |||
* From a command line, install Electron globally: `npm install -g electron` | |||
* `cd` to the `app` directory | |||
* Run `electron .` to launch the application. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,32 @@ | |||
const {app, BrowserWindow} = require("electron"); | |||
|
|||
var win, | |||
createWindow = () => { | |||
win = new BrowserWindow({show: false, width: 800, height: 600, minWidth: 800, minHeight: 600, icon: __dirname + "/../logo/logo.ico"}); // TODO: Get the right icon. | |||
win.loadURL("file://" + __dirname + "/site/index.htm"); | |||
win.setMenu(null); | |||
win.maximize(); | |||
|
|||
win.once("ready-to-show", () => { | |||
win.show(); | |||
win.toggleDevTools(); // TODO: Remove for release. | |||
}); | |||
|
|||
win.on("closed", () => { | |||
win = null; | |||
}); | |||
}; | |||
|
|||
app.on("ready", createWindow); | |||
|
|||
app.on("window-all-closed", () => { | |||
if (process.platform !== "darwin") { | |||
app.quit(); | |||
} | |||
}); | |||
|
|||
app.on("activate", () => { | |||
if (win === null) { | |||
createWindow(); | |||
} | |||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,27 @@ | |||
{ | |||
"name": "HyperdriveToolkit", | |||
"version": "0.0.1", | |||
"description": "A collection of tools designed to empower streamers to easily create advanced content for their streams and better manage their community.", | |||
"homepage": "https://github.com/roncli/HyperdriveToolkit", | |||
"bugs": { | |||
"url": "https://github.com/roncli/HyperdriveToolkit/issues", | |||
"email": "roncli@roncli.com" | |||
}, | |||
"license": "MIT", | |||
"author": { | |||
"name": "Ronald M. Clifford", | |||
"email": "roncli@roncli.com", | |||
"url": "http://www.roncli.com" | |||
}, | |||
"repository": { | |||
"type": "git", | |||
"url": "https://github.com/roncli/HyperdriveToolkit.git" | |||
}, | |||
"dependencies": { | |||
"tmi.js": "1.1.2", | |||
"twitch-api": "0.4.6" | |||
}, | |||
"engines": { | |||
"node": ">=7.0.0" | |||
} | |||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,3 @@ | |||
var Chat = function() {}; | |||
|
|||
module.exports = Chat; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,3 @@ | |||
var DataStore = function() {}; | |||
|
|||
module.exports = DataStore; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,3 @@ | |||
var Gui = function() {}; | |||
|
|||
module.exports = Gui; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1 @@ | |||
TESTING! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,51 @@ | |||
{ | |||
"name": "HyperdriveToolkit", | |||
"version": "0.0.1", | |||
"description": "A collection of tools designed to empower streamers to easily create advanced content for their streams and better manage their community.", | |||
"homepage": "https://github.com/roncli/HyperdriveToolkit", | |||
"bugs": { | |||
"url": "https://github.com/roncli/HyperdriveToolkit/issues", | |||
"email": "roncli@roncli.com" | |||
}, | |||
"license": "MIT", | |||
"author": { | |||
"name": "Ronald M. Clifford", | |||
"email": "roncli@roncli.com", | |||
"url": "http://www.roncli.com" | |||
}, | |||
"repository": { | |||
"type": "git", | |||
"url": "https://github.com/roncli/HyperdriveToolkit.git" | |||
}, | |||
"devDependencies": { | |||
"electron-builder": "15.6.2", | |||
"electron": "1.6.2" | |||
}, | |||
"engines": { | |||
"node": ">=7.0.0" | |||
}, | |||
"productName": "HyperdriveToolkit", | |||
"build": { | |||
"appId": "com.electron.hyperdrivetoolkit", | |||
"copyright": "©2017 roncli Productions", | |||
"productName": "HyperdriveToolkit", | |||
"compression": "maximum", | |||
"nsis": { | |||
"oneClick": false, | |||
"perMachine": true, | |||
"allowToChangeInstallationDirectory": true, | |||
"runAfterFinish": false, | |||
"installerIcon": "logo/logo.ico" | |||
}, | |||
"win": { | |||
"icon": "logo/logo.ico --TODO" | |||
}, | |||
"mac": { | |||
"icon": "logo/logo.icns --TODO" | |||
} | |||
}, | |||
"scripts": { | |||
"pack": "node_modules/.bin/build --dir", | |||
"dist": "node_modules/.bin/build" | |||
} | |||
} |