diff options
author | Avery Pennarun <apenwarr@gmail.com> | 2011-01-22 16:49:19 -0800 |
---|---|---|
committer | Avery Pennarun <apenwarr@gmail.com> | 2011-01-22 16:49:21 -0800 |
commit | 668441adb68d015e6ad452651756b3bee7d44383 (patch) | |
tree | 3a582615d9aa056892d1fa2ad516e1bceccdfbf2 /ui-macos/git-export.do | |
parent | 415be935d4e2ba5cfbcf245a3e5d6ffcaeddbfd6 (diff) | |
parent | d4ccd30c24b717113f1e94c440c0b60cff14f63d (diff) |
Merge branch 'macapp'sshuttle-0.45
A cute little GUI for sshuttle on MacOS, written using pyobjc.
* macapp:
ui-macos: call the main binary MacOS/Sshuttle.
ui-macos/git-export.do: write the generated app to a branch.
ui-macos/default.app.do: get rid of some duplicated files.
ui-macos: Actually prompt for passwords instead of assuming a default.
ui-macos: Don't enable connecting for hosts with Custom but zero subnets.
ui-macos: Smoother log messages in the log window.
ui-macos: Notice when we've connected; make debug logs optional.
ui-macos: Much better connection status reporting.
ui-macos/run.do: a shortcut for running debug.app.
ui-macos/*: "a series of unfortunate events."
Diffstat (limited to 'ui-macos/git-export.do')
-rw-r--r-- | ui-macos/git-export.do | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/ui-macos/git-export.do b/ui-macos/git-export.do new file mode 100644 index 0000000..d8dbb47 --- /dev/null +++ b/ui-macos/git-export.do @@ -0,0 +1,19 @@ +# update a local branch with pregenerated output files, so people can download +# the completed tarballs from github. Since we don't have any real binaries, +# our final distribution package contains mostly blobs from the source code, +# so this doesn't cost us much extra space in the repo. +BRANCH=dist/macos +redo-ifchange 'Sshuttle VPN.app' +git update-ref refs/heads/$BRANCH origin/$BRANCH '' 2>/dev/null || true + +export GIT_INDEX_FILE=$PWD/gitindex.tmp +rm -f "$GIT_INDEX_FILE" +git add -f 'Sshuttle VPN.app' + +MSG="MacOS precompiled app package for $(git describe)" +TREE=$(git write-tree --prefix=ui-macos) +git show-ref refs/heads/$BRANCH >/dev/null && PARENT="-p refs/heads/$BRANCH" +COMMITID=$(echo "$MSG" | git commit-tree $TREE $PARENT) + +git update-ref refs/heads/$BRANCH $COMMITID +rm -f "$GIT_INDEX_FILE"
\ No newline at end of file |