feat: portable build

This commit is contained in:
zhom
2026-03-29 14:55:20 +04:00
parent 1099459dbb
commit c516999f7a
7 changed files with 105 additions and 2 deletions
+3 -1
View File
@@ -128,6 +128,7 @@ export function SettingsDialog({
app_version: string;
os: string;
arch: string;
portable: boolean;
} | null>(null);
const { t } = useTranslation();
@@ -237,6 +238,7 @@ export function SettingsDialog({
app_version: string;
os: string;
arch: string;
portable: boolean;
}>("get_system_info");
setSystemInfo(info);
} catch {
@@ -1109,7 +1111,7 @@ export function SettingsDialog({
{systemInfo && (
<div className="pt-2 border-t">
<p className="text-xs text-muted-foreground font-mono whitespace-pre-line select-all">
{`Donut Browser ${systemInfo.app_version}\n${systemInfo.os} ${systemInfo.arch}`}
{`Donut Browser ${systemInfo.app_version}\n${systemInfo.os} ${systemInfo.arch}${systemInfo.portable ? " (portable)" : ""}`}
</p>
</div>
)}