add Makefile to build deb

This commit is contained in:
Jesús A. Álvarez 2016-05-27 21:35:28 +02:00
parent 65d505bfb5
commit 49f43e540f
3 changed files with 30 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
build

21
Makefile Normal file
View File

@ -0,0 +1,21 @@
XCODEBUILD=xcodebuild
PROJECT="Mini vMac.xcodeproj"
SCHEME="Mini vMac"
CONFIGURATION=Release
APP="build/Build/Products/$(CONFIGURATION)-iphoneos/Mini vMac.app"
VERSION=`xpath 2>/dev/null Mini\ vMac/Info.plist "/plist/dict/key[.='CFBundleShortVersionString']/following-sibling::*[1]/text()"`
deb: $(APP)
rm -rf build/deb
mkdir -p build/deb/{Applications,DEBIAN}
cp -r $(APP) build/deb/Applications/
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

8
apt-control Normal file
View File

@ -0,0 +1,8 @@
Package: net.namedfork.minivmac
Name: Mini vMac
Architecture: iphoneos-arm
Description: Mini vMac Mac emulator
Depends: firmware (>= 7.0)
Homepage: https://namedfork.net/minivmac
Maintainer: Jesus A. Alvarez <zydeco@namedfork.net>
Author: Jesus A. Alvarez <zydeco@namedfork.net>