download: add warning message for macOS users to unquarantine the binary (#249)

This commit is contained in:
Mohammed Al Sahaf 2022-07-21 20:40:45 +03:00 committed by GitHub
parent bb37b39a0e
commit 47f2e155bf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 1 deletions

View file

@ -74,6 +74,11 @@
<div class="text-center">
<span class="warning">⚠️ Only choose plugins you need and trust</span>
</div>
<div class="text-center" id="darwin-warning">
<span class="warning">⚠️ Run the following against the downloaded binary:
<code>xattr -d com.apple.quarantine </code>
</span>
</div>
<div id="optional-packages">
<!-- Populated by JavaScript -->

View file

@ -62,6 +62,10 @@ body {
background: #333;
}
#darwin-warning {
display: none;
}
input:disabled,
select:disabled,
#optional-packages.disabled {

View file

@ -245,7 +245,7 @@ function getDownloadLink() {
qs.append("p", p);
});
$("#darwin-warning").toggle(os === "darwin");
var idempotencyKey = Math.floor(Math.random() * 99999999999999);
qs.append("idempotency", idempotencyKey);