forked from timdoug/unpkg
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
35 lines (30 loc) · 712 Bytes
/
Makefile
File metadata and controls
35 lines (30 loc) · 712 Bytes
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
29
30
31
32
33
34
35
VERSION=`cat VERSION`
all: unpkg.app
VERSION:
@echo "Please create a VERSION file with the desired version number."
@echo "e.g., echo \"4.5\" >VERSION"
@echo
@exit 1
unpkg.app: unpkg.py VERSION
/usr/local/bin/platypus \
-a unpkg \
-I org.timdoug.unpkg \
-u timdoug \
-p /usr/bin/python3 \
-c unpkg.py \
-V ${VERSION} \
-i appIcon.icns \
-D \
-Z \
-T 'com.apple.installer-package-archive' \
-o 'Progress Bar' \
-y \
unpkg.app
zip: unpkg.app
mkdir unpkg\ ${VERSION}
cp -R unpkg.app COPYING unpkg\ ${VERSION}
cp End-user\ Read\ Me.rtf unpkg\ ${VERSION}/Read\ Me.rtf
zip -r unpkg-${VERSION}.zip unpkg\ ${VERSION}
rm -rf unpkg\ ${VERSION}
clean:
rm -rf unpkg.app unpkg-*.zip