DropBox client for PocketBook reader written on Go.
pb-dropbox-downloader.app
to /applications
folder on your reader. (This folder can be hidden. To see it use this link.)config.example.json
or generate it on this site, and save it as pb-dropbox-downloader-config.json
.pb-dropbox-downloader-config.json
to /system/config
folder on reader (The system
folder can be hidden too).Requirements: task v3, golang, docker. golang-ci-lint
Use task for run, build and test application:
task # to run application (on local machine)
task lint # to lint code
task build-cli # to build cli .app file for reader
task build # to build .app file for reader with UI
task test # to run all tests in docker container
task test-local # to run all tests on local machine
You can build application with custom ldflags flags.
Available flags :
pb-dropbox-downloader/internal/app.parallelism
- Number of goroutines used for downloading files (default value 3
)pb-dropbox-downloader/internal/app.logFileName
- Name of log file (default value pb-dropbox-downloader.log
)pb-dropbox-downloader/internal/app.databaseFileName
- Name of file for data storage (default value pb-dropbox-downloader.bin
)pb-dropbox-downloader/internal/app.configFileName
- Name of configuration file (default value pb-dropbox-downloader-config.json
)pb-dropbox-downloader/internal/app.version
- Version of application (default value X.X.X
)powershell:
$env:GOOS = 'linux'
$env:GOARCH = 'arm'
$env:GOARM = '5'
go build -ldflags="-s -w -X <your custom fdflegs>" -o pb-dropbox-downloader.app .
bash:
GOOS=linux GOARCH=arm GOARM=5 go build -ldflags="-s -w -X <your custom fdflegs>" -o pb-dropbox-downloader.app .
docker run --rm -v ${PWD}:/app 5keeve/pocketbook-go-sdk:6.3.0-b288-v1 build -v -tags=UI -ldflags="-s -w -X <your custom fdflegs>" -o pb-dropbox-downloader.app .
Currently this application testes only on next devices:
gallery
)