Commit graph

97 commits

Author SHA1 Message Date
Joey Hess
82b57b65cd don't start webapp in the background, so that password prompts can work 2013-05-03 14:59:13 -04:00
Joey Hess
543ffa5b9f work around git/environment/gecos/android suck
I don't know why, but I can't seem to set the environment variables inside
git-annex to work around the git error caused by android's crappy username
and hostname settings. This workaround works, and that's all that's good
about it.
2013-05-03 14:08:26 -04:00
Joey Hess
063e344cbd fix setup of runshell wrapper wrapper 2013-05-03 13:17:01 -04:00
Joey Hess
e3f76de319 better webapp startup, using the terminal app's default command config
This allows the user to turn it off easily, or only start the assistant and
not the webapp.

I was not able to determine why having runshell run the webapp segfaulted.
Strace was not helpful. Oh well, this is better anyway.
2013-05-03 12:39:33 -04:00
Joey Hess
201f802175 set TMPDIR 2013-05-03 11:56:53 -04:00
Joey Hess
cdddc58365 fixes 2013-05-03 11:51:58 -04:00
Joey Hess
214931546c work around weird behavior when starting webapp not in shell
It seems to need nohup, or it segfaults on startup. I suspect the problem
is the command that opens the web browser.
2013-05-03 01:40:18 -04:00
Joey Hess
921d04501f ensure HOME exists
The SD card could be replaced, or it got deleted some other way. Still let
git-annex start, and ensure anything that wants to write to HOME can.
2013-05-03 01:02:38 -04:00
Joey Hess
b3a3273741 improved runshell start
Start webapp in nohup so it doesn't close when window is closed and so it
doesn't output stuff over the shell prompt.
2013-05-03 01:00:00 -04:00
Joey Hess
9116580312 run webapp on startup 2013-05-02 22:42:51 -04:00
Joey Hess
be253aeff9 add a runshell script to the top of the app directory
This is mostly useful when you have adb with root access, to easily start the
git-annex environment in there.
2013-05-02 01:43:22 -04:00
Joey Hess
d983f68911 change the default GIT_ANNEX_ANDROID_SOURCETREE location to be in ~/tmp/ 2013-05-01 22:37:20 -04:00
Joey Hess
9a24728d95 fix build stamps 2013-04-26 16:43:40 -04:00
Joey Hess
4df9036fa2 got XMPP building for Android
Also enable local pairing, which also builds now thanks to WebDAV
fixes to the haskell network library.
2013-04-21 19:10:23 -04:00
Joey Hess
84f0cb2ffc fix unavailable symbols in bionic, should let webdav build 2013-04-19 16:32:16 -04:00
Joey Hess
c3748ae70d got webdav going on android 2013-04-18 19:41:09 -04:00
Joey Hess
f14cb0b896 add import needed on autobuilder 2013-04-18 17:16:05 -04:00
Joey Hess
82dfd632af only one more source file to go before the android webapp links.. but not tonight 2013-04-17 01:32:05 -04:00
Joey Hess
35f2e01c23 Evil Splicer only *thought* he was evil until this commit happened.
So many nasty hacks!
2013-04-16 21:47:08 -04:00
Joey Hess
02459e4c66 yesod-routes stuff for android build 2013-04-15 21:02:51 -04:00
Joey Hess
ed180036d5 add some more modules used by TH splices 2013-04-15 20:49:41 -04:00
Joey Hess
3deeb02430 updated yesod packages to export TH symbols and auto-spliced yesod-form 2013-04-15 17:42:46 -04:00
Joey Hess
737ece771b update 2013-04-15 17:42:39 -04:00
Joey Hess
dd7e35ed97 incremental android builds with the EvilSplicer 2013-04-14 13:43:36 -04:00
Joey Hess
f84b8615e5 deal with $0 having spaces in it 2013-03-20 14:11:36 -04:00
Joey Hess
05dcb95a55 typo 2013-03-20 14:07:51 -04:00
Joey Hess
ff912832c0 reorganize osx app, so it can be put in PATH
Move all the binaries and libraries under a bundle/ subdirectory;
so when it's in PATH only git-annex, runshell, and git-annex-webapp
will be available.
2013-03-20 14:01:05 -04:00
Joey Hess
36b3c4c757 improve linux standalone bundle instuctions, mentioning the PATH setup option 2013-03-20 13:40:57 -04:00
Joey Hess
5f14ad8e36 LD_LIBRARY_PATH todo 2013-03-05 12:02:44 -04:00
Joey Hess
d9459a75b0 expanded some TH 2013-03-01 01:15:53 -04:00
Joey Hess
85db342a13 fall back to hardcoded app location 2013-03-01 00:06:32 -04:00
Joey Hess
1bc5734037 add patches porting necessary Haskell libraries to Android
This goes all the way up to Yesod, but everything above Wai is a real hack
job, removing TH left and right.
2013-02-28 23:43:26 -04:00
Joey Hess
1943bb31ab build fix 2013-02-28 19:46:13 -04:00
Joey Hess
422928394e fix android app upgrade hang
rm was blocked waiting for input
2013-02-28 19:18:56 -04:00
Joey Hess
6a52a47193 fix 2 bugs in android runshell 2013-02-28 19:12:54 -04:00
Joey Hess
e69cb08264 allow reloacting the source tree used for building android
Putting it outside the git-annex directory is useful to me, so I don't
accidentially tar it up into my release tarball.. which almost happened today.
2013-02-28 02:42:59 -04:00
Joey Hess
9b4c98ac52 autostart assistant 2013-02-26 15:42:29 -04:00
Joey Hess
e83808bcf7 shut up update.sh
Its bogus warning and error confuses the autobuilder. The "error" is
non-fatal.
2013-02-26 12:31:54 -04:00
Joey Hess
b328776abf better incremental building of android utilities, for autobuilder
also cleaned up some cruft patches not used
2013-02-25 23:32:19 -04:00
Joey Hess
bde0f5312c parameterize paths 2013-02-25 22:41:54 -04:00
Joey Hess
bf783d141d run system shell for interactive shell
This way PS1 settings etc work.
2013-02-24 14:34:47 -04:00
Joey Hess
61a12ce47f Explicitly run every command as a busybox app
Seems that CONFIG_FEATURE_SH_STANDALONE is not working.
2013-02-24 14:31:43 -04:00
Joey Hess
7711ce5b13 separate targets 2013-02-24 13:52:12 -04:00
Joey Hess
ac0292df95 use C shim to start Android app
This should avoid relying on features of the Android builtin shell,
and so hopefully avoid failures like this one
http://git-annex.branchable.com/design/assistant/blog/day_197__template_haskell/#comment-07f90830f78f6495dcbdf90eb8636129

The C shim sets up busybox, and uses its builtin shell to run runshell.

It's important that busybox be configured with
CONFIG_FEATURE_SH_STANDALONE, so that while runshell is running, it
does not rely on either system utilities, or busybox being already
installed.
2013-02-24 13:27:06 -04:00
Joey Hess
920138d5fb enable ash 2013-02-24 12:33:28 -04:00
Joey Hess
1fbd08db8b remove pause after run
Terminal is configured to pause too.
2013-02-23 14:50:14 -04:00
Joey Hess
e3df7ae212 typo 2013-02-23 14:33:12 -04:00
Joey Hess
acc3c8c157 try to be more robust and allow the user to see most types of failure 2013-02-23 01:08:15 -04:00
Joey Hess
e28016cb0d avoid closing app when terminal exists, to aid crash debugging 2013-02-22 17:19:49 -04:00
Joey Hess
6449e1171b forgot to add this icon 2013-02-22 17:10:41 -04:00