-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathbuild_repo.sh
57 lines (42 loc) · 1.05 KB
/
build_repo.sh
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#!/bin/bash
# go to location of this script
# cd $(dirname $0)
# remove browser-use folder if it exists
# rm -rf browser-use
# Simple test script for browser-use Gemini branch
git clone https://github.com/browser-use/browser-use.git
cd browser-use
# git checkout models/gemini
# git checkout hot-fix/default-not-permitted
# checkout 1a5a4bd557a190dbc6a77985c46db383779ae4bf
echo "Checking out branch"
git checkout memory-state-extraction
# Setup environment and build
# echo "Setting up environment and building"
cd ..
uv venv --python=3.11
source .venv/bin/activate
cd browser-use
uv pip install build
python -m build
echo "Installing browser-use"
uv pip install dist/browser_use-*.whl
uv pip install langchain_google_genai
echo "Installing playwright"
playwright install
# Run test
# copy test.py to browser-use
#echo "Copying test.py to browser-use"
cd ..
source .venv/bin/activate
#cp test.py browser-use/test.py
#cd browser-use
# deactivate
# activate
# cd browser-use
# source .venv/bin/activate
# cd ..
# python test.py
# c
# i browser-use
# a .venv