diff options
| author | ruki <[email protected]> | 2025-09-20 18:47:11 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2025-09-20 18:47:11 +0800 |
| commit | 95db3720b4aa3f4eaa2006306b7cd12df9eec4e5 (patch) | |
| tree | a7dd6a5dcf884e0ed1400b13ee08f1c00cc6fb80 /xmake/modules/private | |
| parent | f621c95f5994a3acaacbed96f204c285f9b7449b (diff) | |
improve extension again
Diffstat (limited to 'xmake/modules/private')
| -rw-r--r-- | xmake/modules/private/action/require/impl/actions/download.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xmake/modules/private/action/require/impl/actions/download.lua b/xmake/modules/private/action/require/impl/actions/download.lua index 56d529fa5..47690273e 100644 --- a/xmake/modules/private/action/require/impl/actions/download.lua +++ b/xmake/modules/private/action/require/impl/actions/download.lua @@ -39,7 +39,8 @@ function _url_extension(url) local extension = archive.extension(url) if extension == "" then -- maybe non-archive file, e.g. .exe, .sh, .. - extension = path.extension(url) + local urlpath = url:split('?', {plain = true})[1] + extension = path.extension(urlpath) end return extension end |
