30
30
VCINSTALLDIR : C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/VC/
31
31
Qt5_DIR : ${{ github.workspace }}\build\Qt\${{ matrix.qt_ver }}\${{ matrix.config.qt_arch_install }}\lib\cmake\Qt5\
32
32
QTDIR : ${{ github.workspace }}\build\Qt\${{ matrix.qt_ver }}\${{ matrix.config.qt_arch_install }}\
33
- # 2022.06.15.1
34
- VCPKG_VERSION : cef0b3ec767df6e83806899fe9525f6cf8d7bc91
33
+ # 2025.02.14
34
+ VCPKG_VERSION : d5ec528843d29e3a52d745a64b469f810b2cedbf
35
35
VCPKG_PACKAGES : openssl-windows
36
36
OPENSSL_ROOT_DIR : ${{ github.workspace }}\vcpkg\installed\${{ matrix.config.vcpkg_triplet }}\
37
37
strategy :
@@ -78,13 +78,15 @@ jobs:
78
78
last_committed_tag=$(git tag -l --sort=-v:refname | head -1)
79
79
git_revno=$(git rev-list $(git describe --tags --abbrev=0)..HEAD --count)
80
80
git_hash=$(git rev-parse --short HEAD)
81
+ ver_info=${last_committed_tag}+git${git_revno}.${git_hash}
81
82
echo "=======FLAMESHOT VERSION========"
82
83
echo ${last_committed_tag:1}
83
- echo "Details: ${last_committed_tag}+git${git_revno}.${git_hash }"
84
+ echo "Details: ${ver_info }"
84
85
echo "================================"
85
86
# This will allow to build pre-preleases without git tag
86
87
# echo "VERSION=${last_committed_tag:1}" >> $GITHUB_ENV
87
88
echo "VERSION=$(cat CMakeLists.txt |grep 'set.*(.*FLAMESHOT_VERSION' | sed 's/[^0-9.]*//' |sed 's/)//g')" >> $GITHUB_ENV
89
+ echo "VER_INFO=${ver_info}" >> $GITHUB_ENV
88
90
89
91
- name : Restore from cache and run vcpkg
90
92
uses : lukka/run-vcpkg@v11
@@ -103,7 +105,7 @@ jobs:
103
105
key : ${{ runner.os }}-QtCache/${{ matrix.qt_ver }}/${{ matrix.config.qt_arch }}
104
106
105
107
- name : Install Qt
106
- uses : jurplel/install-qt-action@v3
108
+ uses : jurplel/install-qt-action@v4
107
109
with :
108
110
version : ${{ matrix.qt_ver }}
109
111
target : ${{ matrix.qt_target }}
@@ -155,56 +157,44 @@ jobs:
155
157
if : matrix.type == 'installer'
156
158
shell : pwsh
157
159
run : |
158
- Move-Item -Path $env:GITHUB_WORKSPACE/build/Package/Flameshot-*-${{ matrix.config.pak_arch }}.msi -Destination $env:GITHUB_WORKSPACE/build/Package/installer/Flameshot-$env: VERSION-${{ matrix.config.pak_arch }}.msi
160
+ Move-Item -Path $env:GITHUB_WORKSPACE/build/Package/Flameshot-*-${{ matrix.config.pak_arch }}.msi -Destination $env:GITHUB_WORKSPACE/build/Package/installer/Flameshot-${{ env. VERSION }} -${{ matrix.config.pak_arch }}.msi
159
161
160
162
- name : Package Prepare (portable)
161
163
if : matrix.type == 'portable'
162
164
shell : pwsh
163
165
run : |
164
- Move-Item -Path $env:GITHUB_WORKSPACE/build/Package/flameshot-*-${{ matrix.config.pak_arch }}.zip -Destination $env:GITHUB_WORKSPACE/build/Package/portable/flameshot-$env: VERSION-${{ matrix.config.pak_arch }}.zip
166
+ Move-Item -Path $env:GITHUB_WORKSPACE/build/Package/flameshot-*-${{ matrix.config.pak_arch }}.zip -Destination $env:GITHUB_WORKSPACE/build/Package/portable/flameshot-${{ env. VERSION }} -${{ matrix.config.pak_arch }}.zip
165
167
166
- - name : SHA256Sum of Windows installer(daily build)
168
+ - name : SHA256Sum of Windows installer
167
169
if : matrix.type == 'installer'
168
170
shell : bash
169
171
run : |
170
- sha256sum $GITHUB_WORKSPACE/build/Package/installer/Flameshot-${VERSION}-${{ matrix.config.pak_arch }}.msi
171
- sha256sum $GITHUB_WORKSPACE/build/Package/installer/Flameshot-${VERSION}-${{ matrix.config.pak_arch }}.msi > $GITHUB_WORKSPACE/build/Package/installer/Flameshot-${VERSION}-${{ matrix.config.pak_arch }}.msi.sha256sum
172
- python -m pip install -U -q requests
173
- echo "============Windows installer sha256sum download link============"
174
- echo $(python $GITHUB_WORKSPACE/scripts/upload_services/transferwee.py upload $GITHUB_WORKSPACE/build/Package/installer/Flameshot-${VERSION}-${{ matrix.config.pak_arch }}.msi.sha256sum)
175
- echo "=======no operation for you can see link in the log console====="
176
-
177
- - name : SHA256Sum of Windows portable(daily build)
172
+ sha256sum $GITHUB_WORKSPACE/build/Package/installer/Flameshot-${{ env.VERSION }}-${{ matrix.config.pak_arch }}.msi
173
+ sha256sum $GITHUB_WORKSPACE/build/Package/installer/Flameshot-${{ env.VERSION }}-${{ matrix.config.pak_arch }}.msi > $GITHUB_WORKSPACE/build/Package/installer/Flameshot-${{ env.VERSION }}-${{ matrix.config.pak_arch }}.msi.sha256sum
174
+
175
+ - name : SHA256Sum of Windows portable
178
176
if : matrix.type == 'portable'
179
177
shell : bash
180
178
run : |
181
- sha256sum $GITHUB_WORKSPACE/build/Package/portable/flameshot-${VERSION}-${{ matrix.config.pak_arch }}.zip
182
- sha256sum $GITHUB_WORKSPACE/build/Package/portable/flameshot-${VERSION}-${{ matrix.config.pak_arch }}.zip > $GITHUB_WORKSPACE/build/Package/portable/flameshot-${VERSION}-${{ matrix.config.pak_arch }}.zip.sha256sum
183
- python -m pip install -U -q requests
184
- echo "===========Windows portable sha256sum download link============"
185
- echo $(python $GITHUB_WORKSPACE/scripts/upload_services/transferwee.py upload $GITHUB_WORKSPACE/build/Package/portable/flameshot-${VERSION}-${{ matrix.config.pak_arch }}.zip.sha256sum)
186
- echo "=====no operation for you can see link in the log console====="
187
-
188
- - name : Upload Windows installer(daily build)
179
+ sha256sum $GITHUB_WORKSPACE/build/Package/portable/flameshot-${{ env.VERSION }}-${{ matrix.config.pak_arch }}.zip
180
+ sha256sum $GITHUB_WORKSPACE/build/Package/portable/flameshot-${{ env.VERSION }}-${{ matrix.config.pak_arch }}.zip > $GITHUB_WORKSPACE/build/Package/portable/flameshot-${{ env.VERSION }}-${{ matrix.config.pak_arch }}.zip.sha256sum
181
+
182
+ - name : Artifact Upload
189
183
if : matrix.type == 'installer'
190
- shell : bash
191
- run : |
192
- python -m pip install -U -q requests
193
- echo "================Windows installer download link================"
194
- echo $(python $GITHUB_WORKSPACE/scripts/upload_services/transferwee.py upload $GITHUB_WORKSPACE/build/Package/installer/Flameshot-${VERSION}-${{ matrix.config.pak_arch }}.msi)
195
- echo "=====no operation for you can see link in the log console====="
184
+ uses : actions/upload-artifact@v4
185
+ with :
186
+ name : ${{ env.PRODUCT }}-${{ env.VER_INFO }}-artifact-win-${{ matrix.config.arch }}-${{ matrix.type }}
187
+ path : |
188
+ ${{ github.workspace }}/build/Package/installer/Flameshot-${{ env.VERSION }}-${{ matrix.config.pak_arch }}.msi
189
+ ${{ github.workspace }}/build/Package/installer/Flameshot-${{ env.VERSION }}-${{ matrix.config.pak_arch }}.msi.sha256sum
190
+ overwrite : true
196
191
197
- - name : Upload Windows portable(daily build)
198
- if : matrix.type == 'portable'
199
- shell : bash
200
- run : |
201
- python -m pip install -U -q requests
202
- echo "=================Windows portable download link================"
203
- echo $(python $GITHUB_WORKSPACE/scripts/upload_services/transferwee.py upload $GITHUB_WORKSPACE/build/Package/portable/flameshot-${VERSION}-${{ matrix.config.pak_arch }}.zip)
204
- echo "=====no operation for you can see link in the log console====="
205
192
- name : Artifact Upload
193
+ if : matrix.type == 'portable'
206
194
uses : actions/upload-artifact@v4
207
195
with :
208
- name : Windows-${{ matrix.config.arch }}-${{ matrix.type }}-artifact
209
- path : ${{ github.workspace }}/build/Package/*
196
+ name : ${{ env.PRODUCT }}-${{ env.VER_INFO }}-artifact-win-${{ matrix.config.arch }}-${{ matrix.type }}
197
+ path : |
198
+ ${{ github.workspace }}/build/Package/portable/flameshot-${{ env.VERSION }}-${{ matrix.config.pak_arch }}.zip
199
+ ${{ github.workspace }}/build/Package/portable/flameshot-${{ env.VERSION }}-${{ matrix.config.pak_arch }}.zip.sha256sum
210
200
overwrite : true
0 commit comments