run.sh 404 B

1234567891011121314151617
  1. #!/bin/sh
  2. # Update the program every time you run?
  3. # git pull
  4. # Visit ./doc/Environment\ Variables.go for more details
  5. export PIXIVFE_TOKEN=token_123456
  6. export PIXIVFE_IMAGEPROXY=pximg.cocomi.cf
  7. # export PIXIVFE_UNIXSOCKET=/srv/http/pages/pixivfe
  8. export PIXIVFE_PORT=8282
  9. go mod download
  10. go get codeberg.org/vnpower/pixivfe/v2/...
  11. CGO_ENABLED=0 GOOS=linux go build -mod=readonly -o pixivfe
  12. ./pixivfe