forked from netless-io/flat
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconstants.js
More file actions
28 lines (23 loc) · 763 Bytes
/
constants.js
File metadata and controls
28 lines (23 loc) · 763 Bytes
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
const { join } = require("path");
const { mainPath, version } = require("../constants");
const buildPath = join(mainPath, "release");
const winBuildPath = join(buildPath, "win");
const macBuildPath = join(buildPath, "mac");
const isBeta = version.includes("beta");
const winArtifactsRegExp = [
/^latest\.yml$/,
/^Flat-.+\.exe$/,
/^Flat-.+\.exe\.blockmap$/,
/^Flat-.+\.zip$/,
];
const macArtifactsRegExp = [
/latest-mac\.yml$/,
/^Flat-.+\.dmg$/,
/^Flat-.+\.dmg\.blockmap$/,
/^Flat-.+\.zip$/,
];
module.exports.winBuildPath = winBuildPath;
module.exports.macBuildPath = macBuildPath;
module.exports.isBeta = isBeta;
module.exports.winArtifactsRegExp = winArtifactsRegExp;
module.exports.macArtifactsRegExp = macArtifactsRegExp;