mirror of
https://github.com/sshuttle/sshuttle.git
synced 2024-11-25 17:33:15 +01:00
d4ccd30c24
That way we can 'killall Sshuttle' and so on, and it looks right in the process list.
29 lines
607 B
Plaintext
29 lines
607 B
Plaintext
TOP=$PWD
|
|
redo-ifchange sources.list
|
|
redo-ifchange Info.plist bits/runpython \
|
|
$(while read name newname; do echo "$name"; done <sources.list)
|
|
|
|
rm -rf "$1.app"
|
|
mkdir "$1.app" "$1.app/Contents"
|
|
cd "$1.app/Contents"
|
|
|
|
cp "$TOP/Info.plist" .
|
|
|
|
mkdir MacOS
|
|
cp "$TOP/bits/runpython" MacOS/Sshuttle
|
|
|
|
mkdir Resources
|
|
|
|
cd "$TOP"
|
|
while read name newname; do
|
|
[ -z "$name" ] && continue
|
|
: "${newname:=$name}"
|
|
outname=$1.app/Contents/Resources/$newname
|
|
outdir=$(dirname "$outname")
|
|
[ -d "$outdir" ] || mkdir "$outdir"
|
|
cp "${name-$newname}" "$outname"
|
|
done <sources.list
|
|
|
|
cd "$1.app"
|
|
redo-ifchange $(find . -type f)
|