fix: 1.1.1.3 online installer 5.8M + mods toggle + ZGC vs G1GC conflict
- server/main.py BUILDS_DIR absolute + /launcher/download/online,offine-setup - site index/js online->/download/online 5.8M - LaunchCommandBuilder skip G1GC when systemBasedJvm (ZGC conflict -> Bootstrap crash) - JFXLauncher toggle robust rename + FileAlreadyExists fix
This commit is contained in:
@@ -345,16 +345,12 @@
|
||||
// online setup is Go exe (~5.8M) — try to discover via /launcher/version or static name
|
||||
try {
|
||||
const v = version && version !== '—' ? version : '1.1.1.2';
|
||||
dlOnline.href = API + '/launcher/download/jre'; // JRE endpoint validated, exe name is ZernMC-Online-Setup-<ver>.exe
|
||||
dlOnline.href = API + '/launcher/download/online';
|
||||
dlOnline.setAttribute('data-version', v);
|
||||
// probe if online exe exists
|
||||
fetch(API + '/launcher/file/' + v + '/ZernMC-Online-Setup-' + v + '.exe', {method:'HEAD'}).then(r=>{
|
||||
if (r.ok) dlOnline.href = API + '/launcher/file/' + v + '/ZernMC-Online-Setup-' + v + '.exe';
|
||||
}).catch(()=>{});
|
||||
} catch(e){}
|
||||
}
|
||||
if (dlOffline) dlOffline.href = API + '/launcher/download/offline-setup';
|
||||
if (dlOffline && data.new_format && data.new_format.download_url) {
|
||||
dlOffline.href = API + data.new_format.download_url;
|
||||
}
|
||||
} catch (e) {
|
||||
console.warn('[site] failed to load launcher info', e);
|
||||
|
||||
Reference in New Issue
Block a user