https://github.com/GopeedLab/gopeed
Ubuntu 24.04 LTS
go 1.22.2
flulter 3.16.0
sudo apt-get install gccgo-mipsel-linux-gnu
export GOARCH=mipsle
export GOOS=linux
export CGO_ENABLED=0
export CC=mipsel-linux-gnu-gcc
export CXX=mipsel-linux-gnu-g++
cd ui/flutter
flutter build web
cd ../../
rm -rf cmd/web/dist
cp -r ui/flutter/build/web cmd/web/dist
go build -tags nosqlite,web -ldflags="-s -w" -o bin/ github.com/GopeedLab/gopeed/cmd/web
后台运行:
chmod a+x gopeed-mipsel-1.5.8
(./gopeed-mipsel-1.5.8 &)