gui/modules/desktop
2023-02-02 15:58:39 +08:00
..
src #186 init electron ci build 2023-02-02 11:01:12 +08:00
static #186 init electron 2023-02-02 09:34:26 +08:00
.eslintignore lint 2023-02-02 09:35:25 +08:00
.eslintrc.cjs lint 2023-02-02 09:35:25 +08:00
.gitignore #186 init electron ci build 2023-02-02 11:01:12 +08:00
.npmrc #186 init electron 2023-02-02 09:34:26 +08:00
.prettierignore lint 2023-02-02 09:35:25 +08:00
.prettierrc lint 2023-02-02 09:35:25 +08:00
electron-builder.config.cjs use notarize 2023-02-02 15:58:39 +08:00
electron_svelte.svg #186 init electron 2023-02-02 09:34:26 +08:00
icon.png #186 init electron 2023-02-02 09:34:26 +08:00
package.json fix 2023-02-02 15:57:05 +08:00
pnpm-lock.yaml lint 2023-02-02 09:35:25 +08:00
README.md lint 2023-02-02 09:35:25 +08:00
screenshot.png #186 init electron 2023-02-02 09:34:26 +08:00
svelte.config.js lint 2023-02-02 09:35:25 +08:00
vite.config.ts #186 init electron ci build 2023-02-02 11:01:12 +08:00

@tea/desktop

Desktop app of tea for installing packages/softwares

More interesting and possibly updated documentations are at this NOTION page. It is ideal to review it also, its more updated.

Developing

Once you've created a project and installed dependencies with npm install (or pnpm install or yarn), start a development server:

# use if you need interaction with the rust handlers
pnpm tauri dev

# or if ui dev only
pnpm run dev -- --open

Building

To create a production version of your app:

pnpm run build

You can preview the production build with npm run preview.

To deploy your app, you may need to install an adapter for your target environment.

Testing

pnpm playwright install
pnpm test

A minimal project template for Electron and SvelteKit configured with adapter-static.

Screenshot

Screenshot

Commands

  • pnpm dev: Runs SvelteKit in dev mode
  • pnpm preview: Runs SvelteKit in production mode
  • pnpm electron: Runs SvelteKit with electron in dev mode
  • pnpm build: Runs SvelteKit compiler
  • pnpm dev:package: Creates an Electron package (you can inspect the contents)
  • pnpm package: Creates a distributable Electron package