|
|
@@ -7,11 +7,10 @@ $dist = "dist"
|
|
|
$src = "WinImager"
|
|
|
$sfx = "sfx"
|
|
|
|
|
|
-
|
|
|
$szfile = "$dist/WinImager.7z"
|
|
|
$exefile = "$dist/WinImager.exe"
|
|
|
|
|
|
-New-Item -itemtype directory -Path "$dist" -Force
|
|
|
+New-Item -itemtype directory -Path $dist -Force
|
|
|
Remove-Item -Force $szfile
|
|
|
|
|
|
&$sevenzip a $szfile $src "-xr0!*.log"
|
|
|
@@ -20,7 +19,14 @@ Get-Content -Encoding Byte -Read 512 -Path "$sfx/7zsd_All_x64.sfx","$sfx/sfx_con
|
|
|
Set-Content -Encoding Byte $exefile
|
|
|
|
|
|
|
|
|
+$PSVERSION="7.2.5"
|
|
|
+$PSFILE="PowerShell-$PSVERSION-win-x64.zip"
|
|
|
+$PSURL="https://github.com/PowerShell/PowerShell/releases/download/v$PSVERSION/$PSFILE"
|
|
|
+
|
|
|
+$PSTOOLSFILE="PSTools.zip"
|
|
|
+$PSTOOLSURL="https://download.sysinternals.com/files/$PSTOOLSFILE"
|
|
|
$wintermsfx_build="wintermsfx\build"
|
|
|
+New-Item -itemtype directory -Path $wintermsfx_build -Force
|
|
|
|
|
|
if ($null -eq (Get-Item "$wintermsfx_build\windowsterminal")){
|
|
|
.\wintermsfx\wintermportable.ps1
|
|
|
@@ -30,12 +36,6 @@ Copy-Item -Force .\wintermsfx\main.ps1 "$wintermsfx_build\main.ps1"
|
|
|
cd $wintermsfx_build
|
|
|
Remove-Item -Force windowsterminal.7z
|
|
|
|
|
|
-$PSVERSION="7.2.5"
|
|
|
-$PSFILE="PowerShell-$PSVERSION-win-x64.zip"
|
|
|
-$PSURL="https://github.com/PowerShell/PowerShell/releases/download/v$PSVERSION/$PSFILE"
|
|
|
-
|
|
|
-$PSTOOLSFILE="PSTools.zip"
|
|
|
-$PSTOOLSURL="https://download.sysinternals.com/files/$PSTOOLSFILE"
|
|
|
|
|
|
if ($null -eq (Get-Item $PSFILE)){
|
|
|
Invoke-WebRequest -Uri $PSURL -OutFile $PSFILE
|