Build from source
Build
Make Dependencies
text
clang >= 10
llvm >= 10 (optional)
golang >= 1.26.0
makeToolchain requirements depend on the source revision. This snapshot uses Go 1.26.0; consult its go.mod and build workflow.
Compilation
shell
git clone https://github.com/daeuniverse/dae.git
cd dae
git submodule update --initChoose one build method:
shell
## Minimal dependency build
make GOFLAGS="-buildvcs=false" \
CLANG=clangshell
## Normal build
makeshell
## Cross compile
# To armv7 CPU architect:
make CGO_ENABLED=0 GOARCH=arm GOARM=7shell
# To mips CPU architect:
make CGO_ENABLED=0 GOARCH=mipsRun
Runtime Dependencies
For traffic splitting, dae relies on the following data sources, geoip.dat and geosite.dat.
shell
sudo mkdir -p /usr/local/share/dae/
pushd /usr/local/share/dae/
sudo curl -L -o geoip.dat https://github.com/v2fly/geoip/releases/latest/download/geoip.dat
sudo curl -L -o geosite.dat https://github.com/v2fly/domain-list-community/releases/latest/download/dlc.dat
popdshell
mkdir -p /usr/local/share/dae/
pushd /usr/local/share/dae/
curl -L -o geoip.dat https://github.com/v2fly/geoip/releases/latest/download/geoip.dat
curl -L -o geosite.dat https://github.com/v2fly/domain-list-community/releases/latest/download/dlc.dat
popdRun
Download the example config file:
shell
curl -L -o example.dae https://github.com/daeuniverse/dae/raw/main/example.daeSee example.dae.
After fine tuning, run dae:
shell
sudo ./dae run -c example.daeshell
./dae run -c example.daeNote: Alternatively, you may run dae as a daemon (systemd) service. Check out more details HERE.
Source: dae upstream · AGPL-3.0 license.
