mirror of
https://github.com/strawberrymusicplayer/strawberry
synced 2025-01-08 06:14:10 +01:00
CI: Check for missing Delete entries in NSI
This commit is contained in:
parent
e3c1c6ee9a
commit
46c90f3712
17
.github/workflows/build.yml
vendored
17
.github/workflows/build.yml
vendored
@ -1141,12 +1141,20 @@ jobs:
|
|||||||
run: ls
|
run: ls
|
||||||
|
|
||||||
- name: Check that all files are included in nsi
|
- name: Check that all files are included in nsi
|
||||||
|
shell: bash
|
||||||
working-directory: build
|
working-directory: build
|
||||||
run: |
|
run: |
|
||||||
files_missing=
|
files_missing=
|
||||||
for i in $(ls -1 *.dll *.exe); do
|
for i in $(ls -1 *.dll *.exe); do
|
||||||
nsi_file_entry=$(grep -i "^\s\+File\s\+\"$i\"$" strawberry.nsi || true)
|
nsi_file_entry=$(grep -i "^\s\+File\s\+\"$i\"$" strawberry.nsi || true)
|
||||||
if [ "${nsi_file_entry}" = "" ]; then
|
if [ "${nsi_file_entry}" = "" ]; then
|
||||||
|
echo "File ${i} is missing File entry."
|
||||||
|
fi
|
||||||
|
nsi_file_delete_entry=$(grep -i "^\s\+Delete\s\+\"\$INSTDIR\\\\$i\"$" strawberry.nsi || true)
|
||||||
|
if [ "${nsi_file_delete_entry}" = "" ] ; then
|
||||||
|
echo "File ${i} is missing Delete entry."
|
||||||
|
fi
|
||||||
|
if [ "${nsi_file_entry}" = "" ] || [ "${nsi_file_delete_entry}" = "" ] ; then
|
||||||
if [ "${files_missing}" = "" ]; then
|
if [ "${files_missing}" = "" ]; then
|
||||||
files_missing="${i}"
|
files_missing="${i}"
|
||||||
else
|
else
|
||||||
@ -1479,13 +1487,20 @@ jobs:
|
|||||||
run: dir
|
run: dir
|
||||||
|
|
||||||
- name: Check that all files are included in nsi
|
- name: Check that all files are included in nsi
|
||||||
working-directory: build
|
|
||||||
shell: bash
|
shell: bash
|
||||||
|
working-directory: build
|
||||||
run: |
|
run: |
|
||||||
files_missing=
|
files_missing=
|
||||||
for i in $(ls -1 *.dll *.exe); do
|
for i in $(ls -1 *.dll *.exe); do
|
||||||
nsi_file_entry=$(grep -i "^\s\+File\s\+\"$i\"$" strawberry.nsi || true)
|
nsi_file_entry=$(grep -i "^\s\+File\s\+\"$i\"$" strawberry.nsi || true)
|
||||||
if [ "${nsi_file_entry}" = "" ]; then
|
if [ "${nsi_file_entry}" = "" ]; then
|
||||||
|
echo "File ${i} is missing File entry."
|
||||||
|
fi
|
||||||
|
nsi_file_delete_entry=$(grep -i "^\s\+Delete\s\+\"\$INSTDIR\\\\$i\"$" strawberry.nsi || true)
|
||||||
|
if [ "${nsi_file_delete_entry}" = "" ] ; then
|
||||||
|
echo "File ${i} is missing Delete entry."
|
||||||
|
fi
|
||||||
|
if [ "${nsi_file_entry}" = "" ] || [ "${nsi_file_delete_entry}" = "" ] ; then
|
||||||
if [ "${files_missing}" = "" ]; then
|
if [ "${files_missing}" = "" ]; then
|
||||||
files_missing="${i}"
|
files_missing="${i}"
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user