Skip to content

Commit ee04ad2

Browse files
committed
refactor and optimize
1 parent 970155e commit ee04ad2

File tree

22 files changed

+249
-672
lines changed

22 files changed

+249
-672
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ jobs:
3434
GOOS: windows
3535
GOARCH: ${{ matrix.goarch }}
3636
run: |
37+
cd cmd/hidell
3738
go build -ldflags="-H windowsgui" -o HIDELL_${{ matrix.arch }}.exe
3839
3940
- name: Upload to Release Action

README.MD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# HIDELL
22

33
<p align="center">
4-
<img src="hidell.png" alt="HIDELL Logo" width="128" height="128">
4+
<img src="assets/hidell.png" alt="HIDELL Logo" width="128" height="128">
55
</p>
66

77
<p align="center">

README_zh.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# HIDELL
22

33
<p align="center">
4-
<img src="hidell.png" alt="HIDELL Logo" width="128" height="128">
4+
<img src="assets/hidell.png" alt="HIDELL Logo" width="128" height="128">
55
</p>
66

77
<p align="center">

assets/assets.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
package assets
2+
3+
import _ "embed"
4+
5+
//go:embed hidell.ico
6+
var LogoIcon []byte

autostart.go

Lines changed: 0 additions & 51 deletions
This file was deleted.

cmd/hidell/main.go

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
package main
2+
3+
import (
4+
_ "embed"
5+
"github.com/getlantern/systray"
6+
"hidell/internal/bootstrap"
7+
"hidell/internal/global"
8+
"hidell/internal/gui"
9+
)
10+
11+
func main() {
12+
bootstrap.Init()
13+
systray.Run(gui.SystrayInit, onExit)
14+
15+
}
16+
17+
func onExit() {
18+
if global.Watcher != nil {
19+
_ = global.Watcher.Close()
20+
}
21+
}

custom_dir.go

Lines changed: 0 additions & 198 deletions
This file was deleted.

0 commit comments

Comments
 (0)