|
@@ -4,13 +4,10 @@
|
|
|
|
|
|
Transfer files over Wi-Fi from your computer to a mobile device by scanning a QR code without leaving the terminal.
|
|
|
|
|
|
-[](https://goreportcard.com/report/github.com/claudiodangelis/qrcp)
|
|
|
|
|
|
-You can support development by donating with [](https://www.buymeacoffee.com/claudiodangelis).
|
|
|
-
|
|
|
-Join the **Telegram channel** [qrcp_dev](https://t.me/qrcp_dev) for news about the development.
|
|
|
|
|
|
## How does it work?
|
|
|
+
|
|
|

|
|
|
|
|
|
`qrcp` binds a web server to the address of your Wi-Fi network interface on a random port and creates a handler for it. The default handler serves the content and exits the program when the transfer is complete. When used to receive files, `qrcp` serves an upload page and handles the transfer.
|
|
@@ -32,90 +29,16 @@ Receive files from mobile:
|
|
|
|
|
|

|
|
|
|
|
|
-# Installation
|
|
|
-
|
|
|
-## Install the latest development version with Go
|
|
|
-
|
|
|
-_Note: it requires go 1.8_
|
|
|
-
|
|
|
- go get github.com/claudiodangelis/qrcp
|
|
|
-
|
|
|
-## Linux
|
|
|
-
|
|
|
-Download the latest Linux .tar.gz archive from the [Releases](https://github.com/claudiodangelis/qrcp/releases) page, extract it, move the binary to the proper directory, then set execution permissions.
|
|
|
-
|
|
|
-```sh
|
|
|
-# Extract the archive
|
|
|
-tar xf qrcp_0.5.0_linux_x86_64.tar.gz
|
|
|
-# Copy the binary
|
|
|
-sudo mv qrcp /usr/local/bin
|
|
|
-# Set execution permissions
|
|
|
-sudo chmod +x /usr/local/bin/qrcp
|
|
|
-```
|
|
|
-
|
|
|
-### Raspberry Pi
|
|
|
-
|
|
|
-The following ARM releases are available in the [Releases](https://github.com/claudiodangelis/qrcp/releases) page:
|
|
|
-
|
|
|
-- `armv7`
|
|
|
-- `arm64`
|
|
|
-
|
|
|
-
|
|
|
-### Using a package manager
|
|
|
-
|
|
|
-#### ArchLinux
|
|
|
-
|
|
|
-Packages available on AUR:
|
|
|
-- [qrcp-bin](https://aur.archlinux.org/packages/qrcp-bin)
|
|
|
-- [qrcp](https://aur.archlinux.org/packages/qrcp)
|
|
|
+## Develop
|
|
|
|
|
|
-#### Deb packages (Ubuntu, Debian, etc)
|
|
|
-
|
|
|
-Download the latest .deb package from the [Releases page](https://github.com/claudiodangelis/qrcp/releases), then run `dpkg`:
|
|
|
-
|
|
|
-```sh
|
|
|
-sudo dpkg -i qrcp_0.5.0_linux_x86_64.deb
|
|
|
-# Confirm it's working:
|
|
|
-qrcp version
|
|
|
-```
|
|
|
-
|
|
|
-#### RPM packages (CentOS, Fedora, etc)
|
|
|
-
|
|
|
-Download the latest .rpm package from the [Releases page](https://github.com/claudiodangelis/qrcp/releases), then run `rpm`:
|
|
|
-
|
|
|
-```sh
|
|
|
-sudo rpm -i qrcp_0.5.0_linux_x86_64.rpm
|
|
|
-# Confirm it's working:
|
|
|
-qrcp --help
|
|
|
-```
|
|
|
-
|
|
|
-## Windows
|
|
|
-
|
|
|
-Download the latest Windows .tar.gz archive from the [Releases page](https://github.com/claudiodangelis/qrcp/releases) and extract the EXE file.
|
|
|
-
|
|
|
-### Scoop
|
|
|
-
|
|
|
-If you use [Scoop](https://scoop.sh/) for package management on Windows, you can install qrcp with the following one-liner:
|
|
|
+build windows:
|
|
|
|
|
|
```
|
|
|
-scoop install qrcp
|
|
|
+go build -ldflags="-H windowsgui -w -s"
|
|
|
```
|
|
|
|
|
|
-## MacOS
|
|
|
-
|
|
|
-Download the latest macOS .tar.gz archive from the [Releases page](https://github.com/claudiodangelis/qrcp/releases), extract it, move the binary to the proper directory, then set execution permissions.
|
|
|
+only genereate a tmp.png qrcode file, so compile without command exported.
|
|
|
|
|
|
-```sh
|
|
|
-# Extract the archive
|
|
|
-tar xf qrcp_0.5.0_macOS_x86_64.tar.gz
|
|
|
-# Copy the binary
|
|
|
-sudo mv qrcp /usr/local/bin
|
|
|
-# Set execution permissions
|
|
|
-sudo chmod +x /usr/local/bin/qrcp
|
|
|
-# Confirm it's working:
|
|
|
-qrcp --help
|
|
|
-```
|
|
|
-
|
|
|
# Usage
|
|
|
|
|
|
## Send files
|
|
@@ -281,6 +204,4 @@ Releases are handled with [goreleaser](https://goreleaser.com).
|
|
|
- [ezshare](https://github.com/mifi/ezshare) - Another Node.js two way file sharing tool supporting folders and multiple files
|
|
|
- [local_file_share](https://github.com/woshimanong1990/local_file_share) - _"share local file to other people, OR smartphone download files which is in pc"_
|
|
|
- [qrcp](https://github.com/pearl2201/qrcp) - a desktop app clone of `qrcp`, writing with C# and .NET Core, work for Windows.
|
|
|
-## License
|
|
|
|
|
|
-MIT. See [LICENSE](LICENSE).
|