move runtimeScript to separate file why? * make the bash script easier to read * avoid escaping how? * [substitute](https://github.com/NixOS/nixpkgs/blob/master/doc/stdenv/stdenv.chapter.md#substitute-infile-outfile-subs-fun-substitute) * example use in [nix-ccache](https://github.com/edolstra/nix-ccache/blob/48806114a42ef1e7d4c9931097f69f5171f72b92/flake.nix#L28) also avoid the "escape + echo" pattern ```sh echo "${runtimeScriptEscaped}" > $out/bin/nix-portable.zip ``` by using temporary files just my 2 cents. nice tool!