🎨 Clean up code
This commit is contained in:
parent
aab926b451
commit
d786fbacfd
1 changed files with 4 additions and 2 deletions
6
build.js
6
build.js
|
@ -9,7 +9,9 @@ function puts(error, stdout, stderr) {
|
|||
console.error(stderr);
|
||||
}
|
||||
|
||||
switch (os.type()) {
|
||||
const osType = os.type();
|
||||
|
||||
switch (osType) {
|
||||
case "Linux":
|
||||
childProcess.exec("npm run build-linux", puts);
|
||||
break;
|
||||
|
@ -17,5 +19,5 @@ switch (os.type()) {
|
|||
childProcess.exec("npm run build-windows", puts);
|
||||
break;
|
||||
default:
|
||||
throw new Error("Unsupported OS found: " + os.type());
|
||||
throw new Error("Unsupported operating system found: " + osType);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue