mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
Temp
This commit is contained in:
parent
308a0b949c
commit
681565e7f9
16
Makefile
16
Makefile
@ -1,6 +1,15 @@
|
||||
.PHONY : build build_arm64 build_verbose targets project kill_xcode clean
|
||||
.PHONY : check_env build build_arm64 package_arm64 build_buckdebug build_verbose kill_xcode clean project project_buckdebug
|
||||
|
||||
BUCK_OPTIONS=\
|
||||
--config custom.apiId="${TELEGRAM_API_ID}" \
|
||||
--config custom.apiHash="${TELGRAM_API_HASH}" \
|
||||
--config custom.hockeyAppId="${TELGRAM_HOCKEYAPP_ID}" \
|
||||
--config custom.isInternalBuild="${TELEGRAM_IS_INTERNAL_BUILD}" \
|
||||
--config custom.isAppStoreBuild="${TELEGRAM_IS_APPSTORE_BUILD}" \
|
||||
--config custom.appStoreId="${TELEGRAM_APPSTORE_ID}" \
|
||||
--config custom.appSpecificUrlScheme="${TELEGRAM_APP_SPECIFIC_URL_SCHEME}" \
|
||||
--config custom.buildNumber="${TELEGRAM_BUILD_NUMBER}"
|
||||
|
||||
BUCK_OPTIONS=--config custom.apiId="${TELEGRAM_API_ID}" --config custom.apiHash="${TELGRAM_API_HASH}" --config custom.hockeyAppId="${TELGRAM_HOCKEYAPP_ID}" --config custom.isInternalBuild="${TELEGRAM_IS_INTERNAL_BUILD}" --config custom.isAppStoreBuild="${TELEGRAM_IS_APPSTORE_BUILD}" --config custom.appStoreId="${TELEGRAM_APPSTORE_ID}" --config custom.appSpecificUrlScheme="${TELEGRAM_APP_SPECIFIC_URL_SCHEME}" --config custom.buildNumber="${TELEGRAM_BUILD_NUMBER}"
|
||||
BUCK=/Users/peter/build/buck-next/buck/buck-out/gen/programs/buck.pex
|
||||
|
||||
check_env:
|
||||
@ -23,9 +32,6 @@ build_buckdebug: check_env
|
||||
build_verbose: check_env
|
||||
$(BUCK) build //:AppPackage#iphoneos-arm64 --verbose 7 ${BUCK_OPTIONS}
|
||||
|
||||
targets:
|
||||
$(BUCK) targets //...
|
||||
|
||||
kill_xcode:
|
||||
killall Xcode || true
|
||||
killall Simulator || true
|
||||
|
@ -38,7 +38,8 @@ APP_PATH="$UNPACKED_PATH/Payload/Telegram.app"
|
||||
FRAMEWORKS_DIR="$APP_PATH/Frameworks"
|
||||
|
||||
rm -rf "$IPA_PATH.original.unpacked/SwiftSupport/iphoneos/"*
|
||||
rm -rf "$FRAMEWORKS_DIR"/*
|
||||
rm -rf "$IPA_PATH.original.unpacked/Symbols/"*
|
||||
rm -rf "$FRAMEWORKS_DIR/"*
|
||||
|
||||
for DEPENDENCY in $(${BUCK} query "kind('apple_library|apple_binary', deps('//:Telegram#$PLATFORM_FLAVORS', 1))" ${BUCK_OPTIONS}); do
|
||||
case "$DEPENDENCY" in
|
||||
@ -63,7 +64,7 @@ for LIB in $(ls "$FRAMEWORKS_DIR"/*.dylib); do
|
||||
strip -S -T "$LIB"
|
||||
done
|
||||
|
||||
xcrun swift-stdlib-tool --scan-folder "$IPA_PATH.original.unpacked/Payload/Telegram.app" --scan-folder "$IPA_PATH.original.unpacked/Payload/Telegram.app/Frameworks" --strip-bitcode --platform iphoneos --copy --destination "$IPA_PATH.original.unpacked/SwiftSupport/iphoneos"
|
||||
xcrun swift-stdlib-tool --scan-folder "$IPA_PATH.original.unpacked/Payload/Telegram.app" --scan-folder "$IPA_PATH.original.unpacked/Payload/Telegram.app/Frameworks" --scan-folder "$IPA_PATH.original.unpacked/Payload/Telegram.app/PlugIns" --strip-bitcode --platform iphoneos --copy --destination "$IPA_PATH.original.unpacked/SwiftSupport/iphoneos"
|
||||
|
||||
for LIB in $(ls "$IPA_PATH.original.unpacked/SwiftSupport/iphoneos/"*.dylib); do
|
||||
codesign --remove-signature "$LIB"
|
||||
|
Loading…
x
Reference in New Issue
Block a user