Coder Social home page Coder Social logo

ikineticate / windsend Goto Github PK

View Code? Open in Web Editor NEW

This project forked from doraemonkeys/windsend

0.0 0.0 0.0 2.86 MB

Quickly and securely sync clipboard, transfer files and directories between devices. 快速安全的同步剪切板,传输文件或文件夹

License: MIT License

C++ 6.44% C 0.36% Objective-C 0.01% Go 16.01% Rust 30.17% Kotlin 0.03% Dart 37.23% Swift 0.66% HTML 0.46% CMake 4.90% Batchfile 1.15% Dockerfile 0.38% Shell 2.21%

windsend's Introduction

风传 WindSend

中文 | English

风传是什么

一组应用程序,用于在不同设备之间快速安全的传递剪切板,传输文件或文件夹(支持windows图片与文件剪切板)。

为什么选择风传

  • 安全 - 所有数据均加密传递(即使是局域网,也有人希望更安全,比如我)
  • 简单 - 界面简洁易上手,开源免费无广告,专注于信息传递
  • 全面 - 自动与局域网内密钥相同的电脑匹配,切换wifi也不用担心,同时还提供了不在同一局域网内的解决方案
  • 省心 - 不用再担心与电脑的连接状态,只要电脑在线手机就能发送
  • 快速 - 使用多线程异步传输文件,充分利用带宽。
  • 轻量 - 不依赖额外的运行环境,空闲时内存占用不到10M,基本无CPU消耗

image-20231014225053389

如何使用

注意:配置阶段需要确保电脑和手机处于同一网络中。

下载

github:Releases · WindSend

PC端: 一般可以选择下载 WindSend-S-XX-x86_64-XXXXX.zip (提供Rust与Go两种实现)

移动端:一般可以选择下载 WindSend-flutter-arm64-v8a-release.apk

PC端

Linux

  1. 解压 WindSend-S-XX-x86_64-linux.zip 到任意目录。

     sudo chmod +x *.sh && ./install.sh

Windows

  1. 解压 WindSend-S-XX-x86_64-windows.zip 到任意目录(以Windows为例)。

  2. 双击exe文件运行:

    请点击允许windows网络防火墙,注意勾选公用网络(大胆的勾选,所有内容均已加密)。

    image-20230621225600846

    可以观察到任务栏系统托盘里出现app的图标,同时生成了默认配置文件到当前目录。

    image-20240124202216544

    如果你忘记勾选公用网络,请到Windows防火墙手动设置,或者确保你正在使用专用网络

    image-20230623220546743

  3. 开启快速配对以便让手机能够搜索到(快速配对将在第一次配对成功后自动关闭)。

    image-20240124202641303

移动端

  1. 安装APP。

  2. 打开APP,点击右下角的加号配置。

  3. 电脑开启快速配对后,手机多点几次搜索,如果幸运的话,你将能看到Secretkey被自动填充。

    image-20240124203042150
  4. 最后,激动人心的时刻到了,手机随便复制一段文字,打开app点击粘贴,电脑瞬间弹出通知,恭喜你已经成功完成了配置,可以愉快的使用了。

自动配对失败?手动添加设备密钥

打开默认配置文件config.yaml,复制secretKeyHex,手动填入app配置。

image-20230621192929505

大多数情况下,快速配对失败就表示你设备之间的网络无法连通。请使用手机热点,再次尝试。

注意事项

  • 两个设备之间的时间差不能超过5分钟,否则会导致配对失败。
  • Windows上的通知发送依赖于PowerShell,如果你没有看到通知,请检查PowerShell是否在环境变量中。

小技巧

  • 长按上传手机文件夹

image-20240124210045160

  • 快速复制文件夹

image-20240124205814355

不在同一网络的解决方案

1. 使用内网穿透软件

如果是Tailscale,只需要把电脑ip换成Tailscale分配的IP就行了,其他工具自行测试。

2. 使用别人搭好的服务器

本工具内置了一个,只需要新建配置,ip填web,对你没有看错,就是这三个字母。SecretKey 填电脑配置文件中的密钥。使用此功能需要在电脑上手动点击软件,复制到剪切板。

image-20240124204702833

web传递信息的原理是使用了 https://ko0.com/ 网站。

Rust实现与Go实现有哪些区别

这两个版本在在功能与外观上几乎没有区别,但某些方面还是有细微差别。

  1. Rust版体积相对稍小
  2. Rust版在Windows平台功能更多
  3. Rust版在传输速度上可能比Go版略低

跨平台情况

由于作者只有Android与Windows的设备,所以不能保证软件在其他平台的功能是否正常。

服务端代码拥有Go与Rust两种实现,代码中主要的库都是跨平台的,想要提供其他更多平台的支持和优化,只需稍微修改一下源代码,作者能力尚浅,欢迎高手来PR。

Flutter

Windows macOS Linux Android iOS
能否编译
正常运行

Rust

Windows macOS Linux Android iOS
能否编译
正常运行

Go

Windows macOS Linux Android iOS
能否编译
正常运行

构建指南

Flutter

version: channel stable

Requirements

Install Rust

Rust

toolchain

  • windows x86_64

    stable-x86_64-pc-windows-msvc

  • windows aarch64

    aarch64-pc-windows-msvc

  • Linux x86_64

    x86_64-unknown-linux-gnu

  • MacOS x86_64

    x86_64-apple-darwin

  • MacOS aarch64

    aarch64-apple-darwin

Requirements

AWS Libcrypto for Rust User Guide

.github/workflows/rust_build.yml

Linux

sudo apt install -y libgtk-3-dev libxdo-dev libappindicator3-dev 
sudo apt install -y pkg-config libssl-dev build-essential linux-libc-dev
sudo apt install -y musl-dev musl-tools

Go

version: 1.21+

windsend's People

Contributors

doraemonkeys avatar ikineticate avatar dependabot[bot] avatar nem-maomao avatar xgdgsc avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.