forked from electron-webapps/meteor-electron
-
Notifications
You must be signed in to change notification settings - Fork 3
/
package.js
86 lines (75 loc) · 2.27 KB
/
package.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
/* global Package:false, Npm:false */
Package.describe({
name: 'meson:electron',
summary: "Electron",
version: "0.1.4",
git: "https://github.com/electron-webapps/meteor-electron"
});
Npm.depends({
"electron-packager": "https://github.com/mixmaxhq/electron-packager/archive/f511e2680efa39c014d8bedca872168e585f8daf.tar.gz",
"is-running": "1.0.5",
"lucy-dirsum": "https://github.com/mixmaxhq/lucy-dirsum/archive/08299b483cd0f79d18cd0fa1c5081dcab67c5649.tar.gz",
"mkdirp": "0.5.1",
"ncp": "2.0.0",
"rimraf": "2.4.4",
"semver": "5.1.0",
"url-join": "0.0.1",
"electron-rebuild": "1.0.1",
"electron-installer-redhat": "0.2.0",
"electron-installer-debian": "0.3.0",
"async": "2.0.0",
"fs-extra": "0.30.0",
"bizzby-lsb-release": "0.2.0",
"wget-improved": "1.3.0",
"range-parser": "1.2.0",
"sprintf-js": "1.0.3",
"stream-stream": "1.2.6",
"lodash": "4.13.1"
});
Package.onUse(function (api) {
api.versionsFrom("[email protected]");
api.use(["mongo-livedata", "webapp", "ejson", "[email protected]"], "server");
api.use("underscore", ["server", "client"]);
api.use(["iron:[email protected]||1.0.0"], {weak: true});
api.use("meteorhacks:[email protected]", "server", {weak: true});
api.addFiles([
'server/variables.js',
'server/createBinaries.js',
'server/downloadUrls.js',
'server/launchApp.js',
'server/serve.js',
'server/serveMultipart.js',
'server/serveDownloadUrl.js',
'server/serveUpdateFeed.js',
// Must go last so that its dependencies have been defined.
'server/index.js'
], 'server');
var assets = [
"app/autoUpdater.js",
"app/main.js",
"app/menu.js",
"app/package.json",
"app/preload.js",
"app/proxyWindowEvents.js"
];
// Use Meteor 1.2+ API, but fall back to the pre-1.2 API if necessary
if (api.addAssets) {
api.addAssets(assets, "server");
} else {
api.addFiles(assets, "server", {isAsset: true});
}
api.addFiles(['client/index.js'], "client");
// Test exports.
api.export([
'parseMacDownloadUrl',
'parseWindowsDownloadUrls'
], 'server', {
testOnly: true
});
// Public exports.
api.export("Electron", ["client"]);
});
Package.onTest(function(api) {
api.use(['meson:electron', 'tinytest']);
api.addFiles('tests/server/downloadUrlsTest.js', 'server');
});