updated readme and automatically download appimage

This commit is contained in:
Kristian Krsnik 2024-01-27 14:48:05 +01:00
parent 044bcc975b
commit fd8519482d
Signed by: Kristian
GPG Key ID: FD1330AC9F909E85
2 changed files with 12 additions and 4 deletions

View File

@ -12,11 +12,15 @@ nix build
```txt ```txt
nix develop nix develop
nix run .#dev
``` ```
The `nix run .#dev` command will download the AppImage used for building. This will put you in a shell with `appimage-run` and other useful utilities.
It can then be inspected locally with tools like `file` and `appimage-run`, which are offered by the `nix develop` command. It will also download the AppImage that is currently being packaged.
To manually download the AppImage do:
```txt
nix run .#dev
```
### Resources ### Resources

View File

@ -44,7 +44,7 @@
apps.${system} = { apps.${system} = {
dev = { dev = {
program = "${pkgs.writeShellScript "download-appimage" '' program = "${pkgs.writeShellScript "download-appimage" ''
${pkgs.curl}/bin/curl ${src.url} -Lo ${name}.AppImage ${pkgs.curl}/bin/curl ${src.url} -C - -Lo ${name}.AppImage
''}"; ''}";
type = "app"; type = "app";
}; };
@ -56,6 +56,10 @@
appimage-run appimage-run
file file
]; ];
shellHook = ''
${self.apps.${system}.dev.program}
'';
}; };
}; };
}; };