Skip to content

Commit

Permalink
Release v0.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
AurevoirXavier committed Jul 13, 2024
1 parent 42df83e commit 1934246
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 24 deletions.
10 changes: 5 additions & 5 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ license = "GPL-3.0"
name = "air"
readme = "README.md"
repository = "https://github.com/hack-ink/air"
version = "0.3.0"
version = "0.3.1"

[package.metadata.bundle]
icon = ["asset/icon.icns"]
identifier = "ink.hack.AiR"
long_description = "AI with Rust."
name = "AiR"
short_description = "AI with Rust."
version = "0.3.0"
version = "0.3.1"

[profile.ci-dev]
incremental = false
Expand Down
19 changes: 13 additions & 6 deletions README-zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ AiR 是非母语者的绝佳助手,能够自动修正错误并润色语言,
## 状态
- **操作系统**
- [x] **macOS**
- [ ] **Windows** (即将推出)
- [x] **Windows**
- [ ] **Unix**
- **功能**
- [x] **深色/浅色主题**
Expand All @@ -51,13 +51,20 @@ AiR 是非母语者的绝佳助手,能够自动修正错误并润色语言,
### 安装
#### 从源代码构建
```sh
# 安装 Rust。
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --default-toolchain stable

# 克隆代码库。
# 克隆仓库。
git clone https://github.com/hack-ink/air
cd air

# 要在 macOS 和 Unix 上安装 Rust,请运行以下命令。
#
# 要在 Windows 上安装 Rust,请从 `https://rustup.rs` 下载并运行安装程序。
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --default-toolchain stable

# 安装必要的依赖项。(仅限 Unix 系统)
# 以 Ubuntu 为例,这实际上取决于你的发行版。
sudo apt-get update
sudo apt-get install libasound2-dev libxdo-dev

# 构建项目后,二进制文件将位于 `target/release/air`。
cargo build --release

Expand Down Expand Up @@ -130,7 +137,7 @@ AiR目前正在进行大量开发,并非所有设置都会在用户界面中

设置文件的位置因操作系统而异。
- `~/Library/Application\ Support/AiR/setting.toml` (macOS)
- `C:\Users\<username>\AppData\Roaming\AiR\setting.toml` (Windows)
- `C:\Users\<username>\AppData\Roaming\hack.ink\AiR\setting.toml` (Windows)
- `~/.config/AiR/setting.toml` (Unix)

#### 交互
Expand Down
17 changes: 12 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ More awesome features are on the horizon!
## Status
- **OS**
- [x] **macOS**
- [ ] **Windows** (Coming Soon)
- [x] **Windows**
- [ ] **Unix**
- **Features**
- [x] **Dark/Light Theme**
Expand All @@ -51,13 +51,20 @@ More awesome features are on the horizon!
### Installation
#### Build from Source
```sh
# Install Rust.
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --default-toolchain stable

# Clone the repository.
git clone https://github.com/hack-ink/air
cd air

# To install Rust on macOS and Unix, run the following command.
#
# To install Rust on Windows, download and run the installer from `https://rustup.rs`.
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --default-toolchain stable

# Install the necessary dependencies. (Unix only)
# Using Ubuntu as an example, this really depends on your distribution.
sudo apt-get update
sudo apt-get install libasound2-dev libxdo-dev

# Build the project, and the binary will be available at `target/release/air`.
cargo build --release

Expand Down Expand Up @@ -130,7 +137,7 @@ However, all settings can always be found in the settings file.

The location of the settings file varies depending on the OS.
- `~/Library/Application\ Support/AiR/setting.toml` (macOS)
- `C:\Users\<username>\AppData\Roaming\AiR\setting.toml` (Windows)
- `C:\Users\<username>\AppData\Roaming\hack.ink\AiR\setting.toml` (Windows)
- `~/.config/AiR/setting.toml` (Unix)

#### Interaction
Expand Down
6 changes: 1 addition & 5 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@

// Hide console window on Windows in release.
#![cfg_attr(all(not(debug_assertions), not(feature = "dev")), windows_subsystem = "windows")]
#![deny(
// clippy::all,
missing_docs,
unused_crate_dependencies,
)]
#![deny(clippy::all, missing_docs, unused_crate_dependencies)]

mod air;
mod component;
Expand Down
2 changes: 1 addition & 1 deletion src/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ pub fn modifiers_to_string(modifiers: &Modifiers) -> String {
if modifiers.alt {
s.push_str("ALT+");
}
if modifiers.command {
if modifiers.mac_cmd {
s.push_str("META+");
}

Expand Down

0 comments on commit 1934246

Please sign in to comment.