mirror of
https://github.com/zydeco/minivmac4ios.git
synced 2024-12-22 04:30:09 +00:00
add Makefile to build deb
This commit is contained in:
parent
65d505bfb5
commit
49f43e540f
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
build
|
21
Makefile
Normal file
21
Makefile
Normal 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
8
apt-control
Normal 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>
|
Loading…
Reference in New Issue
Block a user