加入自动更新功能

This commit is contained in:
ruotongyu 2024-07-09 19:21:13 +08:00
parent d611e9e277
commit 7de7ef711b
3 changed files with 8 additions and 5 deletions

View File

@ -49,7 +49,10 @@ appImage:
artifactName: ${name}-${version}.${ext}
npmRebuild: false
publish:
provider: generic
url: https://example.com/auto-updates
provider: github
owner: yuruotong1
repo: autoMate
releaseType: 'release'
electronDownload:
mirror: https://npmmirror.com/mirrors/electron/

View File

@ -1,11 +1,11 @@
{
"name": "automate",
"version": "1.0.0",
"version": "2.2.1",
"description": "An Electron application with React and TypeScript",
"main": "./out/main/index.js",
"author": "example.com",
"homepage": "https://electron-vite.org",
"repository": "https://github.com/yuruotong1/autoMate",
"repository": "https://github.com/yuruotong1/autoMate/tree/master/app",
"scripts": {
"format": "prettier --write .",
"lint": "eslint . --ext .js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix",

View File

@ -4,7 +4,7 @@ pip install -r requirements.txt
call echo y | pyinstaller main.spec
xcopy .\.venv\Lib\site-packages\litellm\*.json .\dist\autoMateServer\_internal\litellm\ /E /H /F /I /Y
cd app
cd ..\app
set "target_dir=.\dist"
del /f /q "%target_dir%\*.*"
for /d %%i in ("%target_dir%\*") do rmdir /s /q "%%i"