-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.sh
More file actions
33 lines (25 loc) · 736 Bytes
/
build.sh
File metadata and controls
33 lines (25 loc) · 736 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/bash
echo "Building Asaas SDK..."
# Restore dependencies
dotnet restore
if [ $? -ne 0 ]; then
echo "Failed to restore dependencies"
exit 1
fi
# Build the solution
dotnet build --configuration Release
if [ $? -ne 0 ]; then
echo "Build failed"
exit 1
fi
echo "Build successful!"
echo ""
# Ask if user wants to run the example
read -p "Do you want to run the example application? (Y/N): " response
if [ "$response" = "Y" ] || [ "$response" = "y" ]; then
echo ""
echo "Running example application..."
echo "Note: Make sure to set your ASAAS_API_KEY environment variable or edit the Program.cs file"
echo ""
dotnet run --project examples/Asaas.Sdk.Examples/Asaas.Sdk.Examples.csproj
fi