Skip to content

An Electron application that loads a local web page from the 'dist' directory.

License

Notifications You must be signed in to change notification settings

quecot/electron-app-from-dist

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

electron-app-from-dist

An Electron application that loads a local web page from the 'dist' directory.

Features

  • Loads a local web page.
  • Development and build scripts for multiple platforms.

Prerequisites

Getting Started

  1. Clone the repository:
git clone [email protected]:quecot/electron-app-from-dist.git
  1. Populate the dist/ dist directory with your web application files.

  2. Install the dependencies:

npm install
  1. Run the application in development mode:
npm run dev

Building for production

To build the application for production, use the provided npm scripts:

  • For macOS (ARM64):
npm run build:macos-arm64
  • For Windows (64-bit):
npm run build:windows
  • For Windows (32-bit):
npm run build:windows-32

Note: Remember to replace **YOUR_APP_NAME** in the build scripts with your desired application name in the package.json.

Note for Vite Users

If you're building your web application with Vite, ensure you set "base": "./", in your vite.config.js or vite.config.ts to ensure correct asset paths in the built Electron app.

Note for Astro Users

Astro does not allow for non-url paths as base, which can be seen discussed in this issue. For a quick fix, you can check out astro-relative-links.

License

This project is licensed under the MIT License.

Contributions

Contributions are always welcome. Feel free to open issues, suggest improvements, or submit pull requests.

About

An Electron application that loads a local web page from the 'dist' directory.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published