Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add "Desktop Mode" as the default. #88

Merged
merged 15 commits into from
Jun 18, 2022
Merged

Conversation

evan-buss
Copy link
Owner

Double clicking the executable will now start the server and open the browser.
Some users don't have experience using the terminal and this makes it easier to get started.

In the future this command may open a "webview" that appears to be a native desktop application without opening the browser. The code to do this is already included but not enabled by default due to complication in cross compiling CGO code.

To build a version for yourself with the webview instead of just opening the default browser:

go build -tags webview

- some webviews don't have native copy paste so I update
  the search field on user selection
- use filepath.join() instead of path.join()
- change default download dir depending on which subcommand is selected
- allow double clicking on windows (disable cobra mousetrap thing)
- allows double clicking the executable to open the GUI
- server code shouldn't care how the page is being displayed.
- replace AppThunk with createAsyncThunk
- This allows Calibre to watch a directory and only import
  the file when it's completed.
- Cross compilation becomes A LOT more complicated
  once CGO is in the mix. Requires the time and energy
  to get build scripts to work across all platforms, and
  update the automated Github Actions to build on
  multiple machines (MacOS requires MacOS runner,
  Windows / Linux require Linux runner)
- This commit adds a build flag "webview" to enable
  webview desktop support but the default without
  the build flag is to open the browser on start.
@evan-buss evan-buss merged commit 4aaf696 into development Jun 18, 2022
@evan-buss evan-buss deleted the feat/desktop-mode branch June 18, 2022 17:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant