Skip to content

build/winget#1049

Draft
ShGKme wants to merge 1 commit intomainfrom
build/winget
Draft

build/winget#1049
ShGKme wants to merge 1 commit intomainfrom
build/winget

Conversation

@ShGKme
Copy link
Copy Markdown
Contributor

@ShGKme ShGKme commented Jan 22, 2025

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

How to publish a package

NOTE: For the stable release the package must be added twice:

  • Nextcloud.Talk - the stable package
  • Nextcloud.Talk.Beta - the beta package, so the beta channel users can get the latest version, when there is no newer beta

1. Install create tool on Windows, using 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 release

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 release

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)
winget validate --manifest .\manifests\n\Nextcloud\Talk\Beta\($version)

# Install
winget install --manifest .\manifests\n\Nextcloud\Talk\($version)
winget install --manifest .\manifests\n\Nextcloud\Talk\Beta\($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)

wingetcreate submit .\manifests\n\Nextcloud\Talk\Beta\($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 <me@shgk.me>

[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.

1 participant