-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (19 loc) · 1.41 KB
/
Makefile
File metadata and controls
28 lines (19 loc) · 1.41 KB
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
# Note - this does not work properly as of Dec 2019 to sign and notarize for Apple. Use GUI tools instead.
ARCHIVE=distribution/VelocitekControlCenter.xcarchive
$(ARCHIVE):
mkdir -p distribution
xcodebuild -project "VelocitekControlCenter/Velocitek Control Center.xcodeproj" -scheme 'Velocitek Control Center' -archivePath $(ARCHIVE) archive
appstore: $(ARCHIVE)
mkdir -p distribution/appstore
xcodebuild -project "VelocitekControlCenter/Velocitek Control Center.xcodeproj" -exportArchive -archivePath $(ARCHIVE) -exportPath "distribution/appstore/VelocitekControlCenter.ipa" -exportOptionsPlist exportAppStore.plist
appstoreupload:
mkdir -p distribution/appstore
xcodebuild -project "VelocitekControlCenter/Velocitek Control Center.xcodeproj" -exportArchive -archivePath $(ARCHIVE) -exportPath "distribution/appstore/VelocitekControlCenter.ipa" -exportOptionsPlist exportAppStoreUpload.plist
dmg: $(ARCHIVE)
mkdir -p distribution/dmg
xcodebuild -project "VelocitekControlCenter/Velocitek Control Center.xcodeproj" -exportArchive -archivePath $(ARCHIVE) -exportPath distribution/dmg/"VelocitekControlCenter.ipa" -exportOptionsPlist exportDeveloperId.plist
cd dmg-maker-bash && ./create-and-sign-dmg.sh "../distribution/dmg/VelocitekControlCenter.ipa/Velocitek Control Center.app" ../distribution/dmg/VelocitekControlCenter.dmg
clean:
rm -fr VelocitekControlCenter/build
rm -fr distribution
release: clean appstore dmg