The electron wrapper for electron-web
yarn install
yarn electron:serve
- First, copy
dist
fromtosbur-web
to./static/
so that the tree looks like:
❯ tree -L 2 static
static
└── dist
├── assets
├── favicon.ico
└── index.html
cp -R ../tosbur-web/dist ./static
-
Removing leading slashes in references in ./static/dist/index.html
-
Export environment variables:
export DOCKER_IPC_SOCKET='http://unix:/var/run/docker.sock:' export API_VERSION='v1.41'
- Build
yarn electron:build
Project was setup with electron-builder
and vue-cli-plugin-electron-builder.
This was helpful to get going with the project, but vue-cli-plugin-electron-builder
may be moot now. Once it was determined that electron-builder can load any file or url, regardless of how or where it was built, the decision was made to build the web application in a separate repository using Vite. This web application is housed in the tosbur-web
repository.
- Investigate the impact of entirely removing
vue-cli-plugin-electron-builder
. - Should web app dist be sent to
./public
? - Why do leading slashed have to be removed when using
file:///
in build? - Export env variables should not be necessary.
- Icon
- Developer certificate