Commit Graph

131 Commits

Author SHA1 Message Date
Matthew Bauer
5caec2e85a
Merge pull request #64 from symphorien/fix-system
symlink /bin to /usr/bin
2020-07-23 11:08:09 -05:00
Symphorien Gibol
2d68863003 symlink /bin to /usr/bin
If the content of the appimage contains $out/bin/sh, then /bin/sh exists
and system() works.
2020-07-21 11:25:44 +02:00
Matthew Bauer
abd463366b Release 0.4.0 2020-05-20 11:06:15 -05:00
Matthew Bauer
5ba831bd8d Quote properly in nix-run.sh 2020-05-09 15:30:16 -05:00
Matthew Bauer
bdd1a0fe79 Actually exec on linux 2020-05-09 15:30:02 -05:00
Matthew Bauer
e0ea9901f7 Fix Exec= detection in nix-run.sh
Fixes #59
2020-05-09 15:28:40 -05:00
Matthew Bauer
2a8b914e1b Revert "Merge pull request #48 from haslersn/enhancement/modern-cli"
This reverts commit 4300437ede, reversing
changes made to f028e10ffb.
2020-05-09 15:20:29 -05:00
Matthew Bauer
4300437ede
Merge pull request #48 from haslersn/enhancement/modern-cli
nix-bundle.sh: Modernize CLI
2019-11-03 12:00:18 -05:00
Matthew Bauer
f028e10ffb
Merge pull request #51 from tomberek/preserve_pwd
Preserve PWD
2019-07-15 17:55:17 -04:00
tom@rebelliondefense.com
25b7dfa407 Preserve PWD 2019-07-13 16:27:04 -04:00
Matthew Bauer
0912342bf4
Merge pull request #49 from tomberek/bundler
Allow bundle to handle an evaluated nix expression
2019-06-29 18:58:26 -04:00
Tom Bereknyei
ee29621831 Simplify appimage generation 2019-06-26 17:32:46 -04:00
Tom Bereknyei
9323b9ca68 Remove symbolic link resolution, closure should contain all links 2019-06-26 11:43:30 -04:00
haslersn
bb26366fea nix-bundle.sh: Also take app-specific extra targets from the given FILE or default
Previously, they were just taken from the `import <nixpkgs> {}` inside `./default.nix`.
2019-06-25 23:52:08 +02:00
haslersn
3e54397176 nix-bundle.sh: Quote target paths 2019-06-25 23:52:08 +02:00
haslersn
8a7793bf7a nix-bundle.sh: Fix a bug where the wrong nix build out-link was read 2019-06-25 23:50:10 +02:00
Tom Bereknyei
d18d34c2db Allow bundle to handle an evaluated nix expression
Example (note the --arg vs --argstr for the package argument):
nix-build appimage-bundle.nix --arg package 'with import <nixpkgs>{}; writers.writePython3Bin "helloThere.py" {} "print(1)\n"' --argstr exec helloThere.py
2019-06-25 16:10:54 -04:00
haslersn
138ff3a395 nix-bundle.sh: Add a default for --bin 2019-06-24 20:01:14 +02:00
haslersn
14157e052f nix-bundle.sh: Modernize CLI
TODOs:

