mirror of
https://github.com/caddyserver/website.git
synced 2025-04-24 05:56:15 -04:00
download: add warning message for macOS users to unquarantine the binary (#249)
This commit is contained in:
parent
bb37b39a0e
commit
47f2e155bf
3 changed files with 10 additions and 1 deletions
|
@ -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 -->
|
||||
|
|
|
@ -62,6 +62,10 @@ body {
|
|||
background: #333;
|
||||
}
|
||||
|
||||
#darwin-warning {
|
||||
display: none;
|
||||
}
|
||||
|
||||
input:disabled,
|
||||
select:disabled,
|
||||
#optional-packages.disabled {
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue