gui/modules/desktop
Neil c2578dc453
#232 initialize sentry (#238)
* #232 initialize sentry

* gha: update get platform job

---------

Co-authored-by: neil <neil@neils-MacBook-Pro.local>
2023-02-27 14:46:26 +08:00
..
electron #232 initialize sentry (#238) 2023-02-27 14:46:26 +08:00
src init mixpanel (#227) 2023-02-24 12:24:15 +08:00
static #186 cp svelte components into electron. WARNING: doesnt work like the tauri build yet 2023-02-03 14:02:49 +08:00
.eslintignore convert electron.cjs into ts 2023-02-06 12:41:22 +08:00
.eslintrc.cjs #203 single quote to double quote 2023-02-14 14:31:06 +08:00
.gitignore #209 implement electron-updater (#210) 2023-02-21 21:03:24 +08:00
.npmrc #186 init electron 2023-02-02 09:34:26 +08:00
.prettierignore convert electron.cjs into ts 2023-02-06 12:41:22 +08:00
.prettierrc #203 single quote to double quote 2023-02-14 14:31:06 +08:00
electron-builder.config.cjs cloudfront cache invalidation is annoying atm 2023-02-24 16:49:26 +08:00
icon.png icon 2023-02-04 08:54:20 +08:00
package.json #232 initialize sentry (#238) 2023-02-27 14:46:26 +08:00
playwright.config.ts #203 single quote to double quote 2023-02-14 14:31:06 +08:00
pnpm-lock.yaml lint 2023-02-02 09:35:25 +08:00
postcss.config.cjs #203 single quote to double quote 2023-02-14 14:31:06 +08:00
README.md #186 cp svelte components into electron. WARNING: doesnt work like the tauri build yet 2023-02-03 14:02:49 +08:00
screenshot.png #186 init electron 2023-02-02 09:34:26 +08:00
setupTest.js #203 single quote to double quote 2023-02-14 14:31:06 +08:00
svelte.config.js #203 single quote to double quote 2023-02-14 14:31:06 +08:00
tailwind.config.ts #203 single quote to double quote 2023-02-14 14:31:06 +08:00
tsconfig.json web preview and refactor native api integration module (#222) 2023-02-22 15:59:37 +08:00
vite.config.ts web preview and refactor native api integration module (#222) 2023-02-22 15:59:37 +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 dev

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