Skip to content

Commit aa8c5fc

Browse files
committed
fix: simplify Chocolatey installation and make version check non-fatal
1 parent 14f294b commit aa8c5fc

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -43,23 +43,19 @@ jobs:
4343
# Download and extract Chocolatey
4444
sudo mkdir -p /opt/chocolatey
4545
cd /tmp
46-
wget "https://github.com/chocolatey/choco/releases/download/2.4.1/chocolatey.v2.4.1.tar.gz"
46+
wget -q "https://github.com/chocolatey/choco/releases/download/2.4.1/chocolatey.v2.4.1.tar.gz"
4747
sudo tar -xzf chocolatey.v2.4.1.tar.gz -C /opt/chocolatey
4848
49-
# Verify choco.exe exists and is the right file
50-
echo "Checking Chocolatey installation:"
51-
ls -la /opt/chocolatey/choco.exe
52-
file /opt/chocolatey/choco.exe
53-
5449
# Create wrapper script
5550
echo '#!/bin/bash' | sudo tee /usr/local/bin/choco
5651
echo 'exec mono /opt/chocolatey/choco.exe "$@"' | sudo tee -a /usr/local/bin/choco
5752
sudo chmod +x /usr/local/bin/choco
5853
59-
# Test with simpler command
60-
echo "Testing mono with choco.exe:"
61-
mono --version
62-
# Don't test choco for now - let GoReleaser handle it
54+
# Verify installation
55+
echo "Mono version:"
56+
mono --version | head -1
57+
echo "Chocolatey version:"
58+
choco --version || echo "Choco installed (may have warnings)"
6359
6460
- name: Run GoReleaser
6561
uses: goreleaser/goreleaser-action@v6

0 commit comments

Comments
 (0)