mirror of
https://github.com/aljazceru/breez-sdk-liquid.git
synced 2025-12-18 22:44:22 +01:00
* Publish flutter artifacts and package * Publish dart package * Add LICENCE * Force rm * Don't copy lock files * Fix output directory * Fix podspec name * Pass SWIFT_RELEASE_TOKEN * Fix overrides indentation * Update package version on CMake script Update example dependencies * Depend on dart & flutter packages from git on pubspec files * Correct repository links & add publish_to: 'none' * run just clean && just init * Update README.md * Download framework as part of prepare_command * Use wget, then fallback to curl * Remove redundant .zip suffix on the url * Fix release tag * Add v to tag replacement * Fix podspec version * Copy header file * Downgrade vm_service --------- Co-authored-by: Erdem Yerebasmaz <erdem@yerebasmaz.com>
19 lines
785 B
Bash
Executable File
19 lines
785 B
Bash
Executable File
#!/bin/bash
|
|
ROOT="../../../.."
|
|
TAG_NAME=`awk '/^version: /{print $2}' $ROOT/packages/flutter/pubspec.yaml`
|
|
|
|
# iOS & macOS
|
|
APPLE_HEADER="version = '$TAG_NAME' # generated; do not edit"
|
|
sed -i.bak "1 s/.*/$APPLE_HEADER/" $ROOT/packages/flutter/ios/flutter_breez_liquid.podspec
|
|
sed -i.bak "1 s/.*/$APPLE_HEADER/" $ROOT/packages/flutter/macos/flutter_breez_liquid.podspec
|
|
rm $ROOT/packages/flutter/macos/*.bak $ROOT/packages/flutter/ios/*.bak
|
|
|
|
# CMake platforms (Linux, Windows, and Android)
|
|
CMAKE_HEADER="set(TagName \"v$TAG_NAME\") # generated; do not edit"
|
|
for CMAKE_PLATFORM in android linux windows
|
|
do
|
|
sed -i.bak "1 s/.*/$CMAKE_HEADER/" $ROOT/packages/flutter/$CMAKE_PLATFORM/CMakeLists.txt
|
|
rm $ROOT/packages/flutter/$CMAKE_PLATFORM/*.bak
|
|
done
|
|
|
|
git add $ROOT/packages/flutter/ |