Skip to content

Commit 0692bf6

Browse files
committed
chore: fix winget package
1 parent 2b00e3d commit 0692bf6

File tree

4 files changed

+24
-19
lines changed

4 files changed

+24
-19
lines changed

.github/workflows/build-binaries.yaml

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ on:
99
python_version:
1010
required: true
1111
type: string
12+
release_version_tag:
13+
required: false
14+
type: string
15+
default: "v2.2.0"
1216

1317
jobs:
1418
build-binaries:
@@ -18,13 +22,14 @@ jobs:
1822
# macos-14 is the Apple Silicon M1 runner (mac os 14)
1923
# macos-13 is the last available Intel Mac runner (mac os 13)
2024
# See https://github.com/actions/runner-images?tab=readme-ov-file#available-images
21-
os: [ubuntu-20.04, windows-latest, macos-13, macos-14]
25+
os: [windows-latest]
2226

2327
steps:
2428
- name: Checkout source code
2529
uses: actions/checkout@v4
2630
with:
27-
fetch-depth: ${{ inputs.production_release == 'true' && '0' || '1' }}
31+
ref: ${{ inputs.release_version_tag }}
32+
fetch-depth: "1"
2833

2934
- name: Set up Python
3035
uses: actions/setup-python@v5
@@ -42,7 +47,7 @@ jobs:
4247
continue-on-error: true
4348
if: ${{ inputs.production_release == 'true' }}
4449
run: |
45-
echo "RELEASE_VERSION_TAG=$(git describe --tags $(git rev-list --tags --max-count=1))" >> $GITHUB_ENV
50+
echo "RELEASE_VERSION_TAG=${{ inputs.release_version_tag }}" >> $GITHUB_ENV
4651
4752
- name: Configure build environment
4853
shell: bash
@@ -114,12 +119,12 @@ jobs:
114119
$adjusted = '${{ env.ARTIFACTS_DIR }}' -replace '\\','/'
115120
echo "ARTIFACTS_DIR=$adjusted" >> $env:GITHUB_ENV
116121
117-
- name: Append artifacts to release
118-
if: ${{ inputs.production_release == 'true' }}
119-
uses: softprops/action-gh-release@v1
120-
with:
121-
fail_on_unmatched_files: true
122-
files: |
123-
${{ env.ARTIFACTS_DIR }}/*.*
124-
tag_name: ${{ env.RELEASE_VERSION_TAG }}
125-
prerelease: ${{ contains(env.RELEASE_VERSION_TAG, 'beta') }}
122+
# - name: Append artifacts to release
123+
# if: ${{ inputs.production_release == 'true' }}
124+
# uses: softprops/action-gh-release@v1
125+
# with:
126+
# fail_on_unmatched_files: true
127+
# files: |
128+
# ${{ env.ARTIFACTS_DIR }}/*.*
129+
# tag_name: ${{ env.RELEASE_VERSION_TAG }}
130+
# prerelease: ${{ contains(env.RELEASE_VERSION_TAG, 'beta') }}

.github/workflows/pr.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
name: Codebase validation
22

33
on:
4-
pull_request:
5-
schedule:
6-
- cron: "0 8 * * 1" # Each monday 8 AM UTC
4+
push:
5+
branches:
6+
- winget-patch
77

88
concurrency:
99
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
@@ -24,6 +24,6 @@ jobs:
2424
needs: pr-check
2525
uses: ./.github/workflows/build-binaries.yaml
2626
with:
27-
production_release: "false"
27+
production_release: "true"
2828
python_version: "3.12"
2929
secrets: inherit

scripts/winget/build-installer.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ $version = if ($releaseVersion) {
3737
}
3838
else {
3939
'0.0.1'
40-
}
41-
(Get-Content (Resolve-Path "$installerContentDir\AppxManifest.xml")).Replace('0.0.1.0', $("$version.0")) | Set-Content (Join-Path $buildDir AppxManifest.xml)
40+
}
41+
(Get-Content (Resolve-Path "$installerContentDir\AppxManifest.xml")).Replace('"0.0.1.0"', "$("$version.0")").Replace('"0.0.1"', "$("$version")") | Set-Content (Join-Path $buildDir AppxManifest.xml)
4242

4343
# Generate pri resource map for installer assets
4444
$priConfig = (Resolve-Path "$installerContentDir\priconfig.xml")

scripts/winget/installer/AppxManifest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Package xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10" xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10" xmlns:uap10="http://schemas.microsoft.com/appx/manifest/uap/windows10/10" xmlns:uap3="http://schemas.microsoft.com/appx/manifest/uap/windows10/3" xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities" xmlns:desktop="http://schemas.microsoft.com/appx/manifest/desktop/windows10" IgnorableNamespaces="uap uap3 uap10 desktop rescap">
3-
<Identity Name="algokit" Publisher="CN=Algorand Foundation, O=Algorand Foundation, L=Singapore, C=SG" Version="0.0.1.0" ProcessorArchitecture="x64" />
3+
<Identity Name="algokit" Publisher="CN=Algorand Foundation, O=Algorand Foundation, L=Singapore, C=SG" Version="0.0.1.0" DisplayVersion="0.0.1" ProcessorArchitecture="x64" />
44
<Properties>
55
<DisplayName>AlgoKit</DisplayName>
66
<PublisherDisplayName>Algorand Foundation</PublisherDisplayName>

0 commit comments

Comments
 (0)