Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
humbletim committed Jun 3, 2024
1 parent bd946fb commit d0bae37
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
9 changes: 6 additions & 3 deletions util/_utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,12 @@ function _relativize() {
local rel="$@" x=
for x in build_dir source_dir root_dir ghash gha_fsvr_dir fsvr_dir fsvr_cache_dir nunja_dir p373r_dir openvr_dir ; do
test ! -v $x || {
local y="$( echo "${!x}" | tr '\\' '/' )"
rel=${rel//${!x}/\{${x}\}}
rel=${rel//${y}/\{${x}\}}
local y="${!x}"
local z="$( echo "${y[@]}" | tr '\\\\' '/' )"
local w="$( echo "${z[@]}" | tr '/' '\\\\' )"
rel="${rel//${y[@]}/\{${x}\}}"
rel="${rel//${z[@]}/\{${x}\}}"
rel="${rel//${w[@]}/\{${x}\}}"
}
done
echo $rel
Expand Down
4 changes: 2 additions & 2 deletions util/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ function 0b1_upload_installer() {( $_dbgopts;
mkdir dist
ht-ln $Installer dist/$InstallerExe
( cd dist && gha-upload-artifact ${InstallerExe/.exe/} $InstallerExe )
( cd dist && gha-upload-artifact-fast ${InstallerExe/.exe/} $InstallerExe 2)
)}
Expand All @@ -317,7 +317,7 @@ function 0b3_upload_7z() {( $_dbgopts;
mkdir dist || true
ht-ln $Portable dist/$PortableArchive
( cd dist && gha-upload-artifact ${PortableArchive/.7z/} $PortableArchive )
( cd dist && gha-upload-artifact-fast ${PortableArchive/.7z/} $PortableArchive 2)
)}
function 0b4_bundle_zip() {( $_dbgopts;
Expand Down

0 comments on commit d0bae37

Please sign in to comment.