Skip to content

Commit 657287b

Browse files
authored
Merge pull request #56 from mtniehaus/niehaus/makeapp
Fix makeapp logic to require PowerShell 7
2 parents be680cb + 1c5e01c commit 657287b

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

AutopilotBranding/AutopilotBranding.ps1

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<#PSScriptInfo
2-
.VERSION 3.2.0
2+
.VERSION 3.2.1
33
.GUID 39efc9c5-7b51-4d1f-b650-0f3818e5327a
44
.AUTHOR Michael Niehaus
55
.COMPANYNAME
@@ -30,7 +30,8 @@ v3.0.3 - 2025-05-02 - Additional fixes based on user feedback; tweaked script fo
3030
v3.0.4 - 2025-05-02 - Fixed FSIA default (should be 0)
3131
v3.0.5 - 2025-05-14 - Remove logic that removed widgets, cross-device app.
3232
v3.1.0 - 2025-06-01 - Modified WinGet logic, switched to PowerShell for creating package
33-
v3.2.0 - 2025-07-15 - Packaging changes to makeapp.ps1
33+
v3.2.0 - 2025-07-15 - Various fixes (start menu layout, apps, etc.)
34+
v3.2.1 - 2025-07-15 - Updated makeapps.cmd to use PowerShell 7
3435
#>
3536

3637
function Log() {

makeapp.cmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
@echo off
22
pushd %~dp0
3-
powershell.exe -noprofile -executionpolicy bypass -file makeapp.ps1 -SourceFolder .\AutopilotBranding -SetupFile AutopilotBranding.ps1
3+
pwsh.exe -noprofile -executionpolicy bypass -file makeapp.ps1 -SourceFolder .\AutopilotBranding -SetupFile AutopilotBranding.ps1
44
popd

makeapp.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ if (-not $provider) {
2323
}
2424

2525
# Install and import the module to create the .intunewin file
26-
Install-Module SvRooij.ContentPrep.Cmdlet
26+
Install-Module SvRooij.ContentPrep.Cmdlet -MinimumVersion 0.3.0
2727
Import-Module SvRooij.ContentPrep.Cmdlet
2828

2929
# Create the .intunewin file

0 commit comments

Comments
 (0)