chore: make patch settings available to linux users, force stable patcher stream
This commit is contained in:
1 parent
416067f2ea
commit
0610d4beef
2 files changed
+7
-7
No files matched your search
@@ -79,7 +79,6 @@ pub fn valid_osu_folder(folder: String) -> bool {
|
|||||||
check_folder_completeness(path, &osu_folder_files) >= 70.0
|
check_folder_completeness(path, &osu_folder_files) >= 70.0
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(windows)]
|
|
||||||
#[tauri::command]
|
#[tauri::command]
|
||||||
pub fn find_osu_installation() -> Option<String> {
|
pub fn find_osu_installation() -> Option<String> {
|
||||||
#[cfg(windows)]
|
#[cfg(windows)]
|
||||||
@@ -962,7 +961,6 @@ pub async fn download_ezpp_launcher_update(app: AppHandle, url: String) -> Resul
|
|||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(windows)]
|
|
||||||
#[tauri::command]
|
#[tauri::command]
|
||||||
pub async fn install_ezpp_launcher_update(app: AppHandle) -> Result<(), String> {
|
pub async fn install_ezpp_launcher_update(app: AppHandle) -> Result<(), String> {
|
||||||
#[cfg(windows)]
|
#[cfg(windows)]
|
||||||
|
|||||||
@@ -304,7 +304,9 @@
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
launchInfo = 'Looking for file updates...';
|
launchInfo = 'Looking for file updates...';
|
||||||
const updateResult = await getEZPPLauncherUpdateFiles(osuPath, $launcherStream);
|
let launchStream = $launcherStream;
|
||||||
|
if ($platform !== 'windows') launchStream = 'stable'; //fallback to stable for non windows systems
|
||||||
|
const updateResult = await getEZPPLauncherUpdateFiles(osuPath, launchStream);
|
||||||
|
|
||||||
if (updateResult) {
|
if (updateResult) {
|
||||||
if (updateResult.filesToDownload.length > 0) {
|
if (updateResult.filesToDownload.length > 0) {
|
||||||
@@ -1558,17 +1560,16 @@
|
|||||||
<div class="flex flex-col">
|
<div class="flex flex-col">
|
||||||
<Label class="text-sm" for="setting-patch">Patching</Label>
|
<Label class="text-sm" for="setting-patch">Patching</Label>
|
||||||
<div class="text-muted-foreground text-xs">
|
<div class="text-muted-foreground text-xs">
|
||||||
Shows misses in Relax and Autopilot {#if $platform !== 'windows'}<span
|
Shows misses in Relax and Autopilot {#if $platform !== 'windows'}<!-- <span
|
||||||
class="text-red-500 bg-red-800/20 border border-red-600/20 p-0.5 mx-1 px-2 rounded-lg text-[0.55rem]!"
|
class="text-red-500 bg-red-800/20 border border-red-600/20 p-0.5 mx-1 px-2 rounded-lg text-[0.55rem]!"
|
||||||
>currently only on windows!</span
|
>currently only on windows!</span
|
||||||
>
|
> -->
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<Checkbox
|
<Checkbox
|
||||||
id="setting-patch"
|
id="setting-patch"
|
||||||
checked={$platform === 'windows' ? $patch : false}
|
checked={$patch}
|
||||||
disabled={$platform !== 'windows'}
|
|
||||||
onCheckedChange={async (e) => {
|
onCheckedChange={async (e) => {
|
||||||
patch.set(e);
|
patch.set(e);
|
||||||
}}
|
}}
|
||||||
@@ -1717,6 +1718,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex flex-row w-full">
|
<div class="flex flex-row w-full">
|
||||||
|
<!-- only stable release stream for linux -->
|
||||||
<Select.Root
|
<Select.Root
|
||||||
type="single"
|
type="single"
|
||||||
bind:value={$launcherStream}
|
bind:value={$launcherStream}
|
||||||
|
|||||||
Reference in new issue
Block a user