Skip to content

Commit 9e4c382

Browse files
committed
remove the explicit version from the site...just always get the latest
1 parent 396ad3c commit 9e4c382

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

index.html

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@
7575
</style>
7676
<script>
7777

78-
const version = "v2025_01_02";
7978
function get(id) { return document.getElementById(id); }
8079

8180

@@ -180,7 +179,7 @@
180179

181180
if (arch_os != null) {
182181
const basename = 'zigup-' + arch_os + archive_ext;
183-
const archive_url = 'https://github.com/marler8997/zigup/releases/download/' + version + '/' + basename;
182+
const archive_url = 'https://github.com/marler8997/zigup/releases/latest/download/' + basename;
184183
html += '<br/><h2 style="margin:15px"><a href="' + archive_url + '">' + basename + '</a></h2>';
185184

186185
html += '<br/><h2>Command Line Install:</h2>';
@@ -196,15 +195,14 @@
196195
html += generateCommandHtml(ids, 'wget -O - ' + archive_url + ' | tar xz');
197196
}
198197
if (include_powershell) {
199-
html += generateCommandHtml(ids, "Invoke-WebRequest -Uri " + archive_url + " -OutFile \"zigup-" + arch_os + ".zip\"; Expand-Archive -Path \"zigup-" + arch_os + ".zip\" -DestinationPath \"zigup-" + version + "\"");
198+
html += generateCommandHtml(ids, "Invoke-WebRequest -Uri " + archive_url + " -OutFile \"zigup-" + arch_os + ".zip\"; Expand-Archive -Path \"zigup-" + arch_os + ".zip\" -DestinationPath \"zigup\"");
200199
}
201200
html += "</div></section>";
202201
}
203202
get('InstallDiv').innerHTML = html;
204203
}
205204

206205
function bodyOnload() {
207-
get("VersionDiv").innerHTML = version;
208206
updateInstallDiv()
209207

210208
let userAgent = window.navigator.userAgent;
@@ -220,7 +218,6 @@
220218
</head><body onload="bodyOnload()">
221219

222220
<h1>Install Zigup</h1>
223-
<div id="VersionDiv"></div>
224221
<div style="margin:10px">
225222
<span id="ButtonLinux" class="FilterButton" onclick="toggleOs(OS_LINUX)">Linux</span>
226223
<span id="ButtonMacos" class="FilterButton" onclick="toggleOs(OS_MACOS)">macOS</span>

0 commit comments

Comments
 (0)