mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-09 06:43:25 +01:00
[Beta-Updates]: added beta commit id fetch into makefile for revision
This commit is contained in:
28
Makefile
28
Makefile
@@ -156,31 +156,33 @@ test:
|
|||||||
|
|
||||||
## -- Building --
|
## -- Building --
|
||||||
|
|
||||||
|
# Fetch the latest commit ID globally
|
||||||
|
BETA_COMMIT_ID := $(if $(IS_BETA),$(shell git rev-parse --short HEAD), "NONE")
|
||||||
|
|
||||||
# Fetch the latest commit ID if IS_BETA is defined
|
# Fetch the latest commit ID if IS_BETA is defined
|
||||||
fetch_commit_id:
|
print_commit_id:
|
||||||
@echo ""
|
@echo ""
|
||||||
@if [ -n "$$IS_BETA" ]; then \
|
@if [ -n "$(IS_BETA)" ]; then \
|
||||||
echo "'IS_BETA' is defined. Fetching the latest commit ID from HEAD..."; \
|
echo "'IS_BETA' is defined. Fetched the latest commit ID from HEAD..."; \
|
||||||
export COMMIT_ID=$$(git rev-parse --short HEAD); \
|
echo " Commit ID: $(BETA_COMMIT_ID)"; \
|
||||||
echo "Commit ID: $$COMMIT_ID"; \
|
|
||||||
else \
|
else \
|
||||||
echo "'IS_BETA' is not defined. Skipping commit ID fetch."; \
|
echo "'IS_BETA' is not defined. Skipping commit ID fetch."; \
|
||||||
fi
|
fi
|
||||||
@echo ""
|
@echo ""
|
||||||
|
|
||||||
# Print release type based on the presence of COMMIT_ID
|
# Print release type based on the presence of BETA_COMMIT_ID
|
||||||
print_release_type:
|
print_release_type:
|
||||||
@if [ -z "$$COMMIT_ID" ]; then \
|
@if [ -z "$(BETA_COMMIT_ID)" ]; then \
|
||||||
echo ">>>>>>>> This is STABLE release <<<<<<<<<"; \
|
echo ">>>>>>>> This is now a STABLE release because BETA_COMMIT_ID = $(BETA_COMMIT_ID) <<<<<<<<<"; \
|
||||||
echo " Using default MARKETING_VERSION from project.pbxproj."; \
|
echo " Using default MARKETING_VERSION from project.pbxproj."; \
|
||||||
else \
|
else \
|
||||||
echo ">>>>>>>> This is ALPHA/BETA release for commitID = $$COMMIT_ID <<<<<<<<<"; \
|
echo ">>>>>>>> This is now a BETA release for BETA_COMMIT_ID = $(BETA_COMMIT_ID) <<<<<<<<<"; \
|
||||||
echo " Building with MARKETING_VERSION=$$COMMIT_ID"; \
|
echo " Building with MARKETING_VERSION=$(BETA_COMMIT_ID)"; \
|
||||||
fi
|
fi
|
||||||
@echo ""
|
@echo ""
|
||||||
|
|
||||||
# Build target with the fetch_commit_id dependency
|
# Build target with the print_commit_id dependency
|
||||||
build: fetch_commit_id print_release_type
|
build: print_commit_id print_release_type
|
||||||
@xcodebuild -workspace AltStore.xcworkspace \
|
@xcodebuild -workspace AltStore.xcworkspace \
|
||||||
-scheme SideStore \
|
-scheme SideStore \
|
||||||
-sdk iphoneos \
|
-sdk iphoneos \
|
||||||
@@ -191,7 +193,7 @@ build: fetch_commit_id print_release_type
|
|||||||
DEVELOPMENT_TEAM=XYZ0123456 \
|
DEVELOPMENT_TEAM=XYZ0123456 \
|
||||||
ORG_IDENTIFIER=com.SideStore \
|
ORG_IDENTIFIER=com.SideStore \
|
||||||
DWARF_DSYM_FOLDER_PATH="." \
|
DWARF_DSYM_FOLDER_PATH="." \
|
||||||
MARKETING_VERSION=$$COMMIT_ID
|
MARKETING_VERSION=$(BETA_COMMIT_ID)
|
||||||
|
|
||||||
fakesign:
|
fakesign:
|
||||||
rm -rf archive.xcarchive/Products/Applications/SideStore.app/Frameworks/AltStoreCore.framework/Frameworks/
|
rm -rf archive.xcarchive/Products/Applications/SideStore.app/Frameworks/AltStoreCore.framework/Frameworks/
|
||||||
|
|||||||
Reference in New Issue
Block a user