1
1
mirror of https://github.com/neosubhamoy/pytubepp-helper.git synced 2026-02-04 11:22:22 +05:30

(feat): added support for macOS

This commit is contained in:
2024-12-16 22:37:00 +05:30
Verified
parent 1dc8ef659f
commit c235db28c1
11 changed files with 416 additions and 261 deletions

View File

@@ -9,7 +9,7 @@ import { ThemeProvider } from "@/components/theme-provider";
import { Button } from "@/components/ui/button";
import { Alert, AlertDescription, AlertTitle } from "@/components/ui/alert"
import { InstalledPrograms, WebSocketMessage, } from "./types";
import { compareVersions, extractVersion, isInstalled, sendStreamInfo, detectWindows, detectDistro, extractDistroId, detectDistroBase, detectMacOs } from "./lib/utils";
import { compareVersions, extractVersion, isInstalled, sendStreamInfo, detectWindows, detectDistro, extractDistroId, detectDistroBase, detectMacOs, registerMacFiles } from "./lib/utils";
import { CircleCheck, TriangleAlert, CircleAlert } from 'lucide-react';
function App() {
@@ -234,7 +234,14 @@ function App() {
<div className="container">
<div className={clsx("topbar flex justify-between items-center mt-5", !isWindows && "mx-3")}>
<h1 className="text-xl font-bold">PytubePP Helper</h1>
<Button size="sm" onClick={checkAllPrograms}>Refresh</Button>
<div>
{ isMacOs && macOsVersion && compareVersions(macOsVersion, '10.13') > 0 ?
<Button size="sm" onClick={registerMacFiles}>Register</Button>
:
null
}
<Button className="ml-3" size="sm" onClick={checkAllPrograms}>Refresh</Button>
</div>
</div>
{ distroId && distroBase && distroBase === 'debian' ? /* Section for Debian */
<div className="programstats mt-5 mx-3">