mirror of
https://github.com/fromchat-messenger/app.git
synced 2026-09-22 19:15:05 +03:00
Fix release script
This commit is contained in:
@@ -17,9 +17,9 @@
|
|||||||
<key>CFBundlePackageType</key>
|
<key>CFBundlePackageType</key>
|
||||||
<string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>
|
<string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>
|
||||||
<key>CFBundleShortVersionString</key>
|
<key>CFBundleShortVersionString</key>
|
||||||
<string>0.2</string>
|
<string>0.2.1</string>
|
||||||
<key>CFBundleVersion</key>
|
<key>CFBundleVersion</key>
|
||||||
<string>02</string>
|
<string>021</string>
|
||||||
<key>LSRequiresIPhoneOS</key>
|
<key>LSRequiresIPhoneOS</key>
|
||||||
<true/>
|
<true/>
|
||||||
<key>NSAppTransportSecurity</key>
|
<key>NSAppTransportSecurity</key>
|
||||||
|
|||||||
+11
-8
@@ -114,31 +114,34 @@ build_ios() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
substep "Xcode Archiving (Unsigned)..."
|
substep "Xcode Archiving (Unsigned)..."
|
||||||
|
|
||||||
|
mkdir -p build/ios
|
||||||
|
|
||||||
if xcodebuild -project "$IOS_PROJECT_DIR/iosApp.xcodeproj" \
|
if xcodebuild -project "$IOS_PROJECT_DIR/iosApp.xcodeproj" \
|
||||||
-scheme iOS \
|
-scheme iOS \
|
||||||
-configuration Release \
|
-configuration Release \
|
||||||
-sdk iphoneos \
|
-sdk iphoneos \
|
||||||
-destination 'generic/platform=iOS' \
|
-destination 'generic/platform=iOS' \
|
||||||
-derivedDataPath build-output \
|
-derivedDataPath build/ios \
|
||||||
CODE_SIGNING_ALLOWED=NO \
|
CODE_SIGNING_ALLOWED=NO \
|
||||||
CODE_SIGNING_REQUIRED=NO \
|
CODE_SIGNING_REQUIRED=NO \
|
||||||
CODE_SIGNING_ENTITLEMENTS="" \
|
CODE_SIGNING_ENTITLEMENTS="" \
|
||||||
clean build > ios_build.log 2>&1; then
|
build > build/ios/build.log 2>&1; then
|
||||||
|
|
||||||
success "Xcode build successful."
|
success "Xcode build successful."
|
||||||
else
|
else
|
||||||
error "Xcode build failed. Check ios_build.log"
|
error "Xcode build failed. Check build/ios/build.log"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
substep "Packaging IPA for TrollStore..."
|
substep "Packaging IPA for TrollStore..."
|
||||||
mkdir -p Payload
|
mkdir -p build/ios/Payload
|
||||||
APP_PATH=$(find build-output -name "*.app" -type d | head -n 1)
|
APP_PATH=$(find build/ios -name "*.app" -type d | head -n 1)
|
||||||
if [[ -n "$APP_PATH" ]]; then
|
if [[ -n "$APP_PATH" ]]; then
|
||||||
cp -r "$APP_PATH" Payload/
|
cp -r "$APP_PATH" build/ios/Payload/
|
||||||
IPA_NAME="FromChat-$TAG-ios-unsigned.ipa"
|
IPA_NAME="FromChat-$TAG-ios-unsigned.ipa"
|
||||||
zip -r "releases/$IPA_NAME" Payload > /dev/null
|
zip -r "releases/$IPA_NAME" build/ios/Payload > /dev/null
|
||||||
rm -rf Payload
|
rm -rf build/ios/Payload
|
||||||
IOS_ASSET="releases/$IPA_NAME"
|
IOS_ASSET="releases/$IPA_NAME"
|
||||||
success "iOS IPA ready: ${CYAN}$IPA_NAME${NC}"
|
success "iOS IPA ready: ${CYAN}$IPA_NAME${NC}"
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user