Skip to content

Commit 485de1e

Browse files
author
LoukaO
committed
Fix version embedding: move resource.syso to correct directory and add installer VersionInfo
1 parent 3d69d2f commit 485de1e

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,13 +90,14 @@ jobs:
9090
Write-Host "Generated versioninfo.json:"
9191
Get-Content versioninfo.json
9292
93-
# Generate version resource
93+
# Generate version resource in the correct directory
9494
goversioninfo -64=true
9595
96-
# Verify resource.syso was created
96+
# Move resource.syso to cmd/terminusai directory where main.go is located
9797
if (Test-Path "resource.syso") {
98-
Write-Host "✓ resource.syso created successfully"
99-
$resourceSize = (Get-Item "resource.syso").Length
98+
Move-Item "resource.syso" "cmd\terminusai\resource.syso" -Force
99+
Write-Host "✓ resource.syso moved to cmd/terminusai directory"
100+
$resourceSize = (Get-Item "cmd\terminusai\resource.syso").Length
100101
Write-Host "Resource file size: $resourceSize bytes"
101102
} else {
102103
Write-Host "✗ resource.syso not found - version info may not be embedded"

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ Thumbs.db
3737
terminusai*.exe
3838
dist/
3939
build/Output/
40+
resource.syso
4041

4142
# Config files (contains API keys)
4243
config.json

build/terminusai.iss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@
1818
AppId={{F4BCC13B-9A3D-4C2C-A46C-55E88A5A4867}
1919
AppName={#MyAppName}
2020
AppVersion={#MyAppVersion}
21+
VersionInfoVersion={#MyAppVersion}
22+
VersionInfoCompany={#MyAppPublisher}
23+
VersionInfoDescription={#MyAppName} Setup
24+
VersionInfoCopyright=Copyright © 2024 {#MyAppPublisher}
25+
VersionInfoProductName={#MyAppName}
26+
VersionInfoProductVersion={#MyAppVersion}
2127
;AppVerName={#MyAppName} {#MyAppVersion}
2228
AppPublisher={#MyAppPublisher}
2329
AppPublisherURL={#MyAppURL}

0 commit comments

Comments
 (0)