From 49f43e540fe6ab7cca0a9d251d4d553681dd5f5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jesu=CC=81s=20A=2E=20A=CC=81lvarez?= Date: Fri, 27 May 2016 21:35:28 +0200 Subject: [PATCH] add Makefile to build deb --- .gitignore | 1 + Makefile | 21 +++++++++++++++++++++ apt-control | 8 ++++++++ 3 files changed, 30 insertions(+) create mode 100644 .gitignore create mode 100644 Makefile create mode 100644 apt-control diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..378eac2 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +build diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..eae0da5 --- /dev/null +++ b/Makefile @@ -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 diff --git a/apt-control b/apt-control new file mode 100644 index 0000000..1219204 --- /dev/null +++ b/apt-control @@ -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 +Author: Jesus A. Alvarez