App Package
This is step-by-step, how to create a package for your app, using the Project lifecycle setup. Please see here for more options and information about creating app packages.
New or Update App Package
Add one or more apps to the Files\Apps directory.
In the PowerShell console, run:
PS C:\LS Retail\My Project> .\NewAppPackages.ps1 -Import- This will create a new app package for each app file in the Files\Apps directory and import it into your Update Service server.
- Any package with the same version that exists on the server will be skipped.
- Use -Force to overwrite all existing packages.
- Both the name and ID of the package are determined from the app (app.json).
- See Set a different ID and Name to change the generated values.
- This will create a new app package for each app file in the Files\Apps directory and import it into your Update Service server.
Set a Different ID and Name
To choose a different package ID and name instead of generated from the app:
Open NewAppPackages.ps1 for editing.
Locate where the
$AppToPackageMapis assigned, add a new entry to the hashtable for each app:"6ed20322-04fc-4668-91a4-1388e8470eb0" = @{ Id = 'package-id' Name = "App Name" }- Replace 6ed20322-04fc-4668-91a4-1388e8470eb0 with the app ID.
- Replace package-id with a package ID of choice.
- Replace App Name with the preferred name.