🐛 Fixed version generation issues
This commit is contained in:
@@ -50,6 +50,14 @@ export function GetSettingsPath(): Promise<string> & { cancel(): void } {
|
|||||||
return $resultPromise;
|
return $resultPromise;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* MigrateConfig 执行配置迁移
|
||||||
|
*/
|
||||||
|
export function MigrateConfig(): Promise<void> & { cancel(): void } {
|
||||||
|
let $resultPromise = $Call.ByID(434292783) as any;
|
||||||
|
return $resultPromise;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ResetConfig 强制重置所有配置为默认值
|
* ResetConfig 强制重置所有配置为默认值
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -31,6 +31,19 @@ if errorlevel 1 (
|
|||||||
exit /b 1
|
exit /b 1
|
||||||
)
|
)
|
||||||
|
|
||||||
|
REM Sync remote tags
|
||||||
|
echo [INFO] Syncing remote tags...
|
||||||
|
echo [INFO] Deleting local tags...
|
||||||
|
for /f "delims=" %%i in ('git tag -l') do git tag -d %%i >nul 2>&1
|
||||||
|
|
||||||
|
echo [INFO] Fetching remote tags...
|
||||||
|
git fetch origin --prune >nul 2>&1
|
||||||
|
if errorlevel 1 (
|
||||||
|
echo [WARNING] Failed to fetch from remote, using local tags
|
||||||
|
) else (
|
||||||
|
echo [INFO] Remote tags synced successfully
|
||||||
|
)
|
||||||
|
|
||||||
REM Get latest git tag
|
REM Get latest git tag
|
||||||
git describe --abbrev=0 --tags > temp_tag.txt 2>nul
|
git describe --abbrev=0 --tags > temp_tag.txt 2>nul
|
||||||
if errorlevel 1 (
|
if errorlevel 1 (
|
||||||
|
|||||||
@@ -19,6 +19,18 @@ else
|
|||||||
echo "[ERROR] Not in a git repository"
|
echo "[ERROR] Not in a git repository"
|
||||||
exit 1
|
exit 1
|
||||||
else
|
else
|
||||||
|
# 同步远程标签
|
||||||
|
echo "[INFO] Syncing remote tags..."
|
||||||
|
echo "[INFO] Deleting local tags..."
|
||||||
|
git tag -l | xargs git tag -d &> /dev/null
|
||||||
|
|
||||||
|
echo "[INFO] Fetching remote tags..."
|
||||||
|
if git fetch origin --prune &> /dev/null; then
|
||||||
|
echo "[INFO] Remote tags synced successfully"
|
||||||
|
else
|
||||||
|
echo "[WARNING] Failed to fetch from remote, using local tags"
|
||||||
|
fi
|
||||||
|
|
||||||
# 获取最新的git标签
|
# 获取最新的git标签
|
||||||
LATEST_TAG=$(git describe --abbrev=0 --tags 2>/dev/null)
|
LATEST_TAG=$(git describe --abbrev=0 --tags 2>/dev/null)
|
||||||
|
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
VERSION=1.3.5
|
VERSION=1.3.6
|
||||||
|
|||||||
Reference in New Issue
Block a user