diff --git a/.env.development b/.env.development index e4358d2..dcb2c5a 100644 --- a/.env.development +++ b/.env.development @@ -1,8 +1,8 @@ APP_NAME=media-downloader -APP_VERSION=0.1.0 +APP_VERSION=2.0.0 APP_ID=mediago.ziying.site APP_COPYRIGHT=caorushizi -APP_UPDATER_UEL=https://your-deployment-url.com +APP_UPDATER_UEL=https://github.com/caorushizi/m3u8-downloader APP_BASE_URL=http://baidu.com APP_TD_APPID= diff --git a/.env.production b/.env.production index 4ab3846..a425487 100644 --- a/.env.production +++ b/.env.production @@ -1,8 +1,8 @@ APP_NAME=media-downloader -APP_VERSION=0.1.0 +APP_VERSION=2.0.0 APP_ID=mediago.ziying.site APP_COPYRIGHT=caorushizi -APP_UPDATER_UEL=https://your-deployment-url.com +APP_UPDATER_UEL=https://github.com/caorushizi/m3u8-downloader APP_BASE_URL=http://baidu.com APP_TD_APPID= diff --git a/packages/main/src/interfaces.ts b/packages/main/src/interfaces.ts index 4094e45..de2cbcd 100644 --- a/packages/main/src/interfaces.ts +++ b/packages/main/src/interfaces.ts @@ -37,7 +37,6 @@ export type Controller = Record; export interface LoggerService { logger: ElectronLog; - init: () => void; info: (...args: any[]) => void; error: (...args: any[]) => void; warn: (...args: any[]) => void; diff --git a/packages/main/src/services/LoggerServiceImpl.ts b/packages/main/src/services/LoggerServiceImpl.ts index 89947ce..2535caa 100644 --- a/packages/main/src/services/LoggerServiceImpl.ts +++ b/packages/main/src/services/LoggerServiceImpl.ts @@ -18,10 +18,6 @@ export default class LoggerServiceImpl implements LoggerService { this.logger = logger; } - init(): void { - // empty - } - info(...args: any[]) { return this.logger.info(...args); } diff --git a/packages/main/src/services/UpdateServiceImpl.ts b/packages/main/src/services/UpdateServiceImpl.ts index 999adbd..5035fc4 100644 --- a/packages/main/src/services/UpdateServiceImpl.ts +++ b/packages/main/src/services/UpdateServiceImpl.ts @@ -8,9 +8,7 @@ import isDev from "electron-is-dev"; export default class UpdateServiceImpl implements UpdateService { constructor( @inject(TYPES.LoggerService) private readonly logger: LoggerService - ) { - // empty - } + ) {} init(): void { if (isDev) return;