-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild-windows.sh
More file actions
executable file
·104 lines (82 loc) · 2.39 KB
/
build-windows.sh
File metadata and controls
executable file
·104 lines (82 loc) · 2.39 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
#!/bin/bash
# Windows build script (run in Git Bash or WSL)
set -e
echo "=================================================="
echo "SecureVault Browser - Windows Build Script"
echo "=================================================="
# Add depot_tools to PATH
export PATH="$PWD/depot_tools:$PATH"
# Check if source exists
if [ ! -d "src" ]; then
echo "Error: Chromium source not found. Run setup script first"
exit 1
fi
cd src
echo "Configuring Windows build..."
mkdir -p out/SecureVault
cat > out/SecureVault/args.gn << 'EOF'
# Build configuration for SecureVault Browser - Windows
is_debug = false
is_official_build = true
is_component_build = false
symbol_level = 0
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
# Windows specific
use_cups = false
use_kerberos = false
is_win_fastlink = true
# Performance
proprietary_codecs = true
ffmpeg_branding = "Chrome"
# Target architecture
target_cpu = "x64"
target_os = "win"
# Additional privacy settings
fieldtrial_testing_like_official_build = true
enable_reporting = false
enable_js_protobuf = false
# Build optimizations
use_thin_lto = true
thin_lto_enable_optimizations = true
EOF
echo "Generating build files..."
gn gen out/SecureVault
echo "Starting build..."
echo "This will take 1-3 hours depending on your hardware"
# Build with all cores
ninja -C out/SecureVault chrome
echo ""
echo "=================================================="
echo "Build complete!"
echo "=================================================="
echo ""
echo "Binary location: src/out/SecureVault/chrome.exe"
echo ""
echo "To create installer, run: ./package-windows.sh"
echo ""