minivmac4ios/Makefile

26 lines
1014 B
Makefile
Raw Permalink Normal View History

2016-05-27 19:35:28 +00:00
XCODEBUILD=xcodebuild
PROJECT="Mini vMac.xcodeproj"
SCHEME="Mini vMac"
CONFIGURATION=Release
APP="build/Build/Products/$(CONFIGURATION)-iphoneos/Mini vMac.app"
2022-05-26 17:50:24 +00:00
VERSION=`plutil -extract CFBundleShortVersionString raw $(APP)/Info.plist -o -`
2016-05-28 22:29:22 +00:00
LDID=ldid
2016-05-27 19:35:28 +00:00
deb: $(APP)
rm -rf build/deb
mkdir -p build/deb/{Applications,DEBIAN}
cp -r $(APP) build/deb/Applications/
2016-05-28 22:29:22 +00:00
rm -f "build/deb/Applications/Mini vMac.app/embedded.mobileprovision"
find build/deb/Applications -name _CodeSignature -exec rm -rvf {} +
find build/deb/Applications -type f -perm -111 -exec $(LDID) {} \;
2016-05-27 19:35:28 +00:00
cp apt-control build/deb/DEBIAN/control
echo Installed-Size: `du -ck build/deb | tail -1 | cut -f 1` >> build/deb/DEBIAN/control
echo Version: $(VERSION) >> build/deb/DEBIAN/control
COPYFILE_DISABLE="" COPY_EXTENDED_ATTRIBUTES_DISABLE="" dpkg-deb -Zgzip -b build/deb build/minivmac4ios-$(VERSION).deb
clean:
rm -rf build
$(APP):
$(XCODEBUILD) -project $(PROJECT) -scheme $(SCHEME) -configuration $(CONFIGURATION) -derivedDataPath build