feat: create winget package workflow (#4761)

Co-authored-by: Dean Sheather <dean@deansheather.com>
This commit is contained in:
Muhammad Atif Ali
2022-11-14 15:59:08 +03:00
committed by GitHub
parent 1b6d0c39e1
commit 990be63c60
3 changed files with 57 additions and 1 deletions

View File

@ -67,7 +67,9 @@ fi
# Remove the "v" prefix and ensure the version is in the format X.X.X.X for
# makensis.
nsis_version="${version//-*/}"
nsis_version+=".$(date -u +%Y%m%d%H%M)"
# Each component of a version must be a 16 bit integer, so we can't store any
# useful information like build date or commit SHA in the 4th component.
nsis_version+=".0"
# Check dependencies
dependencies makensis

View File

@ -2,6 +2,9 @@
# adapted to Coder's needs:
# https://www.conjur.org/blog/building-a-windows-installer-from-a-linux-ci-pipeline/
# Since we only build an AMD64 installer for now, ensure that the generated
# installer matches so wingetcreate can sniff the architecture properly.
CPU amd64
Unicode true
!define APP_NAME "Coder"