Skip to content
This repository has been archived by the owner on Oct 29, 2024. It is now read-only.

Commit

Permalink
ci: uses different CFBundleVersion
Browse files Browse the repository at this point in the history
Signed-off-by: 82Flex <[email protected]>
  • Loading branch information
Lessica committed Mar 7, 2024
1 parent 011056b commit a186da0
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 11 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)
4 changes: 2 additions & 2 deletions Resources/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.11.7</string>
<string>1.11.8</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleURLTypes</key>
Expand All @@ -36,7 +36,7 @@
</dict>
</array>
<key>CFBundleVersion</key>
<string>1</string>
<string>25f70367</string>
<key>LSApplicationCategoryType</key>
<string>public.app-category.developer-tools</string>
<key>NSHumanReadableCopyright</key>
Expand Down
8 changes: 4 additions & 4 deletions TrollSpeed.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -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 = "";
Expand Down Expand Up @@ -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 = "";
Expand Down Expand Up @@ -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 = "";
Expand Down Expand Up @@ -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 = "";
Expand Down
4 changes: 4 additions & 0 deletions gen-control.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion layout/Applications/TrollSpeed.app/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<plist version="1.0">
<dict>
<key>CFBundleShortVersionString</key>
<string>1.11.7</string>
<string>1.11.8</string>
<key>CFBundleVersion</key>
<string>1</string>
</dict>
Expand Down
2 changes: 1 addition & 1 deletion layout/DEBIAN/control
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions supports/Sandbox-Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.11.7</string>
<string>1.11.8</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleURLTypes</key>
Expand All @@ -36,7 +36,7 @@
</dict>
</array>
<key>CFBundleVersion</key>
<string>1</string>
<string>25f70367</string>
<key>LSApplicationCategoryType</key>
<string>public.app-category.developer-tools</string>
<key>NSHumanReadableCopyright</key>
Expand Down

0 comments on commit a186da0

Please sign in to comment.