Add network driver to the installer
This commit is contained in:
parent
70645bf34c
commit
9fdcd3dbe6
|
@ -26,6 +26,7 @@ else
|
||||||
bootPath="/media/boot";
|
bootPath="/media/boot";
|
||||||
dataPath="/media/data";
|
dataPath="/media/data";
|
||||||
setupLabel="winiso";
|
setupLabel="winiso";
|
||||||
|
networkDriverArchive="./$buildDir/network.zip";
|
||||||
gitArchive="$(realpath "./$buildDir/git.msi")";
|
gitArchive="$(realpath "./$buildDir/git.msi")";
|
||||||
pwshArchive="./$buildDir/pwsh.zip";
|
pwshArchive="./$buildDir/pwsh.zip";
|
||||||
editionField="Edition ID";
|
editionField="Edition ID";
|
||||||
|
@ -33,6 +34,11 @@ else
|
||||||
mkdir -p "$buildDir";
|
mkdir -p "$buildDir";
|
||||||
cp -r winfs/* "$overlayDir";
|
cp -r winfs/* "$overlayDir";
|
||||||
|
|
||||||
|
if [ ! -f "$networkDriverArchive" ]
|
||||||
|
then
|
||||||
|
curl -L "https://dlcdnets.asus.com/pub/ASUS/mb/04LAN/DRV_LAN_Marvell_TP_TSD_W11_64_V3130_20211118R.zip?model=ROG%20ZENITH%20EXTREME%20ALPHA" -o "$networkDriverArchive";
|
||||||
|
fi;
|
||||||
|
|
||||||
if [ ! -f "$gitArchive" ]
|
if [ ! -f "$gitArchive" ]
|
||||||
then
|
then
|
||||||
curl -L "https://github.com/git-for-windows/git/releases/download/v2.41.0.windows.1/PortableGit-2.41.0-64-bit.7z.exe" -o "$gitArchive";
|
curl -L "https://github.com/git-for-windows/git/releases/download/v2.41.0.windows.1/PortableGit-2.41.0-64-bit.7z.exe" -o "$gitArchive";
|
||||||
|
@ -43,6 +49,8 @@ else
|
||||||
curl -L "https://github.com/PowerShell/PowerShell/releases/download/v7.3.4/PowerShell-7.3.4-win-x64.zip" -o "$pwshArchive";
|
curl -L "https://github.com/PowerShell/PowerShell/releases/download/v7.3.4/PowerShell-7.3.4-win-x64.zip" -o "$pwshArchive";
|
||||||
fi;
|
fi;
|
||||||
|
|
||||||
|
unzip "$networkDriverArchive" -d "$overlayDir/drivers/Network";
|
||||||
|
|
||||||
mkdir -p "$overlayDir/git";
|
mkdir -p "$overlayDir/git";
|
||||||
pushd "$overlayDir/git" > /dev/null;
|
pushd "$overlayDir/git" > /dev/null;
|
||||||
7z x "$gitArchive";
|
7z x "$gitArchive";
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
@echo off
|
@echo off
|
||||||
wpeutil SetKeyboardLayout 0807:00000807
|
wpeutil SetKeyboardLayout 0807:00000807
|
||||||
|
drvload X:\drivers\Network\x64\win10-win11\aqnic650.inf
|
||||||
echo Launching Startup Script...
|
echo Launching Startup Script...
|
||||||
start X:\PowerShell\pwsh.exe -NoExit -ExecutionPolicy bypass -file "X:\Scripts\Startup.ps1"
|
start X:\PowerShell\pwsh.exe -NoExit -ExecutionPolicy bypass -file "X:\Scripts\Startup.ps1"
|
||||||
|
|
Loading…
Reference in a new issue