DropBox client for PocketBook reader written on Go.
- Download and unarchive last version from Releases page.
- Copy
pb-dropbox-downloader.app
to/applications
folder on your reader. (This folder can be hidden. To see it use this link.) - Fill configuration from
config.example.json
or generate it on this site, and save it aspb-dropbox-downloader-config.json
. - Copy
pb-dropbox-downloader-config.json
to/system/config
folder on reader (Thesystem
folder can be hidden too). - Turn on your book reader, go to application > pb-dropbox-downloader
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 value3
)pb-dropbox-downloader/internal/app.logFileName
- Name of log file (default valuepb-dropbox-downloader.log
)pb-dropbox-downloader/internal/app.databaseFileName
- Name of file for data storage (default valuepb-dropbox-downloader.bin
)pb-dropbox-downloader/internal/app.configFileName
- Name of configuration file (default valuepb-dropbox-downloader-config.json
)pb-dropbox-downloader/internal/app.version
- Version of application (default valueX.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:
- Pocketbook 624
- Reader book 2 (this device has no application item in menu, but you can find and run program from
gallery
)