Skip to content

Commit 2ebb70a

Browse files
committed
One more fix for VirusTotal submission
1 parent c205c5a commit 2ebb70a

File tree

1 file changed

+13
-9
lines changed

1 file changed

+13
-9
lines changed

.github/workflows/release.yml

+13-9
Original file line numberDiff line numberDiff line change
@@ -157,26 +157,30 @@ jobs:
157157
mkdir /tmp/scan
158158
mkdir scan
159159
for i in dist-*/*/*/*.tar.bz2; do
160+
name=$(basename $i|cut -d- -f1)
160161
ver=$(sed -e 's/\.tar\.bz2$//' <<< $(basename $i)|cut -d- -f2-)
161-
echo "extracting $i ($ver)"
162-
tar -C /tmp/scan -jv -f $i -x $APP
163-
hash=$(sha256sum /tmp/scan/$APP|awk '{print $1}')
164-
mv /tmp/scan/$APP ./scan/$APP-$ver-${hash:0:8}
162+
echo "extracting $i ($name $ver)"
163+
tar -C /tmp/scan -jv -f $i -x $name
164+
hash=$(sha256sum /tmp/scan/$name|awk '{print $1}')
165+
mv /tmp/scan/$name ./scan/$name-$ver-${hash:0:8}
165166
done
166167
for i in dist-*/*/*/*.zip; do
168+
name=$(basename $i|cut -d- -f1)
167169
ver=$(sed -e 's/\.zip$//' <<< $(basename $i)|cut -d- -f2-)
168-
echo "extracting $i ($ver)"
169-
unzip -d /tmp/scan $i $APP.exe
170-
hash=$(sha256sum /tmp/scan/$APP.exe|awk '{print $1}')
171-
mv /tmp/scan/$APP.exe ./scan/$APP-$ver-${hash:0:8}.exe
170+
echo "extracting $i ($name $ver)"
171+
unzip -d /tmp/scan $i $name.exe
172+
hash=$(sha256sum /tmp/scan/$name.exe|awk '{print $1}')
173+
mv /tmp/scan/$name.exe ./scan/$name-$ver-${hash:0:8}.exe
172174
done
175+
file ./scan/*
176+
sha256sum ./scan/*
173177
- name: Submit to VirusTotal
174178
uses: crazy-max/ghaction-virustotal@v4
175179
with:
176180
vt_api_key: ${{ secrets.VIRUSTOTAL_API_KEY }}
177181
request_rate: 4
178182
files: |
179-
./scan/${{ env.APP }}-*
183+
./scan/*
180184
- name: Release
181185
uses: softprops/action-gh-release@v2
182186
if: startsWith(github.ref, 'refs/tags/v')

0 commit comments

Comments
 (0)