File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -64,7 +64,10 @@ description: 合并上游 GUI.for.Clash 项目的更新,同时保留所有自
6464 - 基于最近创建的 tag 递增: ` .github/workflows/release.yml `
6565
666610 . ** GFC Plus 品牌重命名**
67- - 应用标题: ` frontend/.env ` (VITE_APP_TITLE)
67+ - 应用标题: ` frontend/.env ` (VITE_APP_TITLE, VITE_APP_NAME)
68+ - 类型定义: ` frontend/env.d.ts ` (VITE_APP_NAME)
69+ - 环境变量导出: ` frontend/src/utils/env.ts ` (APP_NAME)
70+ - 更新检查文件名: ` frontend/src/stores/app.ts ` (使用 APP_NAME)
6871 - Wails 配置: ` wails.json `
6972 - README: ` README.md `
7073 - Gist 插件识别: ` frontend/public/plugins/plugin-sync-configuration-gists-enhanced.js `
Original file line number Diff line number Diff line change 11VITE_APP_TITLE = GFC Plus
2+ VITE_APP_NAME = GFC.Plus
23VITE_APP_VERSION = v1.16.0
34VITE_APP_PROJECT_URL = https://github.com/sjnhnp/gfc
45VITE_APP_VERSION_API = https://api.github.com/repos/sjnhnp/gfc/releases/latest
Original file line number Diff line number Diff line change 22
33interface ImportMetaEnv {
44 readonly VITE_APP_TITLE : string
5+ readonly VITE_APP_NAME : string
56 readonly VITE_APP_VERSION : string
67 readonly VITE_APP_PROJECT_URL : string
78 readonly VITE_APP_LOCALES_URL : string
Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ import {
1515import { RollingReleaseDirectory } from '@/constant/app'
1616import {
1717 APP_TITLE ,
18+ APP_NAME ,
1819 APP_VERSION ,
1920 APP_VERSION_API ,
2021 getGitHubApiAuthorization ,
@@ -121,7 +122,7 @@ export const useAppStore = defineStore('app', () => {
121122 await MoveFile ( appName , appName + '.bak' )
122123 await UnzipZIPFile ( downloadCacheFile , '.' )
123124 const suffix = { windows : '.exe' , linux : '' } [ os ]
124- await MoveFile ( APP_TITLE + suffix , appName )
125+ await MoveFile ( APP_NAME + suffix , appName )
125126 message . success ( 'about.updateSuccessfulRestart' )
126127 restartable . value = true
127128 } else {
@@ -152,7 +153,7 @@ export const useAppStore = defineStore('app', () => {
152153 const { tag_name, assets } = body
153154
154155 const { os, arch } = envStore . env
155- const assetName = `${ APP_TITLE } -${ os } -${ arch } .zip`
156+ const assetName = `${ APP_NAME } -${ os } -${ arch } .zip`
156157
157158 const asset = assets . find ( ( v : any ) => v . name === assetName )
158159 if ( ! asset ) throw 'Asset Not Found:' + assetName
Original file line number Diff line number Diff line change 11export const APP_TITLE = import . meta. env . VITE_APP_TITLE
22
3+ export const APP_NAME = import . meta. env . VITE_APP_NAME
4+
35export const APP_VERSION = import . meta. env . VITE_APP_VERSION
46
57export const APP_VERSION_API = import . meta. env . VITE_APP_VERSION_API
You can’t perform that action at this time.
0 commit comments