Skip to content

Commit c1242ae

Browse files
authored
Merge pull request #6 from seth-shi/fix/bug-2
Fix/bug 2
2 parents 0e533f9 + 998fd4b commit c1242ae

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

.github/workflows/go.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,7 @@ jobs:
2828
goversion: 1.24
2929
md5sum: false
3030
overwrite: true
31+
executable_compression: upx
3132
asset_name: go-v2ex-${{ matrix.goos }}-${{ matrix.goarch }}
32-
ldflags: -X "main.appVersion=${{ env.APP_VERSION }}"
33+
pre_command: export CGO_ENABLED=0
34+
ldflags: -s -w -extldflags -static -X "main.appVersion=${{ env.APP_VERSION }}"

internal/consts/keymap.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ var AppKeyMap = KeyMap{
106106
key.WithHelp("r", "加载图片"),
107107
),
108108
UpgradeApp: key.NewBinding(
109-
key.WithKeys("u"),
110-
key.WithHelp("u", "更新应用(需要网络可以访问 github)"),
109+
key.WithKeys("ctrl+u"),
110+
key.WithHelp("ctrl+u", "更新应用(需要网络可以访问 github)"),
111111
),
112112
}

internal/model/messages/post.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ func ErrorOrToast(fn func() error, text string) tea.Cmd {
1616
return nil
1717
}
1818

19-
return Post(ShowToastRequest{Text: text})
19+
return ShowToastRequest{Text: text}
2020
}
2121
}
2222

internal/ui/components/setting/setting.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,6 @@ func (m Model) saveSettings() tea.Cmd {
161161

162162
config.G.Token = strings.TrimSpace(lo.NthOrEmpty(m.inputs, 0).Value())
163163
config.G.MyNodes = strings.TrimSpace(lo.NthOrEmpty(m.inputs, 1).Value())
164-
165164
return messages.ErrorOrToast(config.SaveToFile, "保存配置文件成功")
166165
}
167166

0 commit comments

Comments
 (0)