Preskoči in pojdi v glavno vsebino

Building and packaging an app

v Apps
Seznam avtorjev
Objavljeno: 1. feb. 2022|Nazadnje Posodobljeno: 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

UporabnoNeuporabno

0 od skupaj 1 oseb je ocenilo to stran kot uporabno.

naslednja stranHow-to: Build a basic notes app
Prejšnja stranDocumentation

Pred objavo komentarja se moraš prijaviti.