@@ -31,23 +31,23 @@ jobs:
31
31
run : |
32
32
VERSION=$(grep "^version=" .env | cut -d'=' -f2)
33
33
echo "ENV_VERSION=$VERSION" >> $GITHUB_ENV
34
- echo "::set-output name= version:: $VERSION"
34
+ echo "version= $VERSION" >> $GITHUB_OUTPUT
35
35
echo "Using version from .env file: $VERSION"
36
36
37
37
- name : Use manual version
38
38
id : manual-version
39
39
if : ${{ github.event.inputs.use_env_version != 'yes' }}
40
40
run : |
41
- echo "::set-output name= version:: ${{ github.event.inputs.version }}"
41
+ echo "version= ${{ github.event.inputs.version }}" >> $GITHUB_OUTPUT
42
42
echo "Using manually entered version: ${{ github.event.inputs.version }}"
43
43
44
44
- name : Set final version
45
45
id : set-version
46
46
run : |
47
47
if [ "${{ github.event.inputs.use_env_version }}" == "yes" ]; then
48
- echo "::set-output name= version:: ${{ env.ENV_VERSION }}"
48
+ echo "version= ${{ env.ENV_VERSION }}" >> $GITHUB_OUTPUT
49
49
else
50
- echo "::set-output name= version:: ${{ github.event.inputs.version }}"
50
+ echo "version= ${{ github.event.inputs.version }}" >> $GITHUB_OUTPUT
51
51
fi
52
52
53
53
create-tag :
@@ -107,9 +107,16 @@ jobs:
107
107
echo "Version: ${{ env.VERSION }}" >> "dist/CursorFreeVIP_${{ env.VERSION }}_windows.exe.manifest"
108
108
echo "Description: Cursor Free VIP Tool" >> "dist/CursorFreeVIP_${{ env.VERSION }}_windows.exe.manifest"
109
109
110
- - name : Install SignTool
110
+ - name : Install Windows SDK
111
111
run : |
112
- choco install windows-sdk-10-version-2004-all -y
112
+ # 使用更新的包名
113
+ choco install windows-sdk-10 -y || echo "Windows SDK installation skipped, continuing build..."
114
+
115
+ - name : Download SignTool (fallback)
116
+ if : ${{ failure() }}
117
+ run : |
118
+ mkdir -p tools
119
+ Invoke-WebRequest -Uri "https://download.microsoft.com/download/1/5/6/156F6D1A-8A5F-4B9E-839A-BF3C5D8A8861/signtool.exe" -OutFile "tools/signtool.exe" || echo "SignTool download failed, signing will be skipped"
113
120
114
121
- name : Create self-signed certificate
115
122
if : false # Disabled until we have a proper certificate
0 commit comments