Skip to content

Commit d28c45a

Browse files
committed
First Release Candidate for GNU/Linux
1 parent 09993c7 commit d28c45a

File tree

10 files changed

+641
-431
lines changed

10 files changed

+641
-431
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,4 @@ debug.log
3030
npm-debug.log
3131
videos
3232
electron/demokit/build
33+
electron/dist

electron/demokit/binding.gyp

Lines changed: 0 additions & 24 deletions
This file was deleted.

electron/demokit/mouse.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ const execute = require("demokit/execute");
33
const { wait } = require("./demokit");
44
const { Workspace, Scene, convert } = require("./coordinate-space");
55
const { getCenterRect, getBoundingClientRect } = require("./geometry");
6-
// const { getCursor, performClick } = require("bindings")("mouse");
76
const robot = require('robotjs')
87

98

electron/demokit/mouse.mm

Lines changed: 0 additions & 147 deletions
This file was deleted.

electron/demokit/package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@
3030
],
3131
"license": "MIT",
3232
"dependencies": {
33-
"bindings": "^1.2.1",
34-
"nan": "^2.4.0",
3533
"robotjs": "^0.4.7"
3634
}
3735
}

electron/demokit/recording.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ const path = require("path");
22
const scene = require("./scene");
33
const moment = require("moment");
44
const ffmpeg = require('fluent-ffmpeg');
5-
// console.log('typeof', typeof ffmpeg);
65
const expandTilde = require("expand-tilde");
76
const { convert, Scene, Global } = require("./coordinate-space");
87
const { delay } = require("bluebird");
@@ -80,7 +79,7 @@ module.exports.start = async function({
8079
})
8180
.on('error', function(e) {
8281
console.log('Screen Capture Completed.');
83-
console.error(e);
82+
// console.error(e);
8483
});
8584

8685
console.log("Starting Screen Capture");

electron/demokit/yarn.lock

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,6 @@ are-we-there-yet@~1.1.2:
1717
delegates "^1.0.0"
1818
readable-stream "^2.0.6"
1919

20-
bindings@^1.2.1:
21-
version "1.2.1"
22-
resolved "https://registry.yarnpkg.com/bindings/-/bindings-1.2.1.tgz#14ad6113812d2d37d72e67b4cacb4bb726505f11"
23-
2420
bl@^1.0.0:
2521
version "1.2.1"
2622
resolved "https://registry.yarnpkg.com/bl/-/bl-1.2.1.tgz#cac328f7bee45730d404b692203fcb590e172d5e"
@@ -114,7 +110,7 @@ mkdirp@^0.5.1:
114110
dependencies:
115111
minimist "0.0.8"
116112

117-
nan@^2.2.1, nan@^2.4.0:
113+
nan@^2.2.1:
118114
version "2.6.2"
119115
resolved "https://registry.yarnpkg.com/nan/-/nan-2.6.2.tgz#e4ff34e6c95fdfb5aecc08de6596f43605a7db45"
120116

electron/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const app = electron.app
55
const BrowserWindow = electron.BrowserWindow;
66
const path = require("path");
77
const cwd = process.cwd();
8-
const env = process.env.NODE_ENV || 'development'
8+
const env = process.env.NODE_ENV || 'production'
99

1010
// Keep a global reference of the window object, if you don't, the window will
1111
// be closed automatically when the JavaScript object is garbage collected.

electron/package.json

Lines changed: 22 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "demokit",
3-
"version": "1.0.0",
3+
"version": "2.0.0",
44
"description": "Beautiful Demos with JSX",
55
"main": "main.js",
66
"scripts": {
@@ -9,29 +9,28 @@
99
"build-demokit": "cd demokit && yarn install --runtime=electron --target=1.6.11 --disturl=https://atom.io/download/atom-shell --abi=57",
1010
"build-electron": "yarn install --runtime=electron --target=1.6.11 --disturl=https://atom.io/download/atom-shell --abi=57",
1111
"build-with-abi": "npm run-script build-demokit && npm run-script build-electron",
12-
"build-with-abi-good": "npm install --runtime=electron --target=1.6.11 --disturl=https://atom.io/download/atom-shell --abi=57 && cd demokit && npm install --runtime=electron --target=1.6.11 --disturl=https://atom.io/download/atom-shell --abi=57",
1312
"build": "npm run-script build-with-abi",
14-
"deploy-old": "npm run-script build-with-abi && electron-packager . DemoKitApp --overwrite --arch=x64"
13+
"release": "build",
14+
"postinstall": "electron-builder install-app-deps"
1515
},
1616
"repository": {
1717
"type": "git",
18-
"url": "git+https://github.com/njudah/demokit"
18+
"url": "git+https://github.com/open-fidias/demokit"
1919
},
2020
"keywords": [],
2121
"author": "RunKit",
2222
"license": "MIT",
2323
"bugs": {
24-
"url": "https://github.com/njudah/demokit/issues"
24+
"url": "https://github.com/open-fidias/demokit/issues"
2525
},
26-
"homepage": "https://github.com/njudah/demokit#readme",
26+
"homepage": "https://github.com/open-fidias/demokit",
2727
"dependencies": {
2828
"babel-plugin-transform-object-rest-spread": "^6.8.0",
2929
"babel-polyfill": "^6.13.0",
3030
"babel-preset-es2015-node6": "^0.3.0",
3131
"babel-preset-stage-3": "^6.11.0",
3232
"babel-register": "^6.14.0",
3333
"bluebird": "^3.4.6",
34-
"electron": "1.6.11",
3534
"expand-tilde": "^1.2.2",
3635
"fluent-ffmpeg": "^2.1.2",
3736
"generic-jsx": "9.0.0",
@@ -40,7 +39,21 @@
4039
"uuid": "^2.0.2"
4140
},
4241
"devDependencies": {
43-
"electron-packager": "^8.0.0",
44-
"electron-rebuild": "^1.2.1"
42+
"electron": "1.6.11",
43+
"electron-builder": "^19.16.2",
44+
"electron-packager": "^8.0.0"
45+
},
46+
"build": {
47+
"appId": "open.fidias.fork.demokit",
48+
"productName": "DemoKit",
49+
"linux": {
50+
"description": "Beautiful Demos with JSX",
51+
"maintainer": "Átila Camurça <camurca.home@gmail.com>",
52+
"target": [
53+
"AppImage", "deb", "tar.gz"
54+
],
55+
"category": "Video",
56+
"packageCategory": "video"
57+
}
4558
}
4659
}

0 commit comments

Comments
 (0)