Skip to content

Commit

Permalink
feat: support windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Henri Devigne committed Jun 2, 2024
1 parent e0acb10 commit b486cb9
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 35,253 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ jobs:
- uses: actions/setup-go@v5
with:
go-version: '1.22'
- name: Compiled icons
run: |
go get github.com/cratonica/2goarray
go install github.com/cratonica/2goarray
bash generate-icons.sh
- run: go build -o ipingtray.exe

- name: Set up NSIS
Expand All @@ -39,6 +45,12 @@ jobs:
with:
go-version: '1.22'

- name: Compiled icons
run: |
go get github.com/cratonica/2goarray
go install github.com/cratonica/2goarray
bash generate-icons.sh
- run: go build -o ipingtray
- run: go install github.com/machinebox/appify@latest

Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
vendor
vendor
icons/*.go
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,13 @@ https://support.apple.com/guide/mac-help/open-items-automatically-when-you-log-i
If you wish to update the icons, you need to run the `generate-icons.sh` which gonna generate
golang []bytes array representing the icon.

To generate icons, you also need to install [`2goarray`](https://github.com/cratonica/2goarray)

```bash
go get github.com/cratonica/2goarray
go install github.com/cratonica/2goarray
```

> ⚠️ We use .ico file because it's the only supported format on windows, according to
> [@ZGGSONG](https://github.com/getlantern/systray/issues/154#issuecomment-1207607136)
Expand Down
8,813 changes: 0 additions & 8,813 deletions icons/green.go

This file was deleted.

8,813 changes: 0 additions & 8,813 deletions icons/orange.go

This file was deleted.

8,813 changes: 0 additions & 8,813 deletions icons/red.go

This file was deleted.

8,813 changes: 0 additions & 8,813 deletions icons/white.go

This file was deleted.

0 comments on commit b486cb9

Please sign in to comment.