diff --git a/README.md b/README.md index 6835880..5e8b4b2 100644 --- a/README.md +++ b/README.md @@ -36,4 +36,4 @@ yarn run build --win ## 参考项目 -- [WeChatVideoDownloader](https://github.com/lecepin/WeChatVideoDownloader) 原项目是react写的,且有段时间未更新,本项目参考原项目用vue3重写了一下,核心逻辑没什么变化,主要是增加了一些新的功能,再次感谢! +- [WeChatVideoDownloader](https://github.com/lecepin/WeChatVideoDownloader) 原项目是react写的,本项目参考原项目用vue3重写了一下,核心逻辑没什么变化,主要是增加了一些新的功能,再次感谢! diff --git a/components.d.ts b/components.d.ts index 9603d8e..5760033 100755 --- a/components.d.ts +++ b/components.d.ts @@ -21,7 +21,6 @@ declare module 'vue' { ElOption: typeof import('element-plus/es')['ElOption'] ElRow: typeof import('element-plus/es')['ElRow'] ElSelect: typeof import('element-plus/es')['ElSelect'] - ElTable: typeof import('element-plus/es')['ElTable'] ElTableColumn: typeof import('element-plus/es')['ElTableColumn'] Footer: typeof import('./src/components/layout/Footer.vue')['default'] Index: typeof import('./src/components/layout/Index.vue')['default'] diff --git a/electron/main/utils.ts b/electron/main/utils.ts index c9ea08e..86a3be6 100755 --- a/electron/main/utils.ts +++ b/electron/main/utils.ts @@ -1,36 +1,7 @@ -import {app, dialog, shell} from 'electron' -import semver from 'semver' import fs from 'fs' const axios = require('axios') -// packageUrl 需要包含 { "version": "1.0.0" } 结构 -function checkUpdate( - // 可以使用加速地址 https://cdn.jsdelivr.net/gh/lecepin/electron-react-tpl/package.json - packageUrl = 'https://raw.githubusercontent.com/lecepin/electron-react-tpl/master/package.json', - downloadUrl = 'https://github.com/lecepin/electron-react-tpl/releases', -) { - axios.get(packageUrl) - .then(({data}) => { - if (semver.gt(data?.version, app.getVersion())) { - const result = dialog.showMessageBoxSync({ - message: '发现新版本,是否更新?', - type: 'question', - cancelId: 1, - defaultId: 0, - buttons: ['进入新版本下载页面', '取消'], - }); - - if (result === 0 && downloadUrl) { - shell.openExternal(downloadUrl).then(r => { - }) - } - } - }) - .catch(err => { - }) -} - function downloadFile(url, fullFileName, progressCallback) { return axios.get(url, { responseType: 'stream', @@ -62,4 +33,4 @@ function downloadFile(url, fullFileName, progressCallback) { }); } -export {checkUpdate, downloadFile} +export {downloadFile} diff --git a/package.json b/package.json index d715ffe..dd32a16 100644 --- a/package.json +++ b/package.json @@ -1,8 +1,8 @@ { "name": "res-downloader", - "version": "1.0.1", + "version": "1.0.2", "main": "dist-electron/main/index.js", - "description": "Really simple Electron + Vue + Vite boilerplate.", + "description": "Electron + Vue + Vite 实现的资源下载软件,支持微信视频号下载、抖音视频下载、快手视频下载、酷狗音乐下载等", "author": "putyy@qq.com", "license": "MIT", "private": true, diff --git a/public/show.png b/public/show.png index 70b2972..9a67369 100644 Binary files a/public/show.png and b/public/show.png differ diff --git a/src/components/layout/Footer.vue b/src/components/layout/Footer.vue index b59b821..1bfc381 100755 --- a/src/components/layout/Footer.vue +++ b/src/components/layout/Footer.vue @@ -29,8 +29,9 @@ const jump = (scene: number)=>{