Skip to content

Commit

Permalink
🔧 [Darwin] Do not remove framework unless the artifact exists
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexV525 committed Nov 8, 2023
1 parent 3227490 commit 2b4c8b9
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
8 changes: 0 additions & 8 deletions .pubignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,6 @@ _main.dart
**/agent_dart-v*.tar.gz
/platform-build/
/target/
# rust/headers/
# rust/dylib/
# macos/cli/
# macos/libagent_dart.a
# ios/libagent_dart.a
# android/src/main/jniLibs/
# linux/libagent_dart.so
# windows/agent_dart.dll

# Specified to pub.dev
/.github/
Expand Down
8 changes: 6 additions & 2 deletions ios/agent_dart.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,18 @@ url = "https://github.com/AstroxNetwork/agent_dart/releases/download/#{release_t
local_zip_name = "#{release_tag_name}.zip"
`
cd Frameworks
rm -rf #{framework_name}
if [ ! -f #{local_zip_name} ]
then
curl -L #{url} -o #{local_zip_name}
fi
unzip #{local_zip_name}
if [ -f #{local_zip_name} ]
then
rm -rf #{framework_name}
unzip #{local_zip_name}
fi
cd -
`

Expand Down
8 changes: 6 additions & 2 deletions macos/agent_dart.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,18 @@ url = "https://github.com/AstroxNetwork/agent_dart/releases/download/#{release_t
local_zip_name = "#{release_tag_name}.zip"
`
cd Frameworks
rm -rf #{framework_name}
if [ ! -f #{local_zip_name} ]
then
curl -L #{url} -o #{local_zip_name}
fi
unzip #{local_zip_name}
if [ -f #{local_zip_name} ]
then
rm -rf #{framework_name}
unzip #{local_zip_name}
fi
cd -
`

Expand Down

0 comments on commit 2b4c8b9

Please sign in to comment.