mirror of
https://github.com/sshuttle/sshuttle.git
synced 2024-11-22 07:53:43 +01:00
ui-macos/git-export.do: write the generated app to a branch.
This commit is contained in:
parent
191d97a897
commit
522bc23854
19
ui-macos/git-export.do
Normal file
19
ui-macos/git-export.do
Normal file
@ -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"
|
Loading…
Reference in New Issue
Block a user