Skip to content

Upload Assets

An asset is the compiled binary that will be distributed to users. Before uploading assets be sure to create a draft release.

In order to upload an asset the following are needed:

  • Application slug
  • Release ID (printed to the console when creating a new draft or can be found on the Cloud Platform page for the specific release)
  • The application asset file
  • Optional: The signature file for the asset

To upload an asset run the following command:

Terminal window
cn release upload {application-slug} {release-id} \
--update-platform {platform-name} \
--file {asset-file-path} \
--signature {signature-file-path}

Common platform names for Tauri are listed below:

Operating Systemx86_64aarch64i686armv7
Linuxlinux-x86_64linux-aarch64linux-i686linux-armv7
macOSdarwin-x86_64darwin-aarch64darwin-i686darwin-armv7
Windowswindows-x86_64windows-aarch64windows-i686windows-armv7

The --update-platform flag is not needed if the asset is for example platform-independent (e.g.: a web app). If no platform is specified, the asset will be presented as a generic asset on the Cloud Platform.

The --signature flag is optional if there exists a .sig file with the same name as the asset file. In that case, the CLI will detect the signature file automatically.

Here is an example of uploading a linux-x86_64 binary for the crabnebula-devtools application with a release ID of 01HKA6TGC281V51NGSRJNTJQAF:

Terminal window
cn release upload "crabnebula-devtools" "01HKA6TGC281V51NGSRJNTJQAF" \
--update-platform linux-x86_64 \
--file path_to_binary \
--signature path_to_signature

After an asset is uploaded it will then show up on the Cloud Platform under the “Releases” section for an application. Repeat this command for each platform and its respective asset to be distributed.

Next, publish the release.