Add build app

This commit is contained in:
Henry Hiles 2025-08-10 22:33:38 -04:00
commit 7b33d8bf25
No known key found for this signature in database
2 changed files with 21 additions and 8 deletions

1
.gitignore vendored
View file

@ -1,2 +1,3 @@
.direnv/ .direnv/
node_modules/ node_modules/
auto-rotate@henryhiles.com.zip

View file

@ -50,17 +50,29 @@
}; };
}); });
apps.default = { apps = let
file = "/tmp/${uuid}.zip";
zip = "env -C ${self'.packages.default}/${extDir} ${lib.getExe pkgs.zip} ${file} -FS9r .";
in {
default = {
type = "app";
program = pkgs.writeShellScriptBin "build" ''
${zip}
gnome-extensions install --force ${file}
dbus-run-session -- gnome-shell --nested --wayland
'';
};
build = {
type = "app"; type = "app";
program = let program = let
file = "/tmp/${uuid}.zip"; file = "/tmp/${uuid}.zip";
in in
pkgs.writeShellScriptBin "build" '' pkgs.writeShellScriptBin "build" ''
env -C ${self'.packages.default}/${extDir} ${lib.getExe pkgs.zip} ${file} -FS9r . ${zip}
gnome-extensions install --force ${file} cp ${file} .
dbus-run-session -- gnome-shell --nested --wayland
''; '';
}; };
}; };
}; };
};
} }