diff --git a/CHANGELOG.md b/CHANGELOG.md deleted file mode 100644 index db6dbaa..0000000 --- a/CHANGELOG.md +++ /dev/null @@ -1,33 +0,0 @@ -## 2022-10-03 - -[v2.1.0](https://github.com/electron-vite/electron-vite-vue/pull/267) - -- `vite-electron-plugin` is Fast, and WYSIWYG. 🌱 -- last-commit: db2e830 v2.1.0: use `vite-electron-plugin` instead `vite-plugin-electron` - -## 2022-06-04 - -[v2.0.0](https://github.com/electron-vite/electron-vite-vue/pull/156) - -- 🖖 Based on the `vue-ts` template created by `npm create vite`, integrate `vite-plugin-electron` -- ⚡️ More simplify, is in line with Vite project structure -- last-commit: a15028a (HEAD -> main) feat: hoist `process.env` - -## 2022-01-30 - -[v1.0.0](https://github.com/electron-vite/electron-vite-vue/releases/tag/v1.0.0) - -- ⚡️ Main、Renderer、preload, all built with vite - -## 2022-01-27 -- Refactor the scripts part. -- Remove `configs` directory. - -## 2021-11-11 -- Refactor the project. Use vite.config.ts build `Main-process`, `Preload-script` and `Renderer-process` alternative rollup. -- Scenic `Vue>=3.2.13`, `@vue/compiler-sfc` is no longer necessary. -- If you prefer Rollup, Use rollup branch. - -```bash -Error: @vitejs/plugin-vue requires vue (>=3.2.13) or @vue/compiler-sfc to be present in the dependency tree. -``` diff --git a/electron/main/index.ts b/electron/main/index.ts index 0a736a3..e1b0a83 100644 --- a/electron/main/index.ts +++ b/electron/main/index.ts @@ -11,7 +11,6 @@ import { autoUpdater } from 'electron-updater'; import { promise } from 'ping'; import Winreg from 'winreg'; import { spawn } from 'node:child_process'; -import { set } from '@vueuse/core'; switch (process.argv[1]) { case '--open-website': @@ -29,12 +28,7 @@ process.env.DIST = join(process.env.DIST_ELECTRON, '../dist'); process.env.SRC = join(process.env.DIST_ELECTRON, '../src'); process.env.PUBLIC = process.env.VITE_DEV_SERVER_URL ? join(process.env.DIST_ELECTRON, '../public') : process.env.DIST; -const autoUpdaterNotification = { - title: 'Launcher Update verfügbar', - body: 'Das Launcher Update wird heruntergeladen und beim nächsten Neustart des Launchers installiert.' -} - -autoUpdater.checkForUpdatesAndNotify(autoUpdaterNotification) +autoUpdater.checkForUpdates() // Disable GPU Acceleration for Windows 7 if (release().startsWith('6.1')) app.disableHardwareAcceleration(); @@ -55,7 +49,6 @@ if (!app.requestSingleInstanceLock()) { let win: BrowserWindow | null = null; let worker_win: BrowserWindow | null = null; -const preload = join(__dirname, '../preload/index.js'); const url = process.env.VITE_DEV_SERVER_URL; const indexHtml = join(process.env.DIST, 'index.html'); let tray: Tray | null = null; @@ -174,7 +167,7 @@ const createTray = () => { } }) } else { - autoUpdater.checkForUpdatesAndNotify(autoUpdaterNotification) + autoUpdater.checkForUpdates() } } }, diff --git a/index.html b/index.html index 68d730e..66e96b4 100644 --- a/index.html +++ b/index.html @@ -2,7 +2,6 @@
-