Snapcraft
Esta página aún no está disponible en tu idioma.
Prerequisites
1. Install snap
Reboot your system afterwards.
2. Install a base snap
3. Install snapcraft
Configuration
- Create an UbuntuOne account.
- Go to the Snapcraft website and register an App name.
- Create a snapcraft.yaml file in your projects root.
- Adjust the names in the snapcraft.yaml file.
Explanation
- The
name
variable defines the name of your app and is required to be set to the name that you have registered earlier. - The
base
variable defines which core you are using. - The
version
variable defines the version, and should be updated with each change to the source repository. - The
apps
section allows you to expose the desktop and binary files to allow the user to run your app. - The
package-repositories
section allows you to add a package repository to help you satisfy your dependencies. build-packages
/build-snaps
defines the build dependencies for your snap.stage-packages
/stage-snaps
defines the runtime dependencies for your snap.- The
override-pull
section runs a series of commands before the sources are pulled. craftctl default
performs the default pull commands.- The
organize
section moves your files to the proper directories so that the binary and desktop file can be exposed to theapps
sections.
Building
Testing
Releasing Manually
Building automatically
- On your apps developer page click on the
builds
tab. - Click
login with github
. - Enter in your repository’s details.
© 2024 Tauri Contributors. CC-BY / MIT