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

possibility to run math-notepad offline using electron #3

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

jvanmelckebeke
Copy link

Hi,

I wanted to use math-notepad as a 'real' calculator (as in: using it as an app, and having the ability to run it offline).

Here is what I did:

  • made all links local in the repo (e.g. downloaded them into the repository)
  • added electron, for running 'native' as a desktop app
  • added electron-forge so one could build the app and run it as math-notepad for example

Also a small remark on a possible bad practice I did: when you open the app the focus instantly goes to the input field.

Kind regards.

felipec added a commit that referenced this pull request Jul 26, 2022
See #3.

Suggested-by: Jari Van Melckebeke <[email protected]>
Signed-off-by: Felipe Contreras <[email protected]>
@felipec
Copy link
Owner

felipec commented Jul 26, 2022

I tested this and while it works, I don't want to include all JavaScript files inside the project.

I tried my hand with electron-builder and after many many attempts I decided why not simply use the remote locations, just like web page does?

The result is rather simple (bf2c604) and creating a more proper package can be done later on.

@jvanmelckebeke Is there any reason you can't do that on your setup?

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

2 participants