Skip to content

Commit 2af57d6

Browse files
committed
removing msi
1 parent bac2be8 commit 2af57d6

1 file changed

Lines changed: 2 additions & 114 deletions

File tree

‎.github/workflows/package.yml‎

Lines changed: 2 additions & 114 deletions
Original file line numberDiff line numberDiff line change
@@ -178,119 +178,11 @@ jobs:
178178
name: macos-package
179179
path: pkg/macos/log-explainer-${{ steps.version.outputs.VERSION }}.pkg
180180

181-
# ── Windows: .msi ───────────────────────────────────────────────────────────
182-
build-windows:
183-
name: Build .msi
184-
runs-on: windows-latest
185-
186-
steps:
187-
- name: Checkout code
188-
uses: actions/checkout@v4
189-
190-
- name: Set version from tag
191-
id: version
192-
shell: bash
193-
run: echo "VERSION=${GITHUB_REF_NAME#v}" >> $GITHUB_OUTPUT
194-
195-
- name: Find WiX Toolset
196-
shell: pwsh
197-
run: |
198-
$candle = Get-ChildItem "C:\Program Files (x86)\WiX Toolset*\bin\candle.exe" -ErrorAction SilentlyContinue | Select-Object -First 1
199-
if (-not $candle) { throw "candle.exe not found — WiX Toolset is not installed" }
200-
$wixBin = $candle.DirectoryName
201-
Write-Output "Found WiX at: $wixBin"
202-
Add-Content -Path $env:GITHUB_ENV -Value "WIX_BIN=$wixBin"
203-
204-
- name: Stage payload
205-
shell: bash
206-
run: |
207-
mkdir -p pkg/windows/payload
208-
cp log_parser.py requirements.txt pkg/windows/payload/
209-
printf '@echo off\npython "%%~dp0log_parser.py" %%*\n' \
210-
> pkg/windows/payload/log-explainer.cmd
211-
212-
- name: Write WiX source
213-
shell: bash
214-
run: |
215-
VERSION=${{ steps.version.outputs.VERSION }}
216-
mkdir -p pkg/windows
217-
cat > pkg/windows/log-explainer.wxs << EOF
218-
<?xml version="1.0" encoding="UTF-8"?>
219-
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
220-
<Product
221-
Id="*"
222-
Name="Log Explainer"
223-
Version="${VERSION}.0"
224-
Manufacturer="Sharan CH"
225-
UpgradeCode="4A8B3C2D-1E5F-6A7B-8C9D-0E1F2A3B4C5D"
226-
Language="1033"
227-
Codepage="1252">
228-
229-
<Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine" />
230-
<MajorUpgrade DowngradeErrorMessage="A newer version is already installed." />
231-
<MediaTemplate EmbedCab="yes" />
232-
233-
<Feature Id="Main" Level="1">
234-
<ComponentGroupRef Id="AppFiles" />
235-
<ComponentGroupRef Id="PathEnvVar" />
236-
</Feature>
237-
238-
<Directory Id="TARGETDIR" Name="SourceDir">
239-
<Directory Id="ProgramFilesFolder">
240-
<Directory Id="INSTALLFOLDER" Name="log-explainer" />
241-
</Directory>
242-
</Directory>
243-
244-
<ComponentGroup Id="AppFiles" Directory="INSTALLFOLDER">
245-
<Component Id="LogParser" Guid="1A2B3C4D-5E6F-7A8B-9C0D-1E2F3A4B5C6D">
246-
<File Source="pkg/windows/payload/log_parser.py" />
247-
</Component>
248-
<Component Id="Requirements" Guid="2B3C4D5E-6F7A-8B9C-0D1E-2F3A4B5C6D7E">
249-
<File Source="pkg/windows/payload/requirements.txt" />
250-
</Component>
251-
<Component Id="Launcher" Guid="3C4D5E6F-7A8B-9C0D-1E2F-3A4B5C6D7E8F">
252-
<File Source="pkg/windows/payload/log-explainer.cmd" />
253-
</Component>
254-
</ComponentGroup>
255-
256-
<ComponentGroup Id="PathEnvVar" Directory="INSTALLFOLDER">
257-
<Component Id="PathComponent" Guid="5D6E7F8A-9B0C-1D2E-3F4A-5B6C7D8E9F0A">
258-
<Environment
259-
Id="PATH"
260-
Name="PATH"
261-
Value="[INSTALLFOLDER]"
262-
Permanent="no"
263-
Part="last"
264-
Action="set"
265-
System="yes" />
266-
</Component>
267-
</ComponentGroup>
268-
269-
</Product>
270-
</Wix>
271-
EOF
272-
273-
- name: Build .msi
274-
shell: pwsh
275-
run: |
276-
$version = "${{ steps.version.outputs.VERSION }}"
277-
$wixBin = $env:WIX_BIN
278-
& "$wixBin\candle.exe" pkg/windows/log-explainer.wxs -out pkg/windows/log-explainer.wixobj
279-
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
280-
& "$wixBin\light.exe" pkg/windows/log-explainer.wixobj -out "pkg/windows/log-explainer-$version.msi"
281-
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
282-
283-
- name: Upload Windows package
284-
uses: actions/upload-artifact@v4
285-
with:
286-
name: windows-package
287-
path: pkg/windows/log-explainer-${{ steps.version.outputs.VERSION }}.msi
288-
289181
# ── Release: attach all packages ────────────────────────────────────────────
290182
release:
291183
name: Create GitHub Release
292184
runs-on: ubuntu-latest
293-
needs: [build-linux, build-macos, build-windows]
185+
needs: [build-linux, build-macos]
294186
permissions:
295187
contents: write
296188

@@ -324,9 +216,6 @@ jobs:
324216
**macOS**
325217
Open `log-explainer-${{ steps.version.outputs.VERSION }}.pkg` and follow the installer.
326218
327-
**Windows**
328-
Run `log-explainer-${{ steps.version.outputs.VERSION }}.msi` and follow the installer.
329-
330219
**After install**
331220
```bash
332221
log-explainer /var/log/app.log --model qwen2.5-coder:1.5b
@@ -338,5 +227,4 @@ jobs:
338227
files: |
339228
dist/linux-packages/log-explainer_${{ steps.version.outputs.VERSION }}_all.deb
340229
dist/linux-packages/log-explainer-${{ steps.version.outputs.VERSION }}-1.noarch.rpm
341-
dist/macos-package/log-explainer-${{ steps.version.outputs.VERSION }}.pkg
342-
dist/windows-package/log-explainer-${{ steps.version.outputs.VERSION }}.msi
230+
dist/macos-package/log-explainer-${{ steps.version.outputs.VERSION }}.pkg

0 commit comments

Comments
 (0)