Skip to content

Commit

Permalink
Build for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
gray-adeyi committed Sep 14, 2024
1 parent e915894 commit 5d778bd
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 25 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ build-macos:
GOOS=darwin GOARCH=amd64 wails build
build-windows:
echo "building for windows..."
GOOS=windows GOARCH=amd64 wails build
wails build -nsis

Binary file modified build/windows/icon.ico
Binary file not shown.
Binary file not shown.
31 changes: 9 additions & 22 deletions build/windows/installer/wails_tools.nsh
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,19 @@
!include "FileFunc.nsh"

!ifndef INFO_PROJECTNAME
!define INFO_PROJECTNAME "{{.Name}}"
!define INFO_PROJECTNAME "funmi"
!endif
!ifndef INFO_COMPANYNAME
!define INFO_COMPANYNAME "{{.Info.CompanyName}}"
!define INFO_COMPANYNAME "Coyote Solutions"
!endif
!ifndef INFO_PRODUCTNAME
!define INFO_PRODUCTNAME "{{.Info.ProductName}}"
!define INFO_PRODUCTNAME "Funmi"
!endif
!ifndef INFO_PRODUCTVERSION
!define INFO_PRODUCTVERSION "{{.Info.ProductVersion}}"
!define INFO_PRODUCTVERSION "0.1.0"
!endif
!ifndef INFO_COPYRIGHT
!define INFO_COPYRIGHT "{{.Info.Copyright}}"
!define INFO_COPYRIGHT "MIT"
!endif
!ifndef PRODUCT_EXECUTABLE
!define PRODUCT_EXECUTABLE "${INFO_PROJECTNAME}.exe"
Expand Down Expand Up @@ -203,20 +203,12 @@ RequestExecutionLevel "${REQUEST_EXECUTION_LEVEL}"

!macro wails.associateFiles
; Create file associations
{{range .Info.FileAssociations}}
!insertmacro APP_ASSOCIATE "{{.Ext}}" "{{.Name}}" "{{.Description}}" "$INSTDIR\{{.IconName}}.ico" "Open with ${INFO_PRODUCTNAME}" "$INSTDIR\${PRODUCT_EXECUTABLE} $\"%1$\""

File "..\{{.IconName}}.ico"
{{end}}

!macroend

!macro wails.unassociateFiles
; Delete app associations
{{range .Info.FileAssociations}}
!insertmacro APP_UNASSOCIATE "{{.Ext}}" "{{.Name}}"

Delete "$INSTDIR\{{.IconName}}.ico"
{{end}}

!macroend

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

!macro wails.associateCustomProtocols
; Create custom protocols associations
{{range .Info.Protocols}}
!insertmacro CUSTOM_PROTOCOL_ASSOCIATE "{{.Scheme}}" "{{.Description}}" "$INSTDIR\${PRODUCT_EXECUTABLE},0" "$INSTDIR\${PRODUCT_EXECUTABLE} $\"%1$\""

{{end}}

!macroend

!macro wails.unassociateCustomProtocols
; Delete app custom protocol associations
{{range .Info.Protocols}}
!insertmacro CUSTOM_PROTOCOL_UNASSOCIATE "{{.Scheme}}"
{{end}}

!macroend
Binary file modified frontend/bun.lockb
Binary file not shown.
2 changes: 1 addition & 1 deletion frontend/package.json.md5
Original file line number Diff line number Diff line change
@@ -1 +1 @@
94158c332607a2623c291b3438b29cca
144aa3a8cf054d1e850bada01e01bb9f
2 changes: 1 addition & 1 deletion frontend/src/lib/AboutDialog.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<FunmiLogo />
</div>
<span>CSS Color Conversion App</span>
<span>Version: 0.1.0</span>
<span>Version: 0.1.0-alpha+build1</span>
<span
>Source Code: <ExternalLink
link={sourceCodeLink}
Expand Down
7 changes: 7 additions & 0 deletions wails.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,12 @@
"author": {
"name": "Gbenga Adeyi",
"email": "[email protected]"
},
"Info":{
"companyName":"Coyote Solutions",
"productName":"Funmi",
"productVersion":"0.1.0",
"copyright":"MIT",
"comments": "A CSS Color Conversion App"
}
}

0 comments on commit 5d778bd

Please sign in to comment.