forked from akai/readest
feat(updater): in-app updater for AppImage (#3072)
This commit is contained in:
@@ -52,8 +52,9 @@ import {
|
||||
|
||||
declare global {
|
||||
interface Window {
|
||||
__READEST_UPDATER_DISABLED?: boolean;
|
||||
__READEST_IS_EINK?: boolean;
|
||||
__READEST_IS_APPIMAGE?: boolean;
|
||||
__READEST_UPDATER_DISABLED?: boolean;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -399,6 +400,7 @@ export class NativeAppService extends BaseAppService {
|
||||
override isLinuxApp = OS_TYPE === 'linux';
|
||||
override isMobileApp = ['android', 'ios'].includes(OS_TYPE);
|
||||
override isDesktopApp = ['macos', 'windows', 'linux'].includes(OS_TYPE);
|
||||
override isAppImage = Boolean(window.__READEST_IS_APPIMAGE);
|
||||
override isEink = Boolean(window.__READEST_IS_EINK);
|
||||
override hasTrafficLight = OS_TYPE === 'macos';
|
||||
override hasWindow = !(OS_TYPE === 'ios' || OS_TYPE === 'android');
|
||||
|
||||
Reference in New Issue
Block a user