diff --git a/.github/workflows/build_code.yml b/.github/workflows/build_code.yml index 7fd441aa..b025d44b 100644 --- a/.github/workflows/build_code.yml +++ b/.github/workflows/build_code.yml @@ -25,5 +25,5 @@ jobs: with: distribution: goreleaser version: latest - args: build --rm-dist --snapshot --skip-post-hooks + args: build --rm-dist --snapshot --skip-post-hooks --skip-before workdir: src diff --git a/src/.goreleaser.yml b/src/.goreleaser.yml index f4382cec..60468592 100644 --- a/src/.goreleaser.yml +++ b/src/.goreleaser.yml @@ -3,6 +3,8 @@ before: hooks: - go mod tidy + - go install github.com/tc-hib/go-winres@latest + - go-winres make --product-version=git-tag --file-version=git-tag --arch="amd64,386,arm64" builds: - binary: "posh-{{ .Os }}-{{ .Arch }}" diff --git a/src/rsrc_windows_386.syso b/src/rsrc_windows_386.syso new file mode 100644 index 00000000..acceb618 Binary files /dev/null and b/src/rsrc_windows_386.syso differ diff --git a/src/rsrc_windows_amd64.syso b/src/rsrc_windows_amd64.syso new file mode 100644 index 00000000..6ada2831 Binary files /dev/null and b/src/rsrc_windows_amd64.syso differ diff --git a/src/rsrc_windows_arm64.syso b/src/rsrc_windows_arm64.syso new file mode 100644 index 00000000..52ceeb9a Binary files /dev/null and b/src/rsrc_windows_arm64.syso differ diff --git a/src/winres/icon.png b/src/winres/icon.png new file mode 100644 index 00000000..19a4dfeb Binary files /dev/null and b/src/winres/icon.png differ diff --git a/src/winres/icon16.png b/src/winres/icon16.png new file mode 100644 index 00000000..354d9b46 Binary files /dev/null and b/src/winres/icon16.png differ diff --git a/src/winres/icon32.png b/src/winres/icon32.png new file mode 100644 index 00000000..f9128416 Binary files /dev/null and b/src/winres/icon32.png differ diff --git a/src/winres/icon48.png b/src/winres/icon48.png new file mode 100644 index 00000000..83ff8354 Binary files /dev/null and b/src/winres/icon48.png differ diff --git a/src/winres/icon64.png b/src/winres/icon64.png new file mode 100644 index 00000000..6a1a1802 Binary files /dev/null and b/src/winres/icon64.png differ diff --git a/src/winres/winres.json b/src/winres/winres.json new file mode 100644 index 00000000..acfd60f7 --- /dev/null +++ b/src/winres/winres.json @@ -0,0 +1,44 @@ +{ + "RT_GROUP_ICON": { + "APP": { + "0000": [ + "icon.png", + "icon64.png", + "icon48.png", + "icon32.png", + "icon16.png" + ] + } + }, + "RT_MANIFEST": { + "#1": { + "0409": { + "description": "A prompt theme engine for any shell.", + "minimum-os": "win8", + "execution-level": "as invoker", + "long-path-aware": true, + "segment-heap": true + } + } + }, + "RT_VERSION": { + "#1": { + "0000": { + "fixed": { + "file_version": "0.0.0.0", + "product_version": "0.0.0.0" + }, + "info": { + "0409": { + "CompanyName": "github.com/jandedobbeleer", + "FileDescription": "A prompt theme engine for any shell.", + "InternalName": "oh-my-posh", + "LegalCopyright": "© Jan De Dobbeleer. Licensed under MIT.", + "OriginalFilename": "oh-my-posh.exe", + "ProductName": "Oh My Posh" + } + } + } + } + } +}