Skip to content
Snippets Groups Projects
Commit 0f9c98f8 authored by Simon McVittie's avatar Simon McVittie
Browse files

Merge branch 'wip/denittis/t22768' into 'master'

deploy-runtime: If available, automatically unpack the debug symbols

See merge request steamlinuxruntime!22
parents d1077010 e945c458
No related branches found
No related tags found
No related merge requests found
...@@ -188,6 +188,16 @@ else ...@@ -188,6 +188,16 @@ else
rm -fr --one-file-system "${here}/.${name}_${current_build_id}_unpack-temp" rm -fr --one-file-system "${here}/.${name}_${current_build_id}_unpack-temp"
mkdir "${here}/.${name}_${current_build_id}_unpack-temp" mkdir "${here}/.${name}_${current_build_id}_unpack-temp"
tar -C "${here}/.${name}_${current_build_id}_unpack-temp" -z"${tar_v}"xf "${here}/${basename}-runtime.tar.gz" tar -C "${here}/.${name}_${current_build_id}_unpack-temp" -z"${tar_v}"xf "${here}/${basename}-runtime.tar.gz"
# If we have the detached debug symbols, we extract them too
if [ -f "${here}/${basename}-debug.tar.gz" ]; then
tar -C "${here}/.${name}_${current_build_id}_unpack-temp/files/lib/debug" \
--strip-components=1 \
-z"${tar_v}"xf \
"${here}/${basename}-debug.tar.gz" \
"files/"
fi
mv "${here}/.${name}_${current_build_id}_unpack-temp" "${here}/${name}_${current_build_id}" mv "${here}/.${name}_${current_build_id}_unpack-temp" "${here}/${name}_${current_build_id}"
updated=yes updated=yes
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment