Building on a Pi I had problems with phantomjs, have those been sorted? This prevented me building the package on a pi though I was able to build and run locally by removing the phantomjs-prebuilt line from package.json.
I don’t understand the full subtleties of what I am doing, but when I build a package on Ubuntu I just run
go run build.go build package
which works on Ubuntu, but as I said not on a pi due, if I remember correctly, to the phantomjs problem.
Oh yes. I tried that briefly but didn’t manage it so build on the pi instead. It takes a long, long time on a Pi 3, not so bad on a 4. You can run the files from a 4 build on a 3.
So the process I end up using for generating a deb package for the pi was (crosscompiling):
go run build.go -goarch armv7 -cc arm-linux-gnueabihf-gcc build
yarn install --pure-lockfile --no-progress
yarn dev
go run build.go -goos linux -pkg-arch armv7 -skipRpm package-only