Skip to content

Commit c34de36

Browse files
authored
fix: change nsi template from using association.ext to association.extensions. (#365)
1 parent 6e6a10c commit c34de36

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
"cargo-packager": patch
3+
"@crabnebula/packager": patch
4+
---
5+
6+
Change nsi template from using `association.ext` to `association.extensions`, to match struct field in `FileAssociation`.
7+
This allows file associations to be generated in `.nsi` files, and therefore in the final NSIS installer.

crates/packager/src/package/nsis/installer.nsi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -492,9 +492,9 @@ Section Install
492492
File /a "/oname={{this}}" "{{@key}}"
493493
{{/each}}
494494

495-
; Create file associations
495+
; Create file associations
496496
{{#each file_associations as |association| ~}}
497-
{{#each association.ext as |ext| ~}}
497+
{{#each association.extensions as |ext| ~}}
498498
!insertmacro APP_ASSOCIATE "{{ext}}" "{{or association.name ext}}" "{{association-description association.description ext}}" "$INSTDIR\${MAINBINARYNAME}.exe,0" "Open with ${PRODUCTNAME}" "$INSTDIR\${MAINBINARYNAME}.exe $\"%1$\""
499499
{{/each}}
500500
{{/each}}

0 commit comments

Comments
 (0)