Skip to content

Commit 32c6f78

Browse files
committed
chore: release v1.4.0
1 parent 18161e6 commit 32c6f78

File tree

10 files changed

+102
-12
lines changed

10 files changed

+102
-12
lines changed

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,9 @@ SPEC.md
4141
# Wails build directory
4242
build/
4343
frontend/dist/
44+
45+
# Logs
46+
*.log
47+
ask.log
48+
server.log
49+
server_debug.log

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22

33
All notable changes to this project will be documented in this file.
44

5+
## [1.4.0] - 2026-02-01
6+
7+
### Fixed
8+
- **Monorepo Support**: Fixed `ask repo sync` failing to retrieve star counts for repositories configured with subpaths (e.g., `owner/repo/path/to/skills`).
9+
- **URL Parsing**: Improved robustness of GitHub URL parsing for various formats.
10+
- **Build**: Fixed compilation error in `server` package initialization.
11+
- **Web UI**: Updated server initialization to include version information.
12+
513
## [1.3.3] - 2026-01-30
614

715
### Fixed

Makefile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,17 @@ all: test build
55
build:
66
go build -o $(BINARY_NAME) main.go
77

8+
build-desktop: check-wails
9+
@echo "Building desktop application..."
10+
wails build
11+
12+
install-wails:
13+
@echo "Installing Wails..."
14+
go install github.com/wailsapp/wails/v2/cmd/wails@latest
15+
16+
check-wails:
17+
@which wails > /dev/null || (echo "Wails not found. Please run 'make install-wails'" && exit 1)
18+
819
test:
920
go test -v ./...
1021

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
</p>
1414

1515
<p align="center">
16-
<a href="https://github.com/lbjlaq/Antigravity-Manager/releases/tag/v1.3.3"><img src="https://img.shields.io/github/v/release/lbjlaq/Antigravity-Manager?style=flat-square&color=blue" alt="Release"></a>
16+
<a href="https://github.com/lbjlaq/Antigravity-Manager/releases/tag/v1.4.0"><img src="https://img.shields.io/github/v/release/lbjlaq/Antigravity-Manager?style=flat-square&color=blue" alt="Release"></a>
1717
<a href="https://github.com/yeasy/ask/blob/main/LICENSE"><img src="https://img.shields.io/github/license/yeasy/ask?style=flat-square" alt="License"></a>
1818
<a href="https://github.com/yeasy/ask/stargazers"><img src="https://img.shields.io/github/stars/yeasy/ask?style=flat-square" alt="Stars"></a>
1919
<a href="https://goreportcard.com/report/github.com/yeasy/ask"><img src="https://goreportcard.com/badge/github.com/yeasy/ask?style=flat-square" alt="Go Report Card"></a>
@@ -99,7 +99,7 @@ go install github.com/yeasy/ask@latest
9999
```
100100

101101
**Binary / Manual Install (Windows / Linux / Desktop):**
102-
Download the latest pre-compiled binary or Desktop App for your system from [Releases](https://github.com/lbjlaq/Antigravity-Manager/releases/tag/v1.3.3).
102+
Download the latest pre-compiled binary or Desktop App for your system from [Releases](https://github.com/lbjlaq/Antigravity-Manager/releases/tag/v1.4.0).
103103

104104

105105
### 2. Initialize

README_zh.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
</p>
1414

1515
<p align="center">
16-
<a href="https://github.com/lbjlaq/Antigravity-Manager/releases/tag/v1.3.3"><img src="https://img.shields.io/github/v/release/lbjlaq/Antigravity-Manager?style=flat-square&color=blue" alt="Release"></a>
16+
<a href="https://github.com/lbjlaq/Antigravity-Manager/releases/tag/v1.4.0"><img src="https://img.shields.io/github/v/release/lbjlaq/Antigravity-Manager?style=flat-square&color=blue" alt="Release"></a>
1717
<a href="https://github.com/yeasy/ask/blob/main/LICENSE"><img src="https://img.shields.io/github/license/yeasy/ask?style=flat-square" alt="License"></a>
1818
<a href="https://github.com/yeasy/ask/stargazers"><img src="https://img.shields.io/github/stars/yeasy/ask?style=flat-square" alt="Stars"></a>
1919
<img src="https://img.shields.io/badge/Go-1.24+-00ADD8?style=flat-square&logo=go" alt="Go Version">
@@ -97,10 +97,11 @@ brew install --cask yeasy/tap/ask-desktop # 桌面应用 (仅 macOS)
9797
git clone https://github.com/yeasy/ask.git
9898
cd ask
9999
make build && mv ask /usr/local/bin/
100+
make build-desktop # 构建桌面应用
100101
```
101102

