22 lines
559 B
Bash
Executable File
22 lines
559 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Exit on error
|
|
set -e
|
|
|
|
echo "Building OpenQuery with Native AOT..."
|
|
dotnet publish -c Release
|
|
|
|
BINARY_PATH="bin/Release/net10.0/linux-x64/publish/OpenQuery"
|
|
|
|
if [ ! -f "$BINARY_PATH" ]; then
|
|
echo "Error: Published binary not found at $BINARY_PATH"
|
|
echo "Please ensure the project builds successfully."
|
|
exit 1
|
|
fi
|
|
|
|
echo "Installing OpenQuery to /usr/bin/openquery..."
|
|
sudo cp "$BINARY_PATH" /usr/bin/openquery
|
|
sudo chmod +x /usr/bin/openquery
|
|
|
|
echo "OpenQuery installed successfully! You can now run it using the 'openquery' command."
|