Search Results for

    Show / Hide Table of Contents

    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

    1. Open a PowerShell console.
    2. Add one or more apps to the Files\Apps directory.
    3. 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.
    4. Now add the app package to a bundle.

    Set a Different ID and Name

    To choose a different package ID and name instead of generated from the app:

    1. Open NewAppPackages.ps1 for editing.
    2. Locate where the $AppToPackageMap is 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.
    In This Article
    Back to top Generated by DocFX