Tauri: Hide Linux download (#6701)
This commit is contained in:
parent
32f98bc0a0
commit
c6d6ae100e
@ -36,7 +36,7 @@ const packagesPromise = fetch(LATEST_RELEASE_API_URL)
|
|||||||
});
|
});
|
||||||
|
|
||||||
(function init() {
|
(function init() {
|
||||||
if (platform === 'Windows' || platform === 'Linux') {
|
if (platform === 'Windows') {
|
||||||
if (currentPage === 'index') {
|
if (currentPage === 'index') {
|
||||||
setupDownloadButton();
|
setupDownloadButton();
|
||||||
setupVersion();
|
setupVersion();
|
||||||
@ -115,8 +115,6 @@ function redirectToFullList() {
|
|||||||
function downloadDefault() {
|
function downloadDefault() {
|
||||||
if (platform === 'Windows') {
|
if (platform === 'Windows') {
|
||||||
download('win');
|
download('win');
|
||||||
} else if (platform === 'Linux') {
|
|
||||||
download('linux');
|
|
||||||
} else if (platform === 'macOS') {
|
} else if (platform === 'macOS') {
|
||||||
redirectToMac();
|
redirectToMac();
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@ -100,6 +100,7 @@ async function extractJson(tgsUrl: string) {
|
|||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Prefer native gzip decompression over library. This use case has ~same speed
|
||||||
const decompressionStream = response.body.pipeThrough(new DecompressionStream('gzip'));
|
const decompressionStream = response.body.pipeThrough(new DecompressionStream('gzip'));
|
||||||
const result = await new Response(decompressionStream).text();
|
const result = await new Response(decompressionStream).text();
|
||||||
return result;
|
return result;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user