Skip to content

Commit 6fb1561

Browse files
committed
chore(build): update project metadata and ignore executable files
- Added '*.exe' to .gitignore to prevent executable files from being tracked - Updated comments in wails.json for clarity - Defined project-specific information in wails_tools.nsh
1 parent 274bab4 commit 6fb1561

3 files changed

Lines changed: 12 additions & 23 deletions

File tree

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,5 @@ frontend/.idea
77
mods
88

99
.env
10+
11+
**/*.exe

build/windows/installer/wails_tools.nsh

Lines changed: 9 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,19 @@
55
!include "FileFunc.nsh"
66

77
!ifndef INFO_PROJECTNAME
8-
!define INFO_PROJECTNAME "{{.Name}}"
8+
!define INFO_PROJECTNAME "ModpackGraph"
99
!endif
1010
!ifndef INFO_COMPANYNAME
11-
!define INFO_COMPANYNAME "{{.Info.CompanyName}}"
11+
!define INFO_COMPANYNAME "Ciro García Belmonte"
1212
!endif
1313
!ifndef INFO_PRODUCTNAME
14-
!define INFO_PRODUCTNAME "{{.Info.ProductName}}"
14+
!define INFO_PRODUCTNAME "ModpackGraph"
1515
!endif
1616
!ifndef INFO_PRODUCTVERSION
17-
!define INFO_PRODUCTVERSION "{{.Info.ProductVersion}}"
17+
!define INFO_PRODUCTVERSION "1.0.0"
1818
!endif
1919
!ifndef INFO_COPYRIGHT
20-
!define INFO_COPYRIGHT "{{.Info.Copyright}}"
20+
!define INFO_COPYRIGHT "Copyright © 2025 Ciro García Belmonte"
2121
!endif
2222
!ifndef PRODUCT_EXECUTABLE
2323
!define PRODUCT_EXECUTABLE "${INFO_PROJECTNAME}.exe"
@@ -203,20 +203,12 @@ RequestExecutionLevel "${REQUEST_EXECUTION_LEVEL}"
203203

204204
!macro wails.associateFiles
205205
; Create file associations
206-
{{range .Info.FileAssociations}}
207-
!insertmacro APP_ASSOCIATE "{{.Ext}}" "{{.Name}}" "{{.Description}}" "$INSTDIR\{{.IconName}}.ico" "Open with ${INFO_PRODUCTNAME}" "$INSTDIR\${PRODUCT_EXECUTABLE} $\"%1$\""
208-
209-
File "..\{{.IconName}}.ico"
210-
{{end}}
206+
211207
!macroend
212208

213209
!macro wails.unassociateFiles
214210
; Delete app associations
215-
{{range .Info.FileAssociations}}
216-
!insertmacro APP_UNASSOCIATE "{{.Ext}}" "{{.Name}}"
217-
218-
Delete "$INSTDIR\{{.IconName}}.ico"
219-
{{end}}
211+
220212
!macroend
221213

222214
!macro CUSTOM_PROTOCOL_ASSOCIATE PROTOCOL DESCRIPTION ICON COMMAND
@@ -235,15 +227,10 @@ RequestExecutionLevel "${REQUEST_EXECUTION_LEVEL}"
235227

236228
!macro wails.associateCustomProtocols
237229
; Create custom protocols associations
238-
{{range .Info.Protocols}}
239-
!insertmacro CUSTOM_PROTOCOL_ASSOCIATE "{{.Scheme}}" "{{.Description}}" "$INSTDIR\${PRODUCT_EXECUTABLE},0" "$INSTDIR\${PRODUCT_EXECUTABLE} $\"%1$\""
240-
241-
{{end}}
230+
242231
!macroend
243232

244233
!macro wails.unassociateCustomProtocols
245234
; Delete app custom protocol associations
246-
{{range .Info.Protocols}}
247-
!insertmacro CUSTOM_PROTOCOL_UNASSOCIATE "{{.Scheme}}"
248-
{{end}}
235+
249236
!macroend

wails.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"productName": "ModpackGraph",
2222
"productVersion": "1.0.0",
2323
"copyright": "Copyright © 2025 Ciro García Belmonte",
24-
"comments": "A tool to visualize mod dependencies in a Minecraft modpack.\nBuilt using Wails (https://wails.io).",
24+
"comments": "A tool to visualize mod dependencies in a Minecraft modpack. Built using Wails (https://wails.io).",
2525
"fileAssociations": null,
2626
"protocols": null
2727
},

0 commit comments

Comments
 (0)