Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Corrected "Create-Win32App.ps1" Folder path Value #15

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions scripts/Create-Win32App.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ process {
$AppData = Get-Content -Path $Json | ConvertFrom-Json

# Required packaging variables
$ScriptsFolder = [System.IO.Path]::Combine($PSScriptRoot, "Scripts")
$ScriptsFolder = $PSScriptRoot

# Icon file - download the file, if the property is a URL
if ($AppData.PackageInformation.IconFile -match "^http") {
Expand Down Expand Up @@ -206,7 +206,7 @@ process {
# Create a custom script based requirement rule
$RequirementRuleArgs = @{
"IntegerOutputDataType" = $true
"ScriptFile" = $RequirementRuleItem.ScriptFile
"ScriptFile" = (Join-Path -Path $ScriptsFolder -ChildPath $RequirementRuleItem.ScriptFile)
"ScriptContext" = $RequirementRuleItem.ScriptContext
"IntegerComparisonOperator" = $RequirementRuleItem.Operator
"IntegerValue" = $RequirementRuleItem.Value
Expand All @@ -218,7 +218,7 @@ process {
# Create a custom script based requirement rule
$RequirementRuleArgs = @{
"BooleanOutputDataType" = $true
"ScriptFile" = $RequirementRuleItem.ScriptFile
"ScriptFile" = (Join-Path -Path $ScriptsFolder -ChildPath $RequirementRuleItem.ScriptFile)
"ScriptContext" = $RequirementRuleItem.ScriptContext
"BooleanComparisonOperator" = $RequirementRuleItem.Operator
"BooleanValue" = $RequirementRuleItem.Value
Expand All @@ -230,7 +230,7 @@ process {
# Create a custom script based requirement rule
$RequirementRuleArgs = @{
"DateTimeOutputDataType" = $true
"ScriptFile" = $RequirementRuleItem.ScriptFile
"ScriptFile" = (Join-Path -Path $ScriptsFolder -ChildPath $RequirementRuleItem.ScriptFile)
"ScriptContext" = $RequirementRuleItem.ScriptContext
"DateTimeComparisonOperator" = $RequirementRuleItem.Operator
"DateTimeValue" = $RequirementRuleItem.Value
Expand All @@ -242,7 +242,7 @@ process {
# Create a custom script based requirement rule
$RequirementRuleArgs = @{
"FloatOutputDataType" = $true
"ScriptFile" = $RequirementRuleItem.ScriptFile
"ScriptFile" = (Join-Path -Path $ScriptsFolder -ChildPath $RequirementRuleItem.ScriptFile)
"ScriptContext" = $RequirementRuleItem.ScriptContext
"FloatComparisonOperator" = $RequirementRuleItem.Operator
"FloatValue" = $RequirementRuleItem.Value
Expand All @@ -254,7 +254,7 @@ process {
# Create a custom script based requirement rule
$RequirementRuleArgs = @{
"VersionOutputDataType" = $true
"ScriptFile" = $RequirementRuleItem.ScriptFile
"ScriptFile" = (Join-Path -Path $ScriptsFolder -ChildPath $RequirementRuleItem.ScriptFile)
"ScriptContext" = $RequirementRuleItem.ScriptContext
"VersionComparisonOperator" = $RequirementRuleItem.Operator
"VersionValue" = $RequirementRuleItem.Value
Expand Down