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

3
.gitignore vendored
View file

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

View file

@ -50,16 +50,28 @@
};
});
apps.default = {
type = "app";
program = let
file = "/tmp/${uuid}.zip";
in
pkgs.writeShellScriptBin "build" ''
env -C ${self'.packages.default}/${extDir} ${lib.getExe pkgs.zip} ${file} -FS9r .
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";
program = let
file = "/tmp/${uuid}.zip";
in
pkgs.writeShellScriptBin "build" ''
${zip}
cp ${file} .
'';
};
};
};
};