From a186da01ba8833c56e60d7aa43365950b73cdc1c Mon Sep 17 00:00:00 2001
From: 82Flex <82flex@gmail.com>
Date: Fri, 8 Mar 2024 00:46:53 +0800
Subject: [PATCH] ci: uses different CFBundleVersion
Signed-off-by: 82Flex <82flex@gmail.com>
---
Makefile | 2 +-
Resources/Info.plist | 4 ++--
TrollSpeed.xcodeproj/project.pbxproj | 8 ++++----
gen-control.sh | 4 ++++
layout/Applications/TrollSpeed.app/Info.plist | 2 +-
layout/DEBIAN/control | 2 +-
supports/Sandbox-Info.plist | 4 ++--
7 files changed, 15 insertions(+), 11 deletions(-)
diff --git a/Makefile b/Makefile
index 81a270f..0ba412d 100644
--- a/Makefile
+++ b/Makefile
@@ -53,7 +53,7 @@ after-package::
$(ECHO_NOTHING)mkdir -p packages $(THEOS_STAGING_DIR)/Payload$(ECHO_END)
$(ECHO_NOTHING)cp -rp $(THEOS_STAGING_DIR)$(THEOS_PACKAGE_INSTALL_PREFIX)/Applications/TrollSpeed.app $(THEOS_STAGING_DIR)/Payload$(ECHO_END)
$(ECHO_NOTHING)defaults delete $(THEOS_STAGING_DIR)/Payload/TrollSpeed.app/Info.plist CFBundleIconName || true$(ECHO_END)
- $(ECHO_NOTHING)defaults write $(THEOS_STAGING_DIR)/Payload/TrollSpeed.app/Info.plist CFBundleVersion -string 10$(ECHO_END)
+ $(ECHO_NOTHING)defaults write $(THEOS_STAGING_DIR)/Payload/TrollSpeed.app/Info.plist CFBundleVersion -string $(shell openssl rand -hex 4)$(ECHO_END)
$(ECHO_NOTHING)plutil -convert xml1 $(THEOS_STAGING_DIR)/Payload/TrollSpeed.app/Info.plist$(ECHO_END)
$(ECHO_NOTHING)cd $(THEOS_STAGING_DIR); zip -qr TrollSpeed_${GIT_TAG_SHORT}.tipa Payload; cd -;$(ECHO_END)
$(ECHO_NOTHING)mv $(THEOS_STAGING_DIR)/TrollSpeed_${GIT_TAG_SHORT}.tipa packages/TrollSpeed_${GIT_TAG_SHORT}.tipa$(ECHO_END)
diff --git a/Resources/Info.plist b/Resources/Info.plist
index 626448e..db11f10 100644
--- a/Resources/Info.plist
+++ b/Resources/Info.plist
@@ -21,7 +21,7 @@
CFBundlePackageType
APPL
CFBundleShortVersionString
- 1.11.7
+ 1.11.8
CFBundleSignature
????
CFBundleURLTypes
@@ -36,7 +36,7 @@
CFBundleVersion
- 1
+ 25f70367
LSApplicationCategoryType
public.app-category.developer-tools
NSHumanReadableCopyright
diff --git a/TrollSpeed.xcodeproj/project.pbxproj b/TrollSpeed.xcodeproj/project.pbxproj
index d9dba1a..bb79184 100644
--- a/TrollSpeed.xcodeproj/project.pbxproj
+++ b/TrollSpeed.xcodeproj/project.pbxproj
@@ -613,7 +613,7 @@
"$(inherited)",
"$(PROJECT_DIR)/libraries",
);
- MARKETING_VERSION = 1.11.7;
+ MARKETING_VERSION = 1.11.8;
PRODUCT_BUNDLE_IDENTIFIER = "ch.xxtou.hudapp-sandbox";
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
@@ -656,7 +656,7 @@
"$(inherited)",
"$(PROJECT_DIR)/libraries",
);
- MARKETING_VERSION = 1.11.7;
+ MARKETING_VERSION = 1.11.8;
PRODUCT_BUNDLE_IDENTIFIER = "ch.xxtou.hudapp-sandbox";
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
@@ -827,7 +827,7 @@
"$(inherited)",
"$(PROJECT_DIR)/libraries",
);
- MARKETING_VERSION = 1.11.7;
+ MARKETING_VERSION = 1.11.8;
PRODUCT_BUNDLE_IDENTIFIER = ch.xxtou.hudapp;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
@@ -871,7 +871,7 @@
"$(inherited)",
"$(PROJECT_DIR)/libraries",
);
- MARKETING_VERSION = 1.11.7;
+ MARKETING_VERSION = 1.11.8;
PRODUCT_BUNDLE_IDENTIFIER = ch.xxtou.hudapp;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
diff --git a/gen-control.sh b/gen-control.sh
index 34bc8e5..2dfece4 100755
--- a/gen-control.sh
+++ b/gen-control.sh
@@ -30,8 +30,12 @@ __EOF__
# Set permissions
chmod 0644 layout/DEBIAN/control
+RAND_BUILD_STR=$(openssl rand -hex 4)
+
# Write the Info.plist file
defaults write $(pwd)/Resources/Info.plist CFBundleShortVersionString $VERSION
+defaults write $(pwd)/Resources/Info.plist CFBundleVersion $RAND_BUILD_STR
plutil -convert xml1 $(pwd)/Resources/Info.plist
defaults write $(pwd)/supports/Sandbox-Info.plist CFBundleShortVersionString $VERSION
+defaults write $(pwd)/supports/Sandbox-Info.plist CFBundleVersion $RAND_BUILD_STR
plutil -convert xml1 $(pwd)/supports/Sandbox-Info.plist
diff --git a/layout/Applications/TrollSpeed.app/Info.plist b/layout/Applications/TrollSpeed.app/Info.plist
index 52a960b..aee2ceb 100644
--- a/layout/Applications/TrollSpeed.app/Info.plist
+++ b/layout/Applications/TrollSpeed.app/Info.plist
@@ -3,7 +3,7 @@
CFBundleShortVersionString
- 1.11.7
+ 1.11.8
CFBundleVersion
1
diff --git a/layout/DEBIAN/control b/layout/DEBIAN/control
index e3ecbaf..4e6c724 100644
--- a/layout/DEBIAN/control
+++ b/layout/DEBIAN/control
@@ -1,6 +1,6 @@
Package: ch.xxtou.hudapp
Name: TrollSpeed
-Version: 1.11.7
+Version: 1.11.8
Section: Tweaks
Depends: firmware (>= 14.0), mobilesubstrate (>= 0.9.7000)
Architecture: iphoneos-arm
diff --git a/supports/Sandbox-Info.plist b/supports/Sandbox-Info.plist
index a9be7b0..aad8b6f 100644
--- a/supports/Sandbox-Info.plist
+++ b/supports/Sandbox-Info.plist
@@ -21,7 +21,7 @@
CFBundlePackageType
APPL
CFBundleShortVersionString
- 1.11.7
+ 1.11.8
CFBundleSignature
????
CFBundleURLTypes
@@ -36,7 +36,7 @@
CFBundleVersion
- 1
+ 25f70367
LSApplicationCategoryType
public.app-category.developer-tools
NSHumanReadableCopyright