Skip to content

Commit 5da9f05

Browse files
KevenWMarkhamclaude
andcommitted
feat: configure Windows-only builds for Electron app
Simplified GitHub Actions workflow to only build Windows installers, removing macOS and Linux targets per user request. This significantly reduces build time and CI resource usage. Changes: - Removed macOS and Linux from build matrix - Updated workflow to only build on windows-latest - Removed macOS and Linux configurations from electron-builder.json - Simplified artifact upload to only handle Windows .exe files The build now produces: - NSIS installer (Transcript Parser-Setup-1.0.0.exe) - Portable executable (Transcript Parser-Portable-1.0.0.exe) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent d4353e3 commit 5da9f05

File tree

2 files changed

+3
-67
lines changed

2 files changed

+3
-67
lines changed

.github/workflows/electron-build.yml

Lines changed: 2 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,7 @@ on:
1111

1212
jobs:
1313
build:
14-
runs-on: ${{ matrix.os }}
15-
16-
strategy:
17-
matrix:
18-
os: [windows-latest, macos-latest, ubuntu-latest]
14+
runs-on: windows-latest
1915

2016
steps:
2117
- name: Checkout code
@@ -36,34 +32,11 @@ jobs:
3632
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3733

3834
- name: Upload Windows artifacts
39-
if: matrix.os == 'windows-latest'
4035
uses: actions/upload-artifact@v4
4136
with:
4237
name: windows-installer
4338
path: |
4439
release/*.exe
45-
release/*.zip
46-
retention-days: 30
47-
48-
- name: Upload macOS artifacts
49-
if: matrix.os == 'macos-latest'
50-
uses: actions/upload-artifact@v4
51-
with:
52-
name: macos-installer
53-
path: |
54-
release/*.dmg
55-
release/*.zip
56-
retention-days: 30
57-
58-
- name: Upload Linux artifacts
59-
if: matrix.os == 'ubuntu-latest'
60-
uses: actions/upload-artifact@v4
61-
with:
62-
name: linux-installer
63-
path: |
64-
release/*.AppImage
65-
release/*.deb
66-
release/*.rpm
6740
retention-days: 30
6841

6942
# Optional: Create GitHub Release on tag push
@@ -81,10 +54,7 @@ jobs:
8154
- name: Create Release
8255
uses: softprops/action-gh-release@v1
8356
with:
84-
files: |
85-
artifacts/windows-installer/*
86-
artifacts/macos-installer/*
87-
artifacts/linux-installer/*
57+
files: artifacts/windows-installer/*
8858
draft: false
8959
prerelease: false
9060
env:

electron-builder.json

Lines changed: 1 addition & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,7 @@
66
"buildResources": "resources",
77
"output": "release"
88
},
9-
"files": [
10-
"dist/**/*",
11-
"electron/**/*",
12-
"package.json"
13-
],
9+
"files": ["dist/**/*", "electron/**/*", "package.json"],
1410
"extraMetadata": {
1511
"main": "electron/main.cjs"
1612
},
@@ -41,36 +37,6 @@
4137
"portable": {
4238
"artifactName": "${productName}-Portable-${version}.${ext}"
4339
},
44-
"mac": {
45-
"target": ["dmg", "zip"],
46-
"icon": "resources/icon.icns",
47-
"category": "public.app-category.productivity",
48-
"hardenedRuntime": true,
49-
"gatekeeperAssess": false,
50-
"entitlements": "build/entitlements.mac.plist",
51-
"entitlementsInherit": "build/entitlements.mac.plist"
52-
},
53-
"dmg": {
54-
"contents": [
55-
{
56-
"x": 130,
57-
"y": 220
58-
},
59-
{
60-
"x": 410,
61-
"y": 220,
62-
"type": "link",
63-
"path": "/Applications"
64-
}
65-
]
66-
},
67-
"linux": {
68-
"target": ["AppImage", "deb", "rpm"],
69-
"icon": "resources/icon.png",
70-
"category": "Office",
71-
"synopsis": "AI-powered video transcription",
72-
"description": "Desktop application for transcribing videos with speaker diarization using AI"
73-
},
7440
"publish": {
7541
"provider": "github",
7642
"owner": "KevenWMarkham",

0 commit comments

Comments
 (0)