Makefile update

This commit is contained in:
Serhiy Mytrovtsiy
2019-07-04 20:53:18 +02:00
parent ac6a1696b0
commit b06b878335
2 changed files with 31 additions and 29 deletions

View File

@@ -1,46 +1,48 @@
APP = Stats APP = Stats
ITC_USERNAME = AC_USERNAME
ITC_PASSWORD = @keychain:AC_PASSWORD
ITC_PROVIDER= AC_PROVIDER
BUNDLE_ID = eu.exelban.Stats BUNDLE_ID = eu.exelban.Stats
BUILD_PATH = ${PWD}/build ITC_USERNAME = $(AC_USERNAME)
ITC_PASSWORD = @keychain:AC_PASSWORD
ITC_PROVIDER = $(AC_PROVIDER)
RequestUUID = e6c7b954-d9fa-4c74-8927-ba2172c9526e
BUILD_PATH = $(PWD)/build
ARCHIVE_PATH = $(BUILD_PATH)/$(APP).xcarchive ARCHIVE_PATH = $(BUILD_PATH)/$(APP).xcarchive
APP_PATH = "${BUILD_PATH}/${APP}.app" APP_PATH = "$(BUILD_PATH)/$(APP).app"
ZIP_PATH = "${BUILD_PATH}/${APP}.zip" ZIP_PATH = "$(BUILD_PATH)/$(APP).zip"
DMG_PATH = $(PWD)/$(APP).dmg DMG_PATH = $(PWD)/$(APP).dmg
all: clean archive notarize sign build clean all: clean archive notarize sign build clean
clean: clean:
rm -rf ${BUILD_PATH} rm -rf $(BUILD_PATH)
.PHONY: archive .PHONY: archive
archive: clean archive: clean
xcodebuild \ xcodebuild \
-scheme ${APP} \ -scheme $(APP) \
-destination 'platform=OS X,arch=x86_64' \ -destination 'platform=OS X,arch=x86_64' \
-configuration AppStoreDistribution archive \ -configuration AppStoreDistribution archive \
-archivePath ${ARCHIVE_PATH} -archivePath $(ARCHIVE_PATH)
xcodebuild \ xcodebuild \
-exportArchive \ -exportArchive \
-exportOptionsPlist "${PWD}/exportOptions.plist" \ -exportOptionsPlist "$(PWD)/exportOptions.plist" \
-archivePath ${ARCHIVE_PATH} \ -archivePath $(ARCHIVE_PATH) \
-exportPath ${BUILD_PATH} -exportPath $(BUILD_PATH)
ditto -c -k --keepParent ${APP_PATH} ${ZIP_PATH} ditto -c -k --keepParent $(APP_PATH) $(ZIP_PATH)
.PHONY: notarize .PHONY: notarize
notarize: archive notarize:
xcrun altool \ xcrun altool \
--notarize-app \ --notarize-app \
--primary-bundle-id ${BUNDLE_ID} \ --primary-bundle-id $(BUNDLE_ID)\
-itc_provider ${ITC_PROVIDER} \ -itc_provider $(ITC_PROVIDER) \
-u ${ITC_USERNAME} \ -u $(ITC_USERNAME) \
-p ${ITC_PASSWORD} \ -p $(ITC_PASSWORD) \
--file ${ZIP_PATH} --file $(ZIP_PATH)
sleep 380 sleep 380
@@ -68,18 +70,18 @@ build: sign
$(APP_PATH) $(APP_PATH)
rm -rf ./create-dmg rm -rf ./create-dmg
rm -rf $(BUILD_PATH) open $(PWD)
check: check:
xcrun altool \ xcrun altool \
--notarization-info 55fe58d9-d149-4f91-b448-ad8427b90055 \ --notarization-info $(RequestUUID) \
-itc_provider ${ITC_PROVIDER} \ -itc_provider $(ITC_PROVIDER) \
-u ${ITC_USERNAME} \ -u $(ITC_USERNAME) \
-p ${ITC_PASSWORD} -p $(ITC_PASSWORD)
history: history:
xcrun altool \ xcrun altool \
--notarization-history 0 \ --notarization-history 0 \
-itc_provider ${ITC_PROVIDER} \ -itc_provider $(ITC_PROVIDER) \
-u ${ITC_USERNAME} \ -u $(ITC_USERNAME) \
-p ${ITC_PASSWORD} -p $(ITC_PASSWORD)

View File

@@ -19,7 +19,7 @@
<key>CFBundleShortVersionString</key> <key>CFBundleShortVersionString</key>
<string>1.2.2</string> <string>1.2.2</string>
<key>CFBundleVersion</key> <key>CFBundleVersion</key>
<string>1</string> <string>7</string>
<key>LSApplicationCategoryType</key> <key>LSApplicationCategoryType</key>
<string>public.app-category.utilities</string> <string>public.app-category.utilities</string>
<key>LSMinimumSystemVersion</key> <key>LSMinimumSystemVersion</key>