Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. # Karadhoc - Kôtelettes App
  2. ## Getting started
  3. ### Install dependencies ⏬
  4. ```bash
  5. npm install
  6. ```
  7. ### Start developing ⚒️
  8. ```bash
  9. npm run dev
  10. ```
  11. ## Additional Commands
  12. ```bash
  13. npm run dev # starts application with hot reload
  14. npm run build # builds application, distributable files can be found in "dist" folder
  15. # OR
  16. npm run build:win # uses windows as build target
  17. npm run build:mac # uses mac as build target
  18. npm run build:linux # uses linux as build target
  19. ```
  20. Optional configuration options can be found in the [Electron Builder CLI docs](https://www.electron.build/cli.html).
  21. ## Project Structure
  22. ```bash
  23. - scripts/ # all the scripts used to build or serve your application, change as you like.
  24. - src/
  25. - main/ # Main thread (Electron application source)
  26. - renderer/ # Renderer thread (VueJS application source)
  27. ```
  28. ## Using static files
  29. If you have any files that you want to copy over to the app directory after installation, you will need to add those files in your `src/main/static` directory.
  30. #### Referencing static files from your main process
  31. ```ts
  32. /* Assumes src/main/static/myFile.txt exists */
  33. import {app} from 'electron';
  34. import {join} from 'path';
  35. import {readFileSync} from 'fs';
  36. const path = join(app.getAppPath(), 'static', 'myFile.txt');
  37. const buffer = readFileSync(path);
  38. ```