Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/evg4b/pb-dropbox-downloader
DropBox client for PocketBook reader written on Go.
https://github.com/evg4b/pb-dropbox-downloader
go golang pocketbook
Last synced: 15 days ago
JSON representation
DropBox client for PocketBook reader written on Go.
- Host: GitHub
- URL: https://github.com/evg4b/pb-dropbox-downloader
- Owner: evg4b
- License: mit
- Created: 2020-12-27T15:51:56.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2023-02-27T14:51:19.000Z (over 1 year ago)
- Last Synced: 2023-03-10T06:55:52.175Z (over 1 year ago)
- Topics: go, golang, pocketbook
- Language: Go
- Homepage: https://pb-dropbox-downloader.netlify.app
- Size: 280 KB
- Stars: 5
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
PocketBook Dropbox downloader
DropBox client for PocketBook reader written on Go.
## How to install
1. Download and unarchive last version from [Releases page](https://github.com/evg4b/pb-dropbox-downloader/releases).
2. Copy `pb-dropbox-downloader.app` to `/applications` folder on your reader. (This folder can be hidden. To see it use [this link](https://support.microsoft.com/en-us/windows/view-hidden-files-and-folders-in-windows-97fbc472-c603-9d90-91d0-1166d1d9f4b5#WindowsVersion=Windows_10).)
3. Fill configuration from `config.example.json` or generate it on [this site](https://pb-dropbox-downloader.netlify.app/), and save it as `pb-dropbox-downloader-config.json`.
4. Copy `pb-dropbox-downloader-config.json` to `/system/config` folder on reader (The `system` folder can be hidden too).
5. Turn on your book reader, go to application > pb-dropbox-downloader## How to build
**Requirements**: [task v3](https://taskfile.dev/), [golang](https://golang.org/), [docker](https://www.docker.com/). [golang-ci-lint](https://golangci-lint.run/)
Use task for run, build and test application:
``` bash
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
```### Custom build
You can build application with custom [ldflags flags](https://www.digitalocean.com/community/tutorials/using-ldflags-to-set-version-information-for-go-applications-ru).
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`)#### CLI version
powershell:
``` powershell
$env:GOOS = 'linux'
$env:GOARCH = 'arm'
$env:GOARM = '5'
go build -ldflags="-s -w -X " -o pb-dropbox-downloader.app .
```bash:
``` bash
GOOS=linux GOARCH=arm GOARM=5 go build -ldflags="-s -w -X " -o pb-dropbox-downloader.app .
```#### UI version (docker required)
``` bash
docker run --rm -v ${PWD}:/app 5keeve/pocketbook-go-sdk:6.3.0-b288-v1 build -v -tags=UI -ldflags="-s -w -X " -o pb-dropbox-downloader.app .
```## Testing:
Currently this application testes only on next devices:
1. Pocketbook 624
2. Reader book 2 (this device has no application item in menu, but you can find and run program from `gallery`)