-
Notifications
You must be signed in to change notification settings - Fork 2
/
publish.js
21 lines (19 loc) · 924 Bytes
/
publish.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
const pkg = require('./package.json');
const {exec} = require("child_process");
const distDir = __dirname + '/dist';
const execHandler = (error, stdout, stderr) => {
if (error) {
console.log(`error: ${error.message}`);
process.exit(1);
return;
}
if (stderr) {
console.log(`stderr: ${stderr}`);
return;
}
console.log(`stdout: ${stdout}`);
};
//exec(`butler push ${distDir}/autotiler-mac.dmg ${pkg.butler.project}:macos-universal --userversion ${pkg.version}`, execHandler);
exec(`butler push ${distDir}/autotiler-mac.app ${pkg.butler.project}:macos-universal --userversion ${pkg.version}`, execHandler);
exec(`butler push ${distDir}/autotiler-win.exe ${pkg.butler.project}:windows --userversion ${pkg.version}`, execHandler);
exec(`butler push ${distDir}/autotiler-linux.AppImage ${pkg.butler.project}:linux-universal --userversion ${pkg.version}`, execHandler);