* [ ] Update `README.md`
* [ ] What about `nix2appimage.sh`?
2019-06-24 19:52:00 +02:00
Matthew Bauer
f7e25e668f
Merge pull request #46 from tomberek/bundler
Appimage bundler
2019-06-24 01:16:34 -04:00
Tom Bereknyei
943985abb0 Appimage bundler
Create fake icon and .desktop to bundle most CLI applications
Usage: nix-build appimage-bundle.nix --argstr package hello --argstr exec hello
2019-06-23 23:35:38 -04:00
Matthew Bauer
e65faad14f
Merge pull request #42 from input-output-hk/add-shebang
fix the startup script to run on dash based systems
2019-01-30 22:30:54 -05:00
Matthew Bauer
523fb85c51
Merge pull request #43 from balsoft/patch-1
Pass /root through chroot
2019-01-30 22:30:31 -05:00
Александр Бантьев
69c5553aeb
Pass /root through chroot
This PR adds a `/root:root` mapping so that users with UID 0 can run bundles that use `$HOME`. Related to #33 .
2019-01-30 22:30:43 +03:00
Michael Bishop
e8d57a08bc
fix the startup script to run on dash based systems 2018-12-07 05:00:32 -04:00
Matthew Bauer
113d8c6b42
Merge pull request #41 from input-output-hk/escape-hatch
add an escape-hatch option to allow things like xdg-open to work inside the sandbox
2018-10-21 19:41:26 -05:00
Michael Bishop
7f12322399
add an escape-hatch option to allow things like xdg-open to work inside the sandbox 2018-10-19 17:05:29 -03:00
Matthew Bauer
014d3a6209 Merge branch 'shared-tmpdir' 2018-04-25 14:30:07 -05:00
Matthew Bauer
ebbcafa214 Cleanup logic 2018-04-25 14:29:51 -05:00
Matthew Bauer
89185dbd8f Add home dir map 2018-04-10 13:04:01 -05:00
Matthew Bauer
d371f1a5a6 Store temp files in $HOME/.cache
This hopefully means we can reuse it.
2018-04-10 12:58:56 -05:00
Matthew Justin Bauer
107eec3dc9
Merge pull request #32 from input-output-hk/dont-leak-setgroups
dont leak the /proc/self/setgroups fd
2018-04-05 13:56:41 -05:00
Michael Bishop
8a344343ba
dont leak the /proc/self/setgroups fd 2018-04-05 15:24:19 -03:00
Matthew Bauer
5e49fbc4a0 Cleanup Nix bundling
The special case of Nix bundling is useful for handling the hidden
dependencies of Nix. It will automatically add them for you when you
do this:

$ nix-bundle nix /bin/nix
2018-04-04 16:19:32 -05:00
Matthew Bauer
a5060764cb Add etc and usr to mounts
Seems to be okay to do this. Sacrifices purity a little bit though
2018-04-04 16:18:47 -05:00
Matthew Bauer
9e64967a3b Indentation and cleanup 2018-04-04 15:34:43 -05:00
Matthew Bauer
e33eb8feda Fix arg passing in nix-bundle 2018-04-04 15:04:37 -05:00
Matthew Justin Bauer
496f2b5247
Merge pull request #31 from input-output-hk/unshare-eperm
give directions on how to fix namespaces when they are disabled
2018-04-04 12:38:10 -05:00
Michael Bishop
f2fa3ec8e2
give directions on how to fix namespaces when they are disabled 2018-04-04 14:32:40 -03:00
Matthew Justin Bauer
27eff80437
Merge pull request #30 from input-output-hk/auto-cleanup
auto-delete the tmpdir when finished
2018-04-04 10:28:28 -05:00
Michael Bishop
982cb122d9
auto-delete the tmpdir when finished 2018-04-04 07:33:01 -03:00
Matthew Justin Bauer
55c6a07db2
Update README.md 2018-03-08 12:37:54 -06:00
Matthew Bauer
fa9dd9f4c8 Bump to 0.3.0 2018-03-07 22:27:24 -06:00
Matthew Justin Bauer
393f4153e9
Merge pull request #28 from dtzWill/dtz-fixups
Misc fixups that may be of interest (don't merge as-is)
2018-03-03 19:09:16 -06:00
Will Dietz
ff4c7ede61 appimagetool: patch all bins, fix w/version 10 2018-03-03 17:46:12 -06:00
Will Dietz
6993f2a0cb appimagetool: 7 -> 10 2018-03-03 17:46:12 -06:00
Will Dietz
cb424030eb Add simple helper for testing AppImage exec on NixOS 2018-03-03 17:46:12 -06:00
Will Dietz
f9642796e8 AppRun: Don't try to setenv with NULL pointers, fix crash 2018-03-03 17:46:12 -06:00
Will Dietz
b2bacc26dd cleanup dynamicLinker references 2018-03-03 17:46:12 -06:00
Will Dietz
bb7503fae6 Fix with latest nixpkgs, use musl-native pkgs 2018-03-03 17:46:12 -06:00