Normalize the package extraction path
This commit is contained in:
parent
8a445f0f71
commit
ab28605732
4 changed files with 17 additions and 12 deletions
23
deploy.fish
23
deploy.fish
|
@ -53,7 +53,8 @@ begin
|
||||||
|
|
||||||
set -a files \
|
set -a files \
|
||||||
"$downloadPath" \
|
"$downloadPath" \
|
||||||
"$dir"
|
"$dir" \
|
||||||
|
"$name"
|
||||||
|
|
||||||
mkdir -p (dirname "$downloadPath")
|
mkdir -p (dirname "$downloadPath")
|
||||||
|
|
||||||
|
@ -62,10 +63,10 @@ begin
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
set -l intel $files[1..2]
|
set -l intel $files[1..3]
|
||||||
set -l marvell $files[3..4]
|
set -l marvell $files[4..6]
|
||||||
set -l git $files[5..6]
|
set -l git $files[7..9]
|
||||||
set -l pwsh $files[7..8]
|
set -l pwsh $files[10..12]
|
||||||
|
|
||||||
cp -r "$dir/winfs"/* "$winpeOverlay"
|
cp -r "$dir/winfs"/* "$winpeOverlay"
|
||||||
mkdir -p "$winpeOverlay/drivers"
|
mkdir -p "$winpeOverlay/drivers"
|
||||||
|
@ -73,14 +74,16 @@ begin
|
||||||
begin
|
begin
|
||||||
set -l tempDir (mktemp -d)
|
set -l tempDir (mktemp -d)
|
||||||
unzip "$intel[1]" -d "$tempDir"
|
unzip "$intel[1]" -d "$tempDir"
|
||||||
cp -r "$tempDir/$intel[2]" "$winpeOverlay/drivers/IntelNetwork"
|
mkdir -p (dirname "$winpeOverlay/$intel[3]")
|
||||||
|
cp -r "$tempDir/$intel[2]" "$winpeOverlay/$intel[3]"
|
||||||
rm -rf "$tempDir"
|
rm -rf "$tempDir"
|
||||||
end
|
end
|
||||||
|
|
||||||
begin
|
begin
|
||||||
set -l tempDir (mktemp -d)
|
set -l tempDir (mktemp -d)
|
||||||
unzip "$marvell[1]" -d "$tempDir"
|
unzip "$marvell[1]" -d "$tempDir"
|
||||||
cp -r "$tempDir/$marvell[2]" "$winpeOverlay/drivers/MarvellNetwork"
|
mkdir -p (dirname "$winpeOverlay/$marvell[3]")
|
||||||
|
cp -r "$tempDir/$marvell[2]" "$winpeOverlay/$marvell[3]"
|
||||||
rm -rf "$tempDir"
|
rm -rf "$tempDir"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -89,14 +92,16 @@ begin
|
||||||
pushd "$tempDir" > /dev/null
|
pushd "$tempDir" > /dev/null
|
||||||
7z x "$git[1]"
|
7z x "$git[1]"
|
||||||
popd > /dev/null
|
popd > /dev/null
|
||||||
cp -r "$tempDir/$git[2]" "$winpeOverlay/git"
|
mkdir -p (dirname "$winpeOverlay/$git[3]")
|
||||||
|
cp -r "$tempDir/$git[2]" "$winpeOverlay/$git[3]"
|
||||||
rm -rf "$tempDir"
|
rm -rf "$tempDir"
|
||||||
end
|
end
|
||||||
|
|
||||||
begin
|
begin
|
||||||
set -l tempDir (mktemp -d)
|
set -l tempDir (mktemp -d)
|
||||||
unzip "$pwsh[1]" -d "$tempDir"
|
unzip "$pwsh[1]" -d "$tempDir"
|
||||||
cp -r "$tempDir/$pwsh[2]" "$winpeOverlay/PowerShell"
|
mkdir -p (dirname "$winpeOverlay/$pwsh[3]")
|
||||||
|
cp -r "$tempDir/$pwsh[2]" "$winpeOverlay/$pwsh[3]"
|
||||||
rm -rf "$tempDir"
|
rm -rf "$tempDir"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
@echo off
|
@echo off
|
||||||
wpeutil SetKeyboardLayout 0807:00000807
|
wpeutil SetKeyboardLayout 0807:00000807
|
||||||
echo Launching Startup Script...
|
echo Launching Startup Script...
|
||||||
start X:\PowerShell\pwsh.exe -NoExit -ExecutionPolicy bypass -file "X:\Scripts\Startup.ps1"
|
start X:\software\pwsh\pwsh.exe -NoExit -ExecutionPolicy bypass -file "X:\Scripts\Startup.ps1"
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
$null = $env:WIN_COMPUTER_NAME;
|
$null = $env:WIN_COMPUTER_NAME;
|
||||||
$null = $env:SETUP_SCRIPT_NAME;
|
$null = $env:SETUP_SCRIPT_NAME;
|
||||||
|
|
||||||
Set-Alias git "X:/git/bin/git.exe";
|
Set-Alias git "X:/software/git/bin/git.exe";
|
||||||
git clone https://git.nuth.ch/manuth/PortValhalla.git;
|
git clone https://git.nuth.ch/manuth/PortValhalla.git;
|
||||||
Set-Location PortValhalla;
|
Set-Location PortValhalla;
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
echo Loading Drivers...
|
echo Loading Drivers...
|
||||||
X:\PowerShell\pwsh.exe -file "X:\Scripts\Drivers.ps1"
|
X:\software\pwsh\pwsh.exe -file "X:\Scripts\Drivers.ps1"
|
||||||
echo Configuring Network...
|
echo Configuring Network...
|
||||||
wpeinit
|
wpeinit
|
||||||
powercfg /s 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c
|
powercfg /s 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c
|
||||||
|
|
Loading…
Reference in a new issue