Add build app
This commit is contained in:
parent
19c9d8e045
commit
7b33d8bf25
2 changed files with 21 additions and 8 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,2 +1,3 @@
|
||||||
.direnv/
|
.direnv/
|
||||||
node_modules/
|
node_modules/
|
||||||
|
auto-rotate@henryhiles.com.zip
|
20
flake.nix
20
flake.nix
|
@ -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
|
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue