updated readme and automatically download appimage
This commit is contained in:
parent
044bcc975b
commit
fd8519482d
10
README.md
10
README.md
@ -12,11 +12,15 @@ nix build
|
||||
|
||||
```txt
|
||||
nix develop
|
||||
nix run .#dev
|
||||
```
|
||||
|
||||
The `nix run .#dev` command will download the AppImage used for building.
|
||||
It can then be inspected locally with tools like `file` and `appimage-run`, which are offered by the `nix develop` command.
|
||||
This will put you in a shell with `appimage-run` and other useful utilities.
|
||||
It will also download the AppImage that is currently being packaged.
|
||||
To manually download the AppImage do:
|
||||
|
||||
```txt
|
||||
nix run .#dev
|
||||
```
|
||||
|
||||
### Resources
|
||||
|
||||
|
@ -44,7 +44,7 @@
|
||||
apps.${system} = {
|
||||
dev = {
|
||||
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";
|
||||
};
|
||||
@ -56,6 +56,10 @@
|
||||
appimage-run
|
||||
file
|
||||
];
|
||||
|
||||
shellHook = ''
|
||||
${self.apps.${system}.dev.program}
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user