-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackaging.js
37 lines (37 loc) · 1017 Bytes
/
packaging.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
var comet = {
packageInfo: "comet/package.json",
build: "multiplatformal",
version: "^1.0.0"
}
var download = require("../comet");
download.debug(comet.version);
var system = {
systemMac:"OS 7 or later",
systemWindows:"Windows 8 or later"
}
function packaging(packageOne){
var requirements = {
systemMac:"OS 7 or later",
systemWindows:"Windows 8 or later"
}
for(var e=0; e<requirements.length; e++){
requirements.add(packageOne);
}
if(packageOne === requirements.systemWindows || packageOne === requirements.systemMac){
packageOne = true;
} else {
packageOne = false;
print("Sorry, the build is unable to install due to not meeting the requirements");
}
}
function checkReq(systemA, systemB){
if(systemA === true || systemB === true){
packaging(systemA);
} else {
packaging(systemB);
} else if(systemA === false || systemB === false) {
print("Cannot build repo.");
}
}
packaging("");
checkReq(requirements.systemMac, requirements.systemWindows);