Created
May 11, 2023 18:38
-
-
Save wiverson/45a370ead1919e9f44ad78ec90a9b8c2 to your computer and use it in GitHub Desktop.
Build script to download both the latest supabase-csharp libs as well as the current source.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
rm -rf target | |
rm -rf nuget | |
rm -rf unpack | |
mkdir nuget | |
mkdir target | |
mkdir unpack | |
./bin/nusave-3.1.1-dawrin-x64/nusave cache package "[email protected]" --targetFrameworks "[email protected]" --cacheDir "nuget" | |
./bin/nusave-3.1.1-dawrin-x64/nusave cache package "[email protected]" --targetFrameworks "[email protected]" --cacheDir "nuget" | |
# Unzip files from "nuget" directory to "unpack" directory | |
nuget_dir="nuget" | |
unpack_dir="unpack" | |
mkdir -p "$unpack_dir" | |
# Unzip files | |
for file in "$nuget_dir"/*.nupkg; do | |
file_name=$(basename "$file" .nupkg) | |
unzip -qo "$file" -d "$unpack_dir/$file_name" | |
done | |
# Set read permissions for all extracted files | |
find "$unpack_dir" -type f -exec chmod +rw {} \; | |
# Copy .dll files to target directory | |
target_dir="target" | |
mkdir -p "$target_dir" | |
# Find .dll files recursively in the unpack directory and copy them to the target directory | |
find "$unpack_dir" -type f -name "*.dll" -exec cp -n {} "$target_dir" \; | |
degit https://github.com/supabase-community/supabase-csharp/Supabase target/client | |
degit https://github.com/supabase-community/core-csharp/Core target/core | |
degit https://github.com/supabase-community/postgrest-csharp/Postgrest target/postgrest | |
degit https://github.com/supabase-community/gotrue-csharp/Gotrue target/auth | |
degit https://github.com/supabase-community/realtime-csharp/Realtime target/realtime | |
degit https://github.com/supabase-community/storage-csharp/Storage target/storage | |
degit https://github.com/supabase-community/functions-csharp/Functions target/functions |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment