Skip to content

Commit 6825b6a

Browse files
authored
fix: Update download links (#980)
1 parent c82725e commit 6825b6a

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
ARG VERSION_ARG="latest"
22
FROM scratch AS build-amd64
33

4-
COPY --from=qemux/qemu-docker:6.11 / /
4+
COPY --from=qemux/qemu-docker:6.12 / /
55

66
ARG DEBCONF_NOWARNINGS="yes"
77
ARG DEBIAN_FRONTEND="noninteractive"
@@ -29,7 +29,7 @@ RUN set -eu && \
2929
COPY --chmod=755 ./src /run/
3030
COPY --chmod=755 ./assets /run/assets
3131

32-
ADD --chmod=664 https://github.com/qemus/virtiso-whql/releases/download/v1.9.43-0/virtio-win-1.9.43.tar.xz /drivers.txz
32+
ADD --chmod=664 https://github.com/qemus/virtiso-whql/releases/download/v1.9.44-0/virtio-win-1.9.44.tar.xz /drivers.txz
3333

3434
FROM dockurr/windows-arm:${VERSION_ARG} AS build-arm64
3535
FROM build-${TARGETARCH}

src/define.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,10 @@ fromFile() {
502502
local file="${1,,}"
503503
local arch="${PLATFORM,,}"
504504

505-
case "${file// /_}" in
505+
file="${file//-/_}"
506+
file="${file// /_}"
507+
508+
case "$file" in
506509
*"_x64_"* | *"_x64."*)
507510
arch="x64"
508511
;;
@@ -517,7 +520,7 @@ fromFile() {
517520
local add=""
518521
[[ "$arch" != "x64" ]] && add="$arch"
519522

520-
case "${file// /_}" in
523+
case "$file" in
521524
"win7"* | "win_7"* | *"windows7"* | *"windows_7"* )
522525
id="win7${arch}"
523526
;;

src/mido.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -620,10 +620,11 @@ getMG() {
620620
}
621621

622622
local list=""
623-
list=$(echo "$body" | grep -Eo "(http|https)://[a-zA-Z0-9./?=_%:-]*" | grep -i '\.iso$')
623+
list=$(echo "$body" | xmllint --html --nonet --xpath "//a[contains(text(), '.iso')]" - 2>/dev/null)
624624

625625
local result=""
626626
result=$(echo "$list" | grep -i "${platform}" | grep "${pattern}" | grep -i -m 1 "${locale,,}_")
627+
result=$(echo "$result" | sed -r 's/.*href="([^"]+).*/\1/g')
627628

628629
if [ -z "$result" ]; then
629630
if [[ "${lang,,}" != "en" ]] && [[ "${lang,,}" != "en-"* ]]; then

0 commit comments

Comments
 (0)