An Electron-based cross-platform desktop reader for free ebooks (EPUB) from Project Gutenberg and Unglue.it. The InfiniteLibrary team has grown out of two Codex Hackathons.
- Add your own DRM-free ebooks.
- Make print copies
If you don't have yarn, see https://yarnpkg.com/en/docs/install.
$ cd [infinite-electron path]
$ yarn
Run these two commands simultaneously in different console tabs.
$ yarn run hot-server
$ yarn run start-hot
or run two servers with one command
$ yarn run dev
- OS X: Cmd Alt I or F12
- Linux: Ctrl Shift I or F12
- Windows: Ctrl Shift I or F12
See electron-debug for more information.
This boilerplate is included following DevTools extensions:
- Devtron - Install via electron-debug.
- React Developer Tools - Install via electron-devtools-installer.
- Redux DevTools - Install via electron-devtools-installer.
You can find the tabs on Chrome DevTools.
If you want to update extensions version, please set UPGRADE_EXTENSIONS
env, just run:
$ UPGRADE_EXTENSIONS=1 yarn run dev
# For Windows
$ set UPGRADE_EXTENSIONS=1 && yarn run dev
To package apps for the local platform:
$ yarn run package
To package apps for all platforms:
First, refer to Multi Platform Build for dependencies.
Then,
$ yarn run package-all
To package apps with options:
$ yarn run package -- --[option]
To run the application without packaging run
$ yarn run build
$ yarn start
See electron-builder CLI Usage
This boilerplate uses a two package.json structure.
- If the module is native to a platform or otherwise should be included with the published package (i.e. bcrypt, openbci), it should be listed under
dependencies
in./app/package.json
. - If a module is
import
ed by another module, include it independencies
in./package.json
. See this ESLint rule. - Otherwise, modules used for building, testing and debugging should be included in
devDependencies
in./package.json
.