Skip to content

Commit ffe27b6

Browse files
author
Mirko Brombin
authored
Merge pull request #205 from koplo199/bottlesdevs-pr
Fix #2382
2 parents 212ba03 + 5d2bbfe commit ffe27b6

File tree

4 files changed

+11
-26
lines changed

4 files changed

+11
-26
lines changed

.github/workflows/pull-components.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,12 @@ jobs:
128128
tar --use-compress-program=unzstd -xvf $release_archive_name
129129
tar -zcvf "${{ env.NAME }}.tar.gz" "${{ env.NAME }}"
130130
echo "UPLOAD_FILE=$(pwd)/${{ env.NAME }}.tar.gz" >> $GITHUB_ENV
131+
elif [[ $release_archive_name == "dxvk-nvapi"* ]]; then
132+
curl -fsSLO "$release_archive_url"
133+
mkdir "${{ env.NAME }}"
134+
tar -xvf $release_archive_name --directory "${{ env.NAME }}"
135+
tar -zcvf "${{ env.NAME }}.tar.gz" "${{ env.NAME }}"
136+
echo "UPLOAD_FILE=$(pwd)/${{ env.NAME }}.tar.gz" >> $GITHUB_ENV
131137
fi
132138
133139
- name: Check for new artifact
@@ -168,7 +174,9 @@ jobs:
168174
if [[ "${{ env.NAMEPREFIX }}" == "dxvk"* ]]; then
169175
rm -rf "$folder/usr"
170176
fi
171-
tar -C "$folder" -zcvf "${{ env.NAME }}.tar.gz" .
177+
mkdir "${{ env.NAME }}"
178+
mv "$folder"/* "${{ env.NAME }}"
179+
tar -zcvf "${{ env.NAME }}.tar.gz" "${{ env.NAME }}"
172180
echo "UPLOAD_FILE=$(pwd)/${{ env.NAME }}.tar.gz" >> $GITHUB_ENV
173181
174182
- name: Upload component archive

input_files/14-dxvk.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
dxvk-2.0-1-18b0ef6:
2-
Category: dxvk
3-
Channel: unstable
4-
Date: '1671209496'
51
dxvk-2.0:
62
Category: dxvk
73
Channel: stable

input_files/16-dxvk-nvapi.yml

Lines changed: 0 additions & 20 deletions
This file was deleted.

input_files/update_yml_entries.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ GITHUB_ENV=${GITHUB_ENV-/dev/null}
1616
command_wo_sub="{\"$component_name\": {\"Category\":\"$category\", \"Channel\": \"$channel\", \"Date\": \"$created_at\"}}"
1717
command_w_sub="{\"$component_name\": {\"Category\":\"$category\", \"Sub-category\":\"$subcategory\", \"Channel\": \"$channel\", \"Date\": \"$created_at\"}}"
1818

19-
if ! [ -f "$filename" ]; then
19+
empty_file=$(yq "." $filename)
20+
if ! [ -f "$filename" ] || [ -z "$empty_file" ]; then
2021
touch $filename
2122
if [ -z "$subcategory" ]; then
2223
yq -n -i -y "$command_wo_sub" $filename

0 commit comments

Comments
 (0)