-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
167 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
<div align="center"> | ||
<h1>LocalSend CLI</h1> | ||
<img src="images/image.png" alt="LocalSend CLI logo" width="150" height="150"> | ||
<p>✨LocalSend CLI✨</p> | ||
</div> | ||
|
||
## Installation | ||
|
||
> 😊 You can download the executable files from the Releases. | ||
### Prerequisites | ||
|
||
- [Go](https://golang.org/dl/) 1.16 or higher | ||
|
||
### Clone the Repository | ||
|
||
```sh | ||
git clone https://github.com/meowrain/localsend_cli.git | ||
cd localsend_cli | ||
``` | ||
|
||
### Build | ||
|
||
Use the `Makefile` to build the program. | ||
|
||
```sh | ||
make build | ||
``` | ||
|
||
This will generate binary files for all supported platforms and save them in the `bin` directory. | ||
|
||
## Usage | ||
|
||
### Run the Program | ||
|
||
#### Receive Mode | ||
|
||
```sh | ||
.\localsend_cli-windows-amd64.exe -mode receive | ||
``` | ||
|
||
Choose the appropriate binary file for your operating system and architecture. | ||
On Linux, you need to execute this command to enable its ping functionality: | ||
`sudo setcap cap_net_raw=+ep localsend_cli` | ||
|
||
#### Send Mode | ||
|
||
```sh | ||
.\localsend_cli-windows-amd64.exe -mode send -file ./xxxx.xx -to your_ip | ||
``` | ||
|
||
Example: | ||
|
||
```sh | ||
.\localsend_cli-windows-amd64.exe -mode send -file ./hello.tar.gz -to 192.168.3.199 | ||
``` | ||
|
||
## Contribution | ||
|
||
You are welcome to submit issues and pull requests to help improve this project. | ||
|
||
## License | ||
|
||
[MIT](LICENSE) | ||
|
||
# Todo | ||
|
||
- [ ] Improve send functionality to display sent text directly on the device | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
<div align="center"> | ||
<h1>LocalSend CLI</h1> | ||
<img src="images/image.png" alt="LocalSend CLI logo" width="150" height="150"> | ||
<p>✨LocalSend-cli✨</p> | ||
</div> | ||
|
||
|
||
|
||
## 安装 | ||
|
||
> 😊可以下载Release中的可执行文件 | ||
### 先决条件 | ||
|
||
- [Go](https://golang.org/dl/) 1.16 或更高版本 | ||
|
||
### 克隆仓库 | ||
|
||
```sh | ||
git clone https://github.com/meowrain/localsend_cli.git | ||
cd localsend_cli | ||
``` | ||
|
||
### 编译 | ||
|
||
使用 `Makefile` 来编译程序。 | ||
|
||
```sh | ||
make build | ||
``` | ||
|
||
这将会为所有支持的平台生成二进制文件,并保存在 `bin` 目录中。 | ||
|
||
## 使用 | ||
|
||
### 运行程序 | ||
|
||
#### 接收模式 | ||
|
||
```sh | ||
.\localsend_cli-windows-amd64.exe -mode receive | ||
``` | ||
|
||
根据你的操作系统和架构选择相应的二进制文件运行。 | ||
Linux下需要执行这个命令,启用其ping功能 | ||
`sudo setcap cap_net_raw=+ep localsend_cli` | ||
|
||
#### 发送模式 | ||
|
||
``` | ||
.\localsend_cli-windows-amd64.exe -mode send -file ./xxxx.xx -to your_ip | ||
``` | ||
|
||
example: | ||
|
||
``` | ||
.\localsend_cli-windows-amd64.exe -mode send -file ./hello.tar.gz -to 192.168.3.199 | ||
``` | ||
|
||
|
||
|
||
## 贡献 | ||
|
||
欢迎提交 issue 和 pull request 来帮助改进这个项目。 | ||
|
||
## 许可证 | ||
|
||
[MIT](LICENSE) | ||
|
||
# Todo | ||
|
||
- [ ] 发送功能完善 发送文字可以在设备上直接显示 | ||
|