Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update gitignore and add build
  • Loading branch information
btynybekov committed Sep 15, 2025
commit c87cd544cb9895ce2d8c79380dfca4ea91784f65
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Binaries for programs and plugins
/webview_app
*.exe
*.exe~
*.dll
Expand Down
21 changes: 21 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/usr/bin/env bash
set -e

echo "[INFO] Installing dependencies..."

# Проверка платформы
if [[ "$OSTYPE" == "linux-gnu"* ]]; then
sudo apt-get update
sudo apt-get install -y build-essential pkg-config libgtk-3-dev libwebkit2gtk-4.0-dev
echo "[INFO] Dependencies installed (Linux)"
elif [[ "$OSTYPE" == "darwin"* ]]; then
echo "[INFO] No dependencies required on macOS"
else
echo "[ERROR] Unsupported OS: $OSTYPE"
exit 1
fi

echo "[INFO] Building Go binary..."
go build -o webview_app ./examples/bind

echo "[INFO] Build complete. Run with ./webview_test"