initial release
This commit is contained in:
21
install.sh
Executable file
21
install.sh
Executable file
@@ -0,0 +1,21 @@
|
||||
#!/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."
|
||||
Reference in New Issue
Block a user