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

@ -6,9 +6,14 @@ import { parseArgs } from './lib';
import { updateDocker } from './docker';
import { updateFirefoxAddons } from '././firefox';
import { updateFlakeInputs } from './flake';
import { updateCustomPackage, updateVuetorrent } from './misc';
import updateNodeModules from './node-modules';
import {
runNixUpdate,
updateCustomPackage,
updateVuetorrent,
} from './misc';
/* Constants */
const FLAKE = process.env.FLAKE;
@ -51,6 +56,10 @@ const main = async() => {
console.log(await updateNodeModules());
}
if (args['h'] || args['homepage']) {
console.log(runNixUpdate('homepage'));
}
if (args['a'] || args['all']) {
// Update this first because of nix run cmd
const firefoxOutput = updateFirefoxAddons();
@ -83,6 +92,7 @@ const main = async() => {
'scopedPackages.x86_64-linux.lovelace-components.custom-sidebar',
));
console.log(updateCustomPackage('some-sass-language-server'));
console.log(runNixUpdate('homepage'));
spawnSync('nixFastBuild', [], {