mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-27 02:34:53 +00:00
Diff: https://github.com/moonlight-mod/moonlight/compare/v2026.3.3...v2026.4.0 Changelog: https://raw.githubusercontent.com/moonlight-mod/moonlight/refs/tags/v2026.4.0/CHANGELOG.md
77 lines
3.2 KiB
Diff
77 lines
3.2 KiB
Diff
diff --git i/packages/core-extensions/src/moonbase/host.ts w/packages/core-extensions/src/moonbase/host.ts
|
|
index ca78483..25716c9 100644
|
|
--- i/packages/core-extensions/src/moonbase/host.ts
|
|
+++ w/packages/core-extensions/src/moonbase/host.ts
|
|
@@ -79,22 +79,9 @@ electron.app.whenReady().then(() => {
|
|
|
|
if (!entries.find((e) => e.label === "moonlight")) {
|
|
const options: Electron.MenuItemConstructorOptions[] = [
|
|
- { label: "Update and restart", click: updateAndRestart },
|
|
{ label: "Reset config", click: resetConfig }
|
|
];
|
|
|
|
- if (moonlightHost.branch !== MoonlightBranch.DEV) {
|
|
- options.push({
|
|
- label: "Switch branch",
|
|
- submenu: [MoonlightBranch.STABLE, MoonlightBranch.NIGHTLY].map((branch) => ({
|
|
- label: branch,
|
|
- type: "radio",
|
|
- checked: moonlightHost.branch === branch,
|
|
- click: () => changeBranch(branch)
|
|
- }))
|
|
- });
|
|
- }
|
|
-
|
|
options.push({ label: "About", click: showAbout });
|
|
|
|
entries.splice(i + 1, 0, {
|
|
diff --git i/packages/core-extensions/src/moonbase/native.ts w/packages/core-extensions/src/moonbase/native.ts
|
|
index 9cccb0c..58e3e06 100644
|
|
--- i/packages/core-extensions/src/moonbase/native.ts
|
|
+++ w/packages/core-extensions/src/moonbase/native.ts
|
|
@@ -39,24 +39,7 @@ export default function getNatives(): MoonbaseNatives {
|
|
|
|
return {
|
|
async checkForMoonlightUpdate() {
|
|
- try {
|
|
- if (moonlightGlobal.branch === MoonlightBranch.STABLE) {
|
|
- const json = await getStableRelease();
|
|
- return json.name !== moonlightGlobal.version ? json.name : null;
|
|
- } else if (moonlightGlobal.branch === MoonlightBranch.NIGHTLY) {
|
|
- const req = await fetch(nightlyRefUrl, {
|
|
- cache: "no-store",
|
|
- headers: sharedHeaders
|
|
- });
|
|
- const ref = (await req.text()).split("\n")[0];
|
|
- return ref !== moonlightGlobal.version ? ref : null;
|
|
- }
|
|
-
|
|
- return null;
|
|
- } catch (e) {
|
|
- logger.error("Error checking for moonlight update", e);
|
|
- return null;
|
|
- }
|
|
+ return null;
|
|
},
|
|
|
|
async updateMoonlight(overrideBranch?: MoonlightBranch) {
|
|
diff --git i/packages/core-extensions/src/moonbase/webpackModules/ui/config/index.tsx w/packages/core-extensions/src/moonbase/webpackModules/ui/config/index.tsx
|
|
index a4aee57..ce564bb 100644
|
|
--- i/packages/core-extensions/src/moonbase/webpackModules/ui/config/index.tsx
|
|
+++ w/packages/core-extensions/src/moonbase/webpackModules/ui/config/index.tsx
|
|
@@ -80,14 +80,6 @@ export default function ConfigPage() {
|
|
return (
|
|
<ErrorBoundary>
|
|
<Stack direction="vertical" gap={16}>
|
|
- <Switch
|
|
- checked={MoonbaseSettingsStore.getExtensionConfigRaw<boolean>("moonbase", "updateChecking", true) ?? true}
|
|
- onChange={(value: boolean) => {
|
|
- MoonbaseSettingsStore.setExtensionConfig("moonbase", "updateChecking", value);
|
|
- }}
|
|
- label="Automatic update checking"
|
|
- description="Checks for updates to moonlight"
|
|
- />
|
|
<ArrayFormItem
|
|
label="Repositories"
|
|
description="A list of remote repositories to display extensions from"
|