Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
62 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,6 @@ | |
.*.swo | ||
thirdparty | ||
/user.conf | ||
/mobile-passthrough-iso/bin | ||
/helper-iso-files/bin | ||
/LookingGlass | ||
/utils/nvflash_linux |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 8 additions & 10 deletions
18
utils/download-windows-iso.sh → utils/download-windows-iso
100644 → 100755
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,22 @@ | ||
#!/usr/bin/env bash | ||
|
||
SCRIPT_DIR=$(cd "$(dirname "$0")"; pwd) | ||
PROJECT_DIR="${SCRIPT_DIR}/.." | ||
UTILS_DIR="${PROJECT_DIR}/utils" | ||
DISTRO=$("${UTILS_DIR}/distro-info") | ||
DISTRO_UTILS_DIR="${UTILS_DIR}/${DISTRO}" | ||
WIN10_IMG_DESTINATION="$1" | ||
WIN10_IMG_ARCH="$2" | ||
echo "$WIN10_IMG_DESTINATION" | ||
|
||
if [[ "$WIN10_IMG_ARCH" == "x86" ]] || [[ "$WIN10_IMG_ARCH" == "i386" ]] ; then | ||
echo "Retrieving the x86 Windows 10 iso URL." | ||
echo "Retrieving the x86 Windows 10 iso URL..." | ||
WINDOWS_10_ISO_URL=$(curl -LsI -o /dev/null -w %{url_effective} "https://www.itechtics.com/?dl_id=71") | ||
else | ||
echo "Retrieving the x64 Windows 10 iso URL." | ||
echo "Retrieving the x64 Windows 10 iso URL..." | ||
WINDOWS_10_ISO_URL=$(curl -LsI -o /dev/null -w %{url_effective} "https://www.itechtics.com/?dl_id=70") | ||
fi | ||
|
||
echo "Making sure the URL comes from a trusted Microsoft domain..." | ||
if [[ $WINDOWS_10_ISO_URL == https://software-download.microsoft.com/* ]] ; then | ||
echo "Downloading the Windows 10 installation iso." | ||
wget "$WINDOWS_10_ISO_URL" -O "$VM_FILES_DIR/windows10.iso" | ||
echo "Downloading the Windows 10 installation iso..." | ||
wget "$WINDOWS_10_ISO_URL" -O "$WIN10_IMG_DESTINATION" | ||
else | ||
echo "URL validation failed. Please download the Windows 10 iso manually." | ||
exit 1 | ||
fi | ||
fi |