refactor: extract AUR/Nix data to json

This commit is contained in:
N1C4T
2026-01-25 21:30:07 +04:00
parent 87267b06ab
commit e8435a49dd
5 changed files with 82 additions and 102 deletions

View File

@@ -105,7 +105,6 @@ export function CommandFooter({
helper: selectedHelper,
});
const isNix = selectedDistro === 'nix';
const ext = isNix ? 'nix' : 'sh';
const mimeType = isNix ? 'text/plain' : 'text/x-shellscript';
const blob = new Blob([script], { type: mimeType });
const url = URL.createObjectURL(blob);