Skip to content

Commit

Permalink
Add Windows resource
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholastay committed Sep 25, 2023
1 parent 73f75ee commit ee6df82
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@ vendor/
go.work

*.ort
*.syso
8 changes: 8 additions & 0 deletions buildresource.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/sh

# Builds the .syso file for Windows resource (program icon, metadata)
# Run in MINGW64, then build with Go as usual (it will pick up the syso)

set -xe

windres -i ortlinde.rc -O coff -o ortlinde.syso
Binary file added ortlinde.ico
Binary file not shown.
23 changes: 23 additions & 0 deletions ortlinde.rc
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#pragma code_page(65001)

1 VERSIONINFO
FILEVERSION 0,0,1,0
BEGIN
BLOCK "StringFileInfo"
BEGIN
BLOCK "040904B0"
BEGIN
VALUE "CompanyName", "NexerqDev"
VALUE "FileDescription", "Simple SDVX Konasute Launcher"
VALUE "LegalCopyright", "Copyright © NexerqDev 2023. BSD 2-Clause"
VALUE "OriginalFilename", "ortlinde"
VALUE "ProductName", "Ortlinde"
END
END
BLOCK "VarFileInfo"
BEGIN
VALUE "Translation", 0x0809, 1200
END
END

1 ICON "ortlinde.ico"

0 comments on commit ee6df82

Please sign in to comment.