102103
**二进制 / 手动安装 (Windows / Linux):**
103-
请前往 [Releases](https://github.com/lbjlaq/Antigravity-Manager/releases/tag/v1.3.3) 页面下载对应系统的预编译二进制文件。
104+
请前往 [Releases](https://github.com/lbjlaq/Antigravity-Manager/releases/tag/v1.4.0) 页面下载对应系统的预编译二进制文件。
104105

105106

106107

cmd/gui.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import (
88
"github.com/wailsapp/wails/v2/pkg/options"
99
"github.com/wailsapp/wails/v2/pkg/options/assetserver"
1010
"github.com/yeasy/ask/internal/app"
11+
"github.com/yeasy/ask/internal/server"
1112
"github.com/yeasy/ask/internal/server/web"
1213
)
1314

@@ -33,13 +34,17 @@ func startGUI() {
3334
// Create an instance of the app structure
3435
app := app.NewApp()
3536

37+
// Create and configure server for API handling (port 0 as we only use the handler)
38+
srv := server.New(0, Version)
39+
3640
// Create application with options
3741
err := wails.Run(&options.App{
3842
Title: "Ask",
3943
Width: 1024,
4044
Height: 768,
4145
AssetServer: &assetserver.Options{
42-
Assets: web.Assets,
46+
Assets: web.Assets,
47+
Handler: srv.Handler(),
4348
},
4449
BackgroundColour: &options.RGBA{R: 27, G: 38, B: 54, A: 1},
4550
OnStartup: app.Startup,

cmd/root.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ Codex, etc.) with a familiar CLI experience, just like Homebrew or npm.`,
6161
}
6262

6363
// Version is the current version of the application
64-
const Version = "1.3.3"
64+
const Version = "1.4.0"
6565

6666
// Top-level aliases (Docker-style)
6767
var installRootCmd = &cobra.Command{

cmd/serve.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ func runServe(_ *cobra.Command, args []string) {
6262
fmt.Printf("📂 Working directory changed to: %s\n", targetDir)
6363
}
6464

65-
srv := server.New(servePort)
65+
srv := server.New(servePort, Version)
6666

6767
// Setup graceful shutdown
6868
done := make(chan bool, 1)

cmd/sync.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,9 @@ If no repo name is specified, syncs all configured repositories.`,
9292
successCount++
9393

9494
// Fetch star count from GitHub API
95-
parts := strings.Split(repo.URL, "/")
96-
if len(parts) >= 2 {
97-
repoDetails, err := github.FetchRepoDetails(parts[0], parts[1])
95+
owner, repo, err := github.ParseRepoURL(repo.URL)
96+
if err == nil {
97+
repoDetails, err := github.FetchRepoDetails(owner, repo)
9898
if err == nil {
9999
starCounts[repoName] = repoDetails.StargazersCount
100100
}

docs/installation.md

Lines changed: 61 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,21 +75,80 @@ Expand-Archive -Path "ask.zip" -DestinationPath "C:\tools\ask"
7575

7676
## Build from Source
7777

78-
If you have Go 1.24+ installed:
78+
### Prerequisites
79+
80+
- **Go**: Version 1.24 or higher.
81+
- **Wails**: Required for building the desktop application.
82+
- **Node.js**: Required for building the frontend components.
83+
84+
### 1. Build CLI Tool
85+
86+
To build the command-line interface (CLI) tool:
7987

8088
```bash
89+
# Clone the repository
8190
git clone https://github.com/yeasy/ask.git
8291
cd ask
92+
93+
# Install dependencies and build
8394
make build
95+
96+
# Move binary to path (macOS/Linux)
8497
sudo mv ask /usr/local/bin/
8598
```
8699

87-
Or using `go install`:
100+
Or install directly using `go install`:
88101

89102
```bash
90103
go install github.com/yeasy/ask@latest
91104
```
92105

106+
### 2. Build Desktop Application
107+
108+
The desktop application is built using [Wails](https://wails.io).
109+
110+
#### Step 1: Install Wails
111+
112+
```bash
113+
go install github.com/wailsapp/wails/v2/cmd/wails@latest
114+
```
115+
116+
#### Step 2: Build App
117+
118+
Run the following command in the project root:
119+
120+
```bash
121+
make build-desktop
122+
```
123+
124+
This will generate the application in the `build/bin/` directory.
125+
126+
#### Platform Specifics
127+
128+
**macOS:**
129+
- The output will be `build/bin/ask-desktop.app`.
130+
- If you encounter an "unidentified developer" warning, go to **System Settings > Privacy & Security** and allow the app to run.
131+
- To build a `.dmg` (requires `create-dmg`):
132+
```bash
133+
wails build -platform darwin/universal
134+
```
135+
136+
**Windows:**
137+
- The output will be `build/bin/ask-desktop.exe`.
138+
- Ensure you have the WebView2 runtime installed (standard on Windows 10/11).
139+
140+
**Linux:**
141+
- The output will be `build/bin/ask-desktop`.
142+
- You may need to install GTK3 and WebKit2GTK development headers:
143+
```bash
144+
# Debian/Ubuntu
145+
sudo apt install libgtk-3-dev libwebkit2gtk-4.0-dev
146+
147+
# Fedora
148+
sudo dnf install gtk3-devel webkit2gtk3-devel
149+
```
150+
151+
93152
---
94153

95154
## Verify Installation

0 commit comments

Comments
 (0)