Skip to content

Commit ad73f22

Browse files
committed
交叉编译了x64版本的包, 希望帮助更多的人。(如果您使用了x64的版本, 请反馈其是否可用--我手上没有对应设备无法做最终验证)
1 parent 311e615 commit ad73f22

11 files changed

Lines changed: 124 additions & 42 deletions

File tree

README.md

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,4 @@
44

55
## 安装
66

7-
### 安装最新版本
8-
9-
```bash
10-
brew install ./Formula/ims-mac.rb
11-
```
12-
13-
### 安装特定版本
14-
15-
现在支持使用 `@version` 语法安装特定版本:
16-
17-
```bash
18-
# 安装 0.2.0 版本
19-
brew install ./Formula/ims-mac@0.2.0.rb
20-
21-
# 其他可用版本
22-
brew install ./Formula/ims-mac@0.1.0.rb
23-
brew install ./Formula/ims-mac@0.3.0.rb
24-
brew install ./Formula/ims-mac@0.4.0.rb
25-
```
7+
请前往[release页面](https://github.com/LuSrackhall/ims-mac/releases)进行安装 。

dist-arm/ims-mac

0 Bytes
Binary file not shown.

dist-x64/im-select__ims-mac

27.6 KB
Binary file not shown.

dist-x64/ims-mac

1.66 MB
Binary file not shown.

dist-x64/install.sh

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
#!/bin/bash
2+
3+
# 颜色定义
4+
GREEN='\033[0;32m'
5+
RED='\033[0;31m'
6+
NC='\033[0m'
7+
8+
INSTALL_PATH="/usr/local/bin"
9+
BINARIES=("refresh-input-focus" "im-select__ims-mac" "ims-mac")
10+
11+
# 检查是否有root权限
12+
if [ "$EUID" -ne 0 ]; then
13+
echo -e "${RED}请使用 sudo 运行此脚本${NC}"
14+
exit 1
15+
fi
16+
17+
# 安装
18+
echo -e "${GREEN}正在安装二进制文件到 ${INSTALL_PATH}...${NC}"
19+
for binary in "${BINARIES[@]}"; do
20+
if [ -f "$binary" ]; then
21+
install -m 755 "$binary" "${INSTALL_PATH}/${binary}"
22+
echo "✓ 已安装: $binary"
23+
else
24+
echo -e "${RED}错误: 找不到 $binary${NC}"
25+
exit 1
26+
fi
27+
done
28+
echo -e "${GREEN}安装完成!${NC}"

dist-x64/makefile

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
INSTALL_PATH = /usr/local/bin
2+
BINARIES = refresh-input-focus im-select__ims-mac ims-mac
3+
4+
install:
5+
@echo "Installing binaries to $(INSTALL_PATH)..."
6+
@for binary in $(BINARIES); do \
7+
sudo install -m 755 $$binary $(INSTALL_PATH)/$$binary; \
8+
done
9+
@echo "Installation complete!"
10+
11+
uninstall:
12+
@echo "Removing binaries from $(INSTALL_PATH)..."
13+
@for binary in $(BINARIES); do \
14+
sudo rm -f $(INSTALL_PATH)/$$binary; \
15+
done
16+
@echo "Uninstall complete!"
17+
18+
.PHONY: install uninstall

dist-x64/refresh-input-focus

67.7 KB
Binary file not shown.

dist-x64/uninstall.sh

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#!/bin/bash
2+
3+
# 颜色定义
4+
GREEN='\033[0;32m'
5+
RED='\033[0;31m'
6+
NC='\033[0m'
7+
8+
INSTALL_PATH="/usr/local/bin"
9+
BINARIES=("refresh-input-focus" "im-select__ims-mac" "ims-mac")
10+
11+
# 检查是否有root权限
12+
if [ "$EUID" -ne 0 ]; then
13+
echo -e "${RED}请使用 sudo 运行此脚本${NC}"
14+
exit 1
15+
fi
16+
17+
# 卸载
18+
echo -e "${GREEN}正在从 ${INSTALL_PATH} 移除二进制文件...${NC}"
19+
for binary in "${BINARIES[@]}"; do
20+
if [ -f "${INSTALL_PATH}/${binary}" ]; then
21+
rm -f "${INSTALL_PATH}/${binary}"
22+
echo "✓ 已移除: $binary"
23+
fi
24+
done
25+
echo -e "${GREEN}卸载完成!${NC}"

dist/dist-arm.zip

6 Bytes
Binary file not shown.

dist/dist-x64.zip

770 KB
Binary file not shown.

0 commit comments

Comments
 (0)