粉丝服务

AirDrop 开源跨平台替代品 - LocalSend

localsend 是一个使用 Flutter 开发的 AirDrop 开源跨平台替代品,可以将文件共享到附近的设备,该应用允许你通过本地 LAN 网络发送文件和消息。不需要互联网,不需要外部服务器。一切都在 wifi 网络中本地发生。

设备之前使用 REST API 相互通信,一切都通过 HTTPS 安全发送,TLS/SSL 证书是在每台设备上即时生成的,所以具有非常高的安全性。

安装

安装 Flutter 后,可以通过以下命令来启动此应用程序:

flutter pub get
flutter pub run build_runner build
flutter run

当然我们也可以自己根据需求修改代码后打包应用,请确保 flutter pub run build_runner build 命令已经运行了,否则文件将丢失。

Android

传统 APK:

flutter build apk

用于 Google Play 的 AppBundle:

flutter build appbundle

iOS

flutter build ipa

MacOS

flutter build macos

Windows

传统应用:

flutter build windows

本地 MSIX 应用:

flutter pub run msix:create

应用商店:

flutter pub run msix:create --store

Linux

传统应用:

flutter build linux

AppImage:

appimage-builder --recipe AppImageBuilder.yml

当然我们也可以直接从官网获取各个平台的安装包:https://localsend.org/。

GitHub 仓库:https://github.com/localsend/localsend

▲ 点击上方卡片关注Github爱好者,获取前沿开源作品

本栏目精选

热门推荐

频道导航