-
Notifications
You must be signed in to change notification settings - Fork 248
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Expose Copy-AppFilesToFolder and Get-AppJsonFromAppFile to public Make Sort-AppFilesByDependencies use Get-AppJsonFromAppFile instead of a container Fix bug in NormalizeVersionStr New function Create-SymbolsFileFromAppFile --------- Co-authored-by: freddydk <[email protected]>
- Loading branch information
Showing
12 changed files
with
107 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<# | ||
.Synopsis | ||
Copy App Files to Folder (supporting urls, .zip files and .app files) | ||
.Description | ||
.Parameter appFiles | ||
Can be an array of appfiles, urls or zip files | ||
.Parameter folder | ||
Folder to copy the app files to | ||
.Example | ||
Copy-AppFilesToFolder -appFiles @("c:\temp\apps.zip", "c:\temp\app2.app", "https://github.com/org/repo/releases/download/2.0.200/project-branch-Apps-1.0.0.0.zip") -folder "c:\temp\appfiles" | ||
#> | ||
function Copy-AppFilesToFolder { | ||
Param( | ||
$appFiles, | ||
[string] $folder | ||
) | ||
|
||
CopyAppFilesToFolder -appFiles $appFiles -folder $folder | ||
} | ||
Export-ModuleMember -Function Copy-AppFilesToFolder |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<# | ||
.Synopsis | ||
Create a Symbols only .app file from an .app file | ||
.Description | ||
.Parameter AppFile | ||
Path of the application file which should be converted to symbols | ||
.Parameter symbolsFile | ||
Path of the symbols file which should be created | ||
.Example | ||
Create-SymbolsFileFromAppFile -appFile c:\temp\baseapp.app -symbolsFile c:\temp\baseapp.symbols.app | ||
#> | ||
function Create-SymbolsFileFromAppFile { | ||
Param( | ||
[Parameter(Mandatory=$true)] | ||
[string] $appFile, | ||
[Parameter(Mandatory=$true)] | ||
[string] $symbolsFile | ||
) | ||
RunAlTool -arguments @('CreateSymbolPackage', """$appFile""", """$symbolsFile""") | ||
} | ||
Export-ModuleMember -Function Create-SymbolsFileFromAppFile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<# | ||
.Synopsis | ||
Extract the app.json file from an app (also from runtime packages) | ||
.Description | ||
.Parameter AppFile | ||
Path of the application file from which to extract the app.json | ||
.Example | ||
Get-AppJsonFromAppFile -appFile c:\temp\baseapp.app | ||
#> | ||
function Get-AppJsonFromAppFile { | ||
Param( | ||
[Parameter(Mandatory=$true)] | ||
[string] $appFile | ||
) | ||
$appJson = RunAlTool -arguments @('GetPackageManifest', """$appFile""") | ||
if (!($appJson.PSObject.Properties.Name -eq "description")) { Add-Member -InputObject $appJson -MemberType NoteProperty -Name "description" -Value "" } | ||
if (!($appJson.PSObject.Properties.Name -eq "dependencies")) { Add-Member -InputObject $appJson -MemberType NoteProperty -Name "dependencies" -Value @() } | ||
return $appJson | ||
} | ||
Export-ModuleMember -Function Get-AppJsonFromAppFile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters