Zum Hauptinhalt springen

Building and packaging an app

in Apps
Autorenliste
veröffentlicht: 1. Feb. 2022|Letzte Aktualisierung: 3. Jan. 2023

Building and packaging an app is necessary for two main things:

  • When you first build your app, you'll need to install an app package so you can use developer mode

  • When you're ready to release a version of your app

Building an app is generally done in two steps, bundling and then compressing as a zip archive.

BuildingCopy link to Building to clipboard

Assuming that you've used the skeleton app template, you can use the following command to build your app:

pnpm build
copy

This will bundle your code, copy assets/entrypoints and provide the app manifest, icon and readme files.

PackagingCopy link to Packaging to clipboard

After building you'll have a new directory in your app project called /dist. This will contain your app package - and this is what you must zip to create the app package archive:

pnpm package
copy

This will then provide you with an app package in ./build.

You can also build and package in one command:

pnpm build:package
copy

InstallingCopy link to Installing to clipboard

You can install your new app package by first uploading it to Deskpro via Admin > Apps & Integrations > Apps > Available (tab) anc clicking on "Upload App".

Select the app zip archive from your local computer and it will be added to your list of available apps.

image.png

HilfreichNicht hilfreich

0 von 1 Personen fanden diese Seite hilfreich

nächste SeiteHow-to: Build a basic notes app
vorherige SeiteDocumentation

Bitte loggen Sie sich ein oder melden Sie sich an, um einen Kommentar zu hinterlassen.