Skip to content

Conversation

@ShGKme
Copy link
Contributor

@ShGKme ShGKme commented Jan 22, 2025

⚠️⚠️⚠️⚠️⚠️⚠️
⚠️ Do not merge ⚠️
⚠️⚠️⚠️⚠️⚠️⚠️

How to publish a package

1. Install create tool on Windows, use pwsh

winget install wingetcreate

2. Add a new manifest

Replace ($version) with a new version number e.g. 1.2.3.

Set the release date manually, if publishing not on the same day.

Stable

NOTE: For the stable release the package must be added twice: for Nextcloud.Talk and Nextcloud.Talk.Beta, so the beta channel users can get the latest version, when there is no newer beta yet.

wingetcreate update Nextcloud.Talk --urls https://github.com/nextcloud-releases/talk-desktop/releases/download/v($version)/Nextcloud.Talk-windows-x64.exe https://github.com/nextcloud-releases/talk-desktop/releases/download/v($version)/Nextcloud.Talk-windows-x64.msi --version ($version) --release-date (Get-Date -Format "yyyy-MM-dd")

wingetcreate update Nextcloud.Talk.Beta --urls https://github.com/nextcloud-releases/talk-desktop/releases/download/v($version)/Nextcloud.Talk-windows-x64.exe https://github.com/nextcloud-releases/talk-desktop/releases/download/v($version)/Nextcloud.Talk-windows-x64.msi --version ($version) --release-date (Get-Date -Format "yyyy-MM-dd")

Beta

wingetcreate update Nextcloud.Talk.Beta --urls https://github.com/nextcloud-releases/talk-desktop/releases/download/v($version)/Nextcloud.Talk-beta-windows-x64.exe https://github.com/nextcloud-releases/talk-desktop/releases/download/v($version)/Nextcloud.Talk-beta-windows-x64.msi --version ($version) --release-date (Get-Date -Format "yyyy-MM-dd")

3. Verify

Stable

# Validate
winget validate --manifest .\manifests\n\Nextcloud\Talk\($version)

# Install
winget install --manifest .\manifests\n\Nextcloud\Talk\($version)

Beta

# Validate
winget validate --manifest .\manifests\n\Nextcloud\Talk\Beta\($version)

# Install
winget install --manifest .\manifests\n\Nextcloud\Talk\Beta\($version)

4. Submit

Stable

wingetcreate submit .\manifests\n\Nextcloud\Talk\($version)

Beta

wingetcreate submit .\manifests\n\Nextcloud\Talk\Beta\($version)

Proceed in the web-browser in the GitHub Pull Request

5. Update this branch

Rebase onto main and push changes

Signed-off-by: Grigorii K. Shartsev <[email protected]>

[skip ci]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

distribution 📦 Building, packaging, publishing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants