Skip to content
This repository has been archived by the owner on Mar 25, 2023. It is now read-only.

Commit

Permalink
Merge branch 'master' into 1.1-branch
Browse files Browse the repository at this point in the history
  • Loading branch information
inickt committed Apr 20, 2019
2 parents 2844e4a + eac41ce commit 7e54cca
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 2 deletions.
4 changes: 2 additions & 2 deletions LazyMan-iOS.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -666,7 +666,7 @@
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
CODE_SIGN_STYLE = Automatic;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
DEVELOPMENT_TEAM = 8SQNZE245D;
DEVELOPMENT_TEAM = "";
INFOPLIST_FILE = "$(SRCROOT)/LazyMan-iOS/Resources/Info.plist";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = "dev.nickt.LazyMan-iOS";
Expand All @@ -686,7 +686,7 @@
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
CODE_SIGN_STYLE = Automatic;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
DEVELOPMENT_TEAM = 8SQNZE245D;
DEVELOPMENT_TEAM = "";
INFOPLIST_FILE = "$(SRCROOT)/LazyMan-iOS/Resources/Info.plist";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = "dev.nickt.LazyMan-iOS";
Expand Down
37 changes: 37 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
TARGET = LazyMan-iOS
INFO_PLIST = ./build/$(TARGET).app/Info.plist
BUILD_VERSION = $(shell /usr/libexec/PlistBuddy -c "Print CFBundleShortVersionString" "$(INFO_PLIST)")
BUILD_NUMER = $(shell /usr/libexec/PlistBuddy -c "Print CFBundleVersion" "$(INFO_PLIST)")
NAME = $(TARGET)_$(BUILD_VERSION)-$(BUILD_NUMER)

all: ipa deb

archive ./build/$(TARGET).xcarchive:
xcodebuild clean archive -workspace $(TARGET).xcworkspace/ -scheme "$(TARGET)" -archivePath ./build/$(TARGET).xcarchive CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO

app ./build/$(TARGET).app: ./build/$(TARGET).xcarchive
ln -sf $(TARGET).xcarchive/Products/Applications/$(TARGET).app ./build/$(TARGET).app
find . -perm +111 -type f ! -name *.dylib -exec ldid2 -S {} ';'

ipa ./build/$(TARGET).ipa: app
rm -rf ./build/Payload/ ./build/$(NAME).ipa
mkdir -p ./build/Payload/
ln -sf ../$(TARGET).app ./build/Payload/$(TARGET).app
cd ./build/ && zip -r9 $(NAME).ipa Payload/$(TARGET).app
rm -rf ./build/Payload/

deb: app
rm -rf ./build/Deb/ ./build/$(NAME).deb
mkdir -p ./build/Deb/DEBIAN/
mkdir -p ./build/Deb/Applications/
sed 's/$$VERSION/$(BUILD_VERSION)-$(BUILD_NUMER)/' control > ./build/Deb/DEBIAN/control
cp -r ./build/$(TARGET).app ./build/Deb/Applications/$(TARGET).app
find . -name ".DS_Store" -delete
cd ./build/ && dpkg-deb -Zgzip -b "Deb" "$(NAME).deb"
rm -rf ./build/Deb/

clean:
rm -rf ./build/$(TARGET).app ./build/Payload ./build/Deb ./build/*.deb ./build/*.ipa

cleanbuild:
rm -rf ./build/$(TARGET).xcarchive
10 changes: 10 additions & 0 deletions control
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Name: LazyMan-iOS
Package: guru.nickthompson.LazyMan-iOS
Version: $VERSION
Section: Apps
Description: A simple app that lets you stream every live and archived NHL and MLB game from any of your iOS devices for free.
Architecture: iphoneos-arm
Maintainer: Nick Thompson (inickt) <[email protected]>
Author: Nick Thompson (inickt) <[email protected]>
Depends: firmware (>= 9.0)
Icon: file:///Applications/LazyMan-iOS.app/[email protected]

0 comments on commit 7e54cca

Please sign in to comment.