-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.sh
More file actions
executable file
·115 lines (90 loc) · 2.65 KB
/
build.sh
File metadata and controls
executable file
·115 lines (90 loc) · 2.65 KB
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
#!/bin/bash
set -e
echo "=================================================="
echo "SecureVault Browser Build Script"
echo "=================================================="
# Colors
RED='\033[0;31m'
GREEN='\033[0;32m'
YELLOW='\033[1;33m'
NC='\033[0m'
# Add depot_tools to PATH
export PATH="$PWD/depot_tools:$PATH"
# Check if source exists
if [ ! -d "src" ]; then
echo -e "${RED}Error: Chromium source not found. Run ./setup.sh first${NC}"
exit 1
fi
cd src
echo -e "${GREEN}Configuring build...${NC}"
# Create args.gn with privacy and security focused settings
mkdir -p out/SecureVault
cat > out/SecureVault/args.gn << 'EOF'
# Build configuration for SecureVault Browser
# Basic build settings
is_debug = false
is_official_build = true
is_component_build = false
symbol_level = 0
# Branding
chrome_pgo_phase = 0
is_chrome_branded = false
# Custom branding for Barrer Software
chrome_product_full_name = "SecureVault Browser"
chrome_product_name = "SecureVault"
chrome_copyright_owners = "Barrer Software"
chrome_company_name = "Barrer Software"
chrome_company_short_name = "Barrer Software"
chrome_company_url = "https://barrersoftware.com"
# Privacy: Disable Google services
google_api_key = ""
google_default_client_id = ""
google_default_client_secret = ""
# Disable features that phone home
enable_google_now = false
enable_hangout_services_extension = false
enable_remoting = false
enable_nacl = false
# Disable reporting
enable_crash_reporter = false
enable_error_dialogs = false
# Privacy features
enable_mdns = false
enable_service_discovery = false
enable_wifi_bootstrapping = false
enable_one_click_signin = false
safe_browsing_mode = 0
# Security enhancements
use_cups = true
use_kerberos = false
# Performance
proprietary_codecs = true
ffmpeg_branding = "Chrome"
# Target architecture
target_cpu = "x64"
# Additional privacy settings
fieldtrial_testing_like_official_build = true
chrome_root_extra_deps = []
# Disable unwanted features
enable_reporting = false
enable_js_protobuf = false
# Build optimizations
use_thin_lto = true
thin_lto_enable_optimizations = true
EOF
echo -e "${GREEN}Generating build files...${NC}"
gn gen out/SecureVault
echo -e "${GREEN}Starting build...${NC}"
echo -e "${YELLOW}This will take 1-3 hours depending on your hardware${NC}"
echo -e "${YELLOW}Using all available CPU cores...${NC}"
# Build with all cores
ninja -C out/SecureVault chrome
echo ""
echo -e "${GREEN}=================================================="
echo -e "Build complete!"
echo -e "==================================================${NC}"
echo ""
echo "Binary location: src/out/SecureVault/chrome"
echo ""
echo "Run ./run.sh to launch SecureVault Browser"
echo ""