gui/modules/desktop
Neil 4d0c611b1f
init sentry on packaged app only (#530)
Co-authored-by: neil molina <neil@neils-MacBook-Pro.local>
2023-05-01 08:01:01 +08:00
..
electron Do not load installation progress from cache (#527) 2023-04-30 06:55:45 +08:00
scripts Prettier (#522) 2023-04-28 12:14:44 +08:00
src init sentry on packaged app only (#530) 2023-05-01 08:01:01 +08:00
static New home discover (#483) 2023-04-21 16:09:07 +08:00
.env.example run typescript check as part of ci (#503) 2023-04-26 06:41:06 +08:00
.eslintignore convert electron.cjs into ts 2023-02-06 12:41:22 +08:00
.eslintrc.cjs Prettier (#522) 2023-04-28 12:14:44 +08:00
.gitignore ui adjustments (#494) 2023-04-24 14:51:50 +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 Prettier (#522) 2023-04-28 12:14:44 +08:00
electron-builder.config.cjs Prettier (#522) 2023-04-28 12:14:44 +08:00
icon.png resize icon 2023-04-20 14:02:32 +08:00
package.json init sentry on packaged app only (#530) 2023-05-01 08:01:01 +08:00
playwright.config.ts Prettier (#522) 2023-04-28 12:14:44 +08:00
pnpm-lock.yaml lint 2023-02-02 09:35:25 +08:00
postcss.config.cjs Prettier (#522) 2023-04-28 12:14:44 +08:00
README.md Crowdin dynamic update (#268) 2023-03-07 11:12:11 +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 Prettier (#522) 2023-04-28 12:14:44 +08:00
tailwind.config.ts Prettier (#522) 2023-04-28 12:14:44 +08:00
tsconfig.json render package names using name property (#523) 2023-04-28 13:26:35 +08:00
vite.config.ts render package names using name property (#523) 2023-04-28 13:26:35 +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

i18n

Default locale is english it is defined in src/libs/translations/translations.json. Include all new keys there then this will automatically sync to crowdin once merged to main. Data from crowdin our translation app/community will only be loaded when env var SYNC_I18N exists. Currently only configured on top of the GHA CI/CD workflows.

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