summaryrefslogtreecommitdiffstats
path: root/ui-macos/default.app.do
blob: 6acb47d091362add12a3055a22257ef8c2d12928 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
TOP=$PWD
redo-ifchange sources.list
redo-ifchange Info.plist bits/runpython bits/run \
	$(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" "$TOP/bits/run" MacOS/

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)