chore: 版本升级至 1.2 并优化构建脚本版本读取
This commit is contained in:
parent
239403e75c
commit
71e56f8d2b
|
|
@ -353,7 +353,7 @@
|
|||
buildSettings = {
|
||||
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
||||
COMBINE_HIDPI_IMAGES = YES;
|
||||
CURRENT_PROJECT_VERSION = 2;
|
||||
CURRENT_PROJECT_VERSION = 3;
|
||||
FEISHU_APP_ID = cli_aacb82a1c0b8dcc0;
|
||||
FEISHU_APP_SECRET = jUkU9ygRuQ0KaZFV2BSPfe33iXCahzNM;
|
||||
FEISHU_BASE_DOMAIN = xmi5p6bgsnf8.feishu.cn;
|
||||
|
|
@ -364,7 +364,7 @@
|
|||
"@executable_path/../Frameworks",
|
||||
);
|
||||
MACOSX_DEPLOYMENT_TARGET = 14.0;
|
||||
MARKETING_VERSION = 1.1;
|
||||
MARKETING_VERSION = 1.2;
|
||||
PRODUCT_BUNDLE_IDENTIFIER = com.xorbitlab.bugger;
|
||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||
SWIFT_EMIT_LOC_STRINGS = YES;
|
||||
|
|
@ -377,7 +377,7 @@
|
|||
buildSettings = {
|
||||
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
||||
COMBINE_HIDPI_IMAGES = YES;
|
||||
CURRENT_PROJECT_VERSION = 2;
|
||||
CURRENT_PROJECT_VERSION = 3;
|
||||
FEISHU_APP_ID = cli_aacb82a1c0b8dcc0;
|
||||
FEISHU_APP_SECRET = jUkU9ygRuQ0KaZFV2BSPfe33iXCahzNM;
|
||||
FEISHU_BASE_DOMAIN = xmi5p6bgsnf8.feishu.cn;
|
||||
|
|
@ -388,7 +388,7 @@
|
|||
"@executable_path/../Frameworks",
|
||||
);
|
||||
MACOSX_DEPLOYMENT_TARGET = 14.0;
|
||||
MARKETING_VERSION = 1.1;
|
||||
MARKETING_VERSION = 1.2;
|
||||
PRODUCT_BUNDLE_IDENTIFIER = com.xorbitlab.bugger;
|
||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||
SWIFT_EMIT_LOC_STRINGS = YES;
|
||||
|
|
|
|||
|
|
@ -15,9 +15,9 @@
|
|||
<key>CFBundlePackageType</key>
|
||||
<string>APPL</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>1.1</string>
|
||||
<string>1.2</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>2</string>
|
||||
<string>3</string>
|
||||
<key>LSMinimumSystemVersion</key>
|
||||
<string>14.0</string>
|
||||
<key>LSUIElement</key>
|
||||
|
|
|
|||
|
|
@ -6,7 +6,6 @@ cd "$(dirname "$0")/.."
|
|||
|
||||
PROJECT="Bugger.xcodeproj"
|
||||
SCHEME="Bugger"
|
||||
VERSION="1.1"
|
||||
BUILD_DIR="build"
|
||||
APP_NAME="Bugger.app"
|
||||
|
||||
|
|
@ -36,8 +35,16 @@ if [ -z "$APP_PATH" ]; then
|
|||
exit 1
|
||||
fi
|
||||
|
||||
# Read the marketing version from the built app so the DMG name stays in
|
||||
# sync with MARKETING_VERSION / CFBundleShortVersionString automatically.
|
||||
VERSION=$(/usr/libexec/PlistBuddy -c "Print :CFBundleShortVersionString" "$APP_PATH/Contents/Info.plist")
|
||||
if [ -z "$VERSION" ]; then
|
||||
echo "ERROR: Could not read version from $APP_PATH/Contents/Info.plist"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo ""
|
||||
echo "=== Built: $APP_PATH ==="
|
||||
echo "=== Built: $APP_PATH (v$VERSION) ==="
|
||||
echo ""
|
||||
|
||||
# Copy to build root
|
||||
|
|
|
|||
Loading…
Reference in New Issue