Skip to content

Commit 5311bb9

Browse files
authored
Merge pull request #2709 from RedisInsight/release/2.36.0
Release/2.36.0 to latest
2 parents 9372bce + 4782755 commit 5311bb9

File tree

349 files changed

+10333
-5918
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

349 files changed

+10333
-5918
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
const whitelist = {
2+
'linux': {
3+
'appimage': 1,
4+
'appimage:x64': 1,
5+
'deb': 1,
6+
'deb:x64': 1,
7+
'rpm': 1,
8+
'rpm:x64': 1,
9+
'snap': 1,
10+
'snap:x64': 1,
11+
},
12+
'mac': {
13+
'dmg': 1,
14+
'dmg:x64': 1,
15+
'dmg:arm64': 1,
16+
},
17+
'windows': {
18+
'nsis': 1,
19+
'nsis:x64': 1,
20+
}
21+
};
22+
23+
(() => {
24+
const os = process.argv[2];
25+
const targets = process.argv[3]?.split(" ") || [];
26+
27+
if (targets.length) {
28+
targets.forEach((target) => {
29+
if (!whitelist[os]?.[target]) {
30+
throw new Error(`Target ${target} for ${os} is not allowed. \nAllowed targets: ${Object.keys(whitelist[os] || {}).join(',')}`);
31+
}
32+
})
33+
}
34+
})()

0 commit comments

Comments
 (0)