Simplify install command to plain curl, add /dl shortlink
- nginx.conf: add /dl -> latest xetup.exe release redirect (update on each release) - index.html: replace irm/iex command with 'curl -Lo xetup.exe xetup.x9.cz/dl' works with built-in curl.exe on Win10/11, no PowerShell execution policy needed Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
82349dbe31
commit
c3c8d8e501
2 changed files with 6 additions and 1 deletions
|
|
@ -178,7 +178,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="install-box">
|
<div class="install-box">
|
||||||
<code id="install-cmd">irm xetup.x9.cz/get.ps1 | iex</code>
|
<code id="install-cmd">curl -Lo xetup.exe xetup.x9.cz/dl</code>
|
||||||
<button id="copy-btn" onclick="copyCmd()">Kopirovat</button>
|
<button id="copy-btn" onclick="copyCmd()">Kopirovat</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -14,6 +14,11 @@ server {
|
||||||
add_header X-Content-Type-Options nosniff always;
|
add_header X-Content-Type-Options nosniff always;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Permanent shortlink to latest xetup.exe – update on each release
|
||||||
|
location = /dl {
|
||||||
|
return 302 https://git.xetup.x9.cz/x9/xetup/releases/download/v0.1.0/xetup.exe;
|
||||||
|
}
|
||||||
|
|
||||||
# Proxy Forgejo API calls so browser doesn't need CORS or direct access to Forgejo
|
# Proxy Forgejo API calls so browser doesn't need CORS or direct access to Forgejo
|
||||||
location /forgejo-api/ {
|
location /forgejo-api/ {
|
||||||
proxy_pass http://xetup-forgejo:3000/api/v1/;
|
proxy_pass http://xetup-forgejo:3000/api/v1/;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue