feat(update): add homepage update script

This commit is contained in:
matt1432 2024-12-21 05:57:56 -05:00
parent 1169c4d9db
commit a818cbd3d4
3 changed files with 19 additions and 1 deletions
apps/update-sources/src

View file

@ -45,3 +45,9 @@ export const updateCustomPackage = (pkg: string) => spawnSync(
[],
{ shell: true },
).stderr.toString();
export const runNixUpdate = (attr: string, options: string[] = []) => spawnSync(
'nix-update',
['--flake', attr, ...options],
{ shell: true, cwd: FLAKE },
).stderr.toString();