Compare commits
No commits in common. "af2e58552f626ba40644b99454ca1e42c16d1d84" and "d6b6bd56e0339d3f504f36e70ea8466116919119" have entirely different histories.
af2e58552f
...
d6b6bd56e0
3 changed files with 10 additions and 9 deletions
|
@ -26,24 +26,17 @@ else
|
||||||
bootPath="/media/boot";
|
bootPath="/media/boot";
|
||||||
dataPath="/media/data";
|
dataPath="/media/data";
|
||||||
setupLabel="winiso";
|
setupLabel="winiso";
|
||||||
gitArchive="./$buildDir/git.msi";
|
|
||||||
pwshArchive="./$buildDir/pwsh.zip";
|
pwshArchive="./$buildDir/pwsh.zip";
|
||||||
editionField="Edition ID";
|
editionField="Edition ID";
|
||||||
|
|
||||||
mkdir -p "$buildDir";
|
mkdir -p "$buildDir";
|
||||||
cp -r winfs/* "$overlayDir";
|
cp -r winfs/* "$overlayDir";
|
||||||
|
|
||||||
if [ ! -f "$gitArchive" ]
|
|
||||||
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";
|
|
||||||
fi;
|
|
||||||
|
|
||||||
if [ ! -f "$pwshArchive" ]
|
if [ ! -f "$pwshArchive" ]
|
||||||
then
|
then
|
||||||
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 "$pwshArchive" -d "$overlayDir/git";
|
|
||||||
unzip "$pwshArchive" -d "$overlayDir/PowerShell";
|
unzip "$pwshArchive" -d "$overlayDir/PowerShell";
|
||||||
|
|
||||||
sudo mount --mkdir "$WIN11_IMAGE_PATH" "$mountPath";
|
sudo mount --mkdir "$WIN11_IMAGE_PATH" "$mountPath";
|
||||||
|
|
|
@ -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 -ExecutionPolicy bypass -file "X:\Scripts\Startup.ps1"
|
X:\PowerShell\pwsh.exe -ExecutionPolicy bypass -file "X:\Scripts\Startup.ps1"
|
||||||
|
|
|
@ -1,6 +1,14 @@
|
||||||
$null = $env:WIN_COMPUTER_NAME;
|
$null = $env:WIN_COMPUTER_NAME;
|
||||||
$null = $env:SETUP_SCRIPT_NAME;
|
$null = $env:SETUP_SCRIPT_NAME;
|
||||||
|
|
||||||
& "X:\git\git.exe" clone https://git.nuth.ch/manuth/PortValhalla.git;
|
Set-ExecutionPolicy Bypass -Scope Process -Force;
|
||||||
|
[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072;
|
||||||
|
Invoke-Expression ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'));
|
||||||
|
|
||||||
|
Import-Module $env:ChocolateyInstall/helpers/chocolateyProfile.psm1;
|
||||||
|
choco install -y git
|
||||||
|
choco install -y powershell-core;
|
||||||
|
refreshenv;
|
||||||
|
git clone https://git.nuth.ch/manuth/PortValhalla.git;
|
||||||
Set-Location PortValhalla;
|
Set-Location PortValhalla;
|
||||||
pwsh;
|
pwsh;
|
||||||
|
|
Loading…
Reference in a new issue