feat: complete debranding of MoreMinimore by removing Dyad dependencies and integrating custom features
This commit is contained in:
22
src/main.ts
22
src/main.ts
@@ -4,7 +4,7 @@ import { registerIpcHandlers } from "./ipc/ipc_host";
|
||||
import dotenv from "dotenv";
|
||||
// @ts-ignore
|
||||
import started from "electron-squirrel-startup";
|
||||
import { updateElectronApp, UpdateSourceType } from "update-electron-app";
|
||||
// import { updateElectronApp, UpdateSourceType } from "update-electron-app"; // Removed - Dyad API dependency
|
||||
import log from "electron-log";
|
||||
import {
|
||||
getSettingsFilePath,
|
||||
@@ -107,23 +107,9 @@ export async function onReady() {
|
||||
await onFirstRunMaybe(settings);
|
||||
createWindow();
|
||||
|
||||
logger.info("Auto-update enabled=", settings.enableAutoUpdate);
|
||||
if (settings.enableAutoUpdate) {
|
||||
// Technically we could just pass the releaseChannel directly to the host,
|
||||
// but this is more explicit and falls back to stable if there's an unknown
|
||||
// release channel.
|
||||
const postfix = settings.releaseChannel === "beta" ? "beta" : "stable";
|
||||
const host = `https://api.dyad.sh/v1/update/${postfix}`;
|
||||
logger.info("Auto-update release channel=", postfix);
|
||||
updateElectronApp({
|
||||
logger,
|
||||
updateSource: {
|
||||
type: UpdateSourceType.ElectronPublicUpdateService,
|
||||
repo: "dyad-sh/dyad",
|
||||
host,
|
||||
},
|
||||
}); // additional configuration options available
|
||||
}
|
||||
logger.info("Auto-update disabled - removed Dyad API dependency");
|
||||
// Auto-update functionality removed to eliminate Dyad API dependency
|
||||
// Users can manually update by downloading new releases from GitHub
|
||||
}
|
||||
|
||||
export async function onFirstRunMaybe(settings: UserSettings) {
|
||||
|
||||
Reference in New Issue
Block a user