Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,14 @@ jobs:
- uses: actions/setup-go@v5
with: { go-version: '1.27.x' }
- run: make cross
- run: sudo apt-get install -y desktop-file-utils && desktop-file-validate packaging/linux/pasame.desktop
release-dry:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
with: { fetch-depth: 0 }
- uses: actions/setup-go@v5
with: { go-version: '1.27.x' }
- uses: goreleaser/goreleaser-action@v6
with: { version: '~> v2', args: release --snapshot --clean --skip=sign,publish }
- run: RUNNER_TEMP=$RUNNER_TEMP packaging/macos/release-mac.sh 0.0.0-dev
22 changes: 22 additions & 0 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: pages
on:
push:
branches: [main]
paths: ['site/**']
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency: { group: pages, cancel-in-progress: true }
jobs:
deploy:
runs-on: ubuntu-latest
environment: { name: github-pages, url: '${{ steps.d.outputs.page_url }}' }
steps:
- uses: actions/checkout@v4
- uses: actions/configure-pages@v5
- uses: actions/upload-pages-artifact@v3
with: { path: site }
- id: d
uses: actions/deploy-pages@v4
37 changes: 37 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: release
on:
push:
tags: ['v*']
permissions:
contents: write
id-token: write # cosign keyless (Sigstore)
jobs:
release:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
with: { fetch-depth: 0 }
- uses: actions/setup-go@v5
with: { go-version: '1.27.x' }
- uses: sigstore/cosign-installer@v3
- uses: goreleaser/goreleaser-action@v6
with: { version: '~> v2', args: release --clean }
env: { GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}' }
- name: .dmg (firmado y notarizado si hay certificado)
run: packaging/macos/release-mac.sh "$GITHUB_REF_NAME"
env:
MACOS_CERT_P12: ${{ secrets.MACOS_CERT_P12 }}
MACOS_CERT_PASSWORD: ${{ secrets.MACOS_CERT_PASSWORD }}
MACOS_SIGN_IDENTITY: ${{ secrets.MACOS_SIGN_IDENTITY }}
MACOS_NOTARY_KEY: ${{ secrets.MACOS_NOTARY_KEY }}
MACOS_NOTARY_KEY_ID: ${{ secrets.MACOS_NOTARY_KEY_ID }}
MACOS_NOTARY_ISSUER_ID: ${{ secrets.MACOS_NOTARY_ISSUER_ID }}
- name: Subir .dmg y latest.json, agregarlos a los checksums y publicar
env: { GH_TOKEN: '${{ secrets.GITHUB_TOKEN }}' }
run: |
cd dist
shasum -a 256 Pasame-macOS.dmg >> checksums.txt
cosign sign-blob --yes --output-signature checksums.txt.sig --output-certificate checksums.txt.pem checksums.txt
gh release upload "$GITHUB_REF_NAME" Pasame-macOS.dmg latest.json checksums.txt checksums.txt.sig checksums.txt.pem --clobber
pre=true; grep -q '"macNotarized":true' latest.json && [[ "$GITHUB_REF_NAME" != *-* ]] && pre=false
gh release edit "$GITHUB_REF_NAME" --draft=false --prerelease=$pre
83 changes: 83 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
version: 2
project_name: pasame

before:
hooks:
- go mod tidy
- go test ./...

builds:
- id: unix
main: ./cmd/pasame
binary: pasame
env: [CGO_ENABLED=0]
flags: [-trimpath]
ldflags: ["-s -w -X main.version={{ .Version }}"]
goos: [linux, darwin]
goarch: [amd64, arm64, arm]
goarm: ["7"]
ignore:
- { goos: darwin, goarch: arm }
- id: windows
main: ./cmd/pasame
binary: pasame
env: [CGO_ENABLED=0]
flags: [-trimpath]
ldflags: ["-s -w -H=windowsgui -X main.version={{ .Version }}"]
goos: [windows]
goarch: [amd64, arm64]

universal_binaries:
- id: macos
ids: [unix]
replace: true # queda un solo binario darwin (Intel + Apple Silicon)

archives:
- id: linux
ids: [unix]
formats: [tar.gz]
builds_info: { mode: 0755 }
name_template: 'pasame-linux-{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
files:
- src: packaging/linux/pasame.desktop
strip_parent: true
- src: packaging/linux/icon.png
strip_parent: true
- README.md
- LICENSE
- id: windows
ids: [windows]
formats: [binary]
name_template: 'Pasame-Windows{{ if eq .Arch "arm64" }}-arm64{{ end }}'

nfpms:
- id: deb
ids: [unix]
package_name: pasame
file_name_template: 'pasame_{{ .Version }}_{{ if eq .Arch "arm" }}armhf{{ else }}{{ .Arch }}{{ end }}'
formats: [deb]
maintainer: Martin Coll <145708582+KonixDev@users.noreply.github.com>
homepage: https://github.com/KonixDev/pasame # pasame.com.ar cuando se registre el dominio
description: Pasá archivos a cualquier celular o computadora que esté cerca.
license: MIT
recommends: [zenity, xdg-utils]
contents:
- src: packaging/linux/pasame.desktop
dst: /usr/share/applications/pasame.desktop
- src: packaging/linux/icon.png
dst: /usr/share/icons/hicolor/256x256/apps/pasame.png

checksum:
name_template: checksums.txt

signs:
- cmd: cosign
artifacts: checksum
signature: '${artifact}.sig'
certificate: '${artifact}.pem'
args: [sign-blob, --yes, '--output-signature=${signature}', '--output-certificate=${certificate}', '${artifact}']

release:
github: { owner: KonixDev, name: pasame }
prerelease: auto
draft: true # release-mac.sh sube el .dmg y latest.json, y recién ahí la publica
39 changes: 27 additions & 12 deletions README.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,62 +38,77 @@ In 2026, moving a video from your phone to the laptop next to it is still a hass

## Download

Get the version for your computer from **[Releases](https://github.com/KonixDev/pasame/releases/latest)**:
Go to **[konixdev.github.io/pasame](https://konixdev.github.io/pasame/en/)**: the button picks the right version for your computer. They are all in **[Releases](https://github.com/KonixDev/pasame/releases)** too:

| Your computer | File |
|---|---|
| Windows 10 or 11 | `Pasame-Windows.exe` (or `Pasame-Windows-arm64.exe` on ARM devices) |
| Mac (macOS 12 or newer, Intel or Apple silicon) | `Pasame-macOS.zip` |
| Linux (Raspberry Pi included) | `pasame-linux-amd64.tar.gz`, `-arm64` or `-armv7` |
| Mac (macOS 12 or newer, Intel or Apple silicon) | `Pasame-macOS.dmg` |
| Linux (Raspberry Pi included) | `pasame-linux-amd64.tar.gz`, `-arm64` or `-armv7`, or the `.deb` for Ubuntu and Debian |

There is nothing to install: it is a single file you double-click. The receiving side **installs nothing at all**: any browser from 2017 onwards works, including iPhone, Android, smart TVs and e-readers.

### The first time you open it

Pasame is not yet signed by Microsoft or Apple, so your computer will warn you the first time. You only do this once.
Pasame is not yet signed by Microsoft or Apple, so your computer will warn you the first time. You only do this once ([step-by-step guide](https://konixdev.github.io/pasame/en/how-to-open.html)).

- **Windows:** if you see "Windows protected your PC", click **More info** → **Run anyway**. If a "Windows Defender Firewall" window appears, click **Allow access**: this lets the phone see your computer.
- **Mac:** unzip the file, move **Pasame** to Applications and open it. If it says it can't be opened, go to **System Settings → Privacy & Security**, scroll to the bottom and click **Open Anyway**.
- **Linux:** extract it and run `./pasame`. To pick files with a window you need `zenity` or `kdialog` (GNOME and KDE ship them).
- **Mac:** open the `.dmg`, drag **Pasame** to Applications and open it. If it says it can't be opened, go to **System Settings → Privacy & Security**, scroll to the bottom and click **Open Anyway**.
- **Linux:** install the `.deb` (it shows up in your app menu) or extract the `.tar.gz` and run `./pasame`. To pick files with a window you need `zenity` or `kdialog` (GNOME and KDE ship them).

## Good to know

- **Both devices need to be on the same WiFi network** (or one plugged into the same router).
- WiFi in cafés, hotels and airports often blocks devices from seeing each other. Sharing over the internet is coming in the next version.
- WiFi in cafés, hotels and airports often blocks devices from seeing each other: use **Share over the internet** (below).
- On a Mac you can drop files onto the Pasame icon to share them right away.
- If you close the Pasame tab, the app quits by itself after 2 minutes (unless something is still downloading).
- Files sent to you land in **Downloads → Pasame**.
- Downloads resume on their own if the WiFi drops, and "Download all" builds a ZIP on the fly, with no waiting and no extra disk space.
- Pasame speaks English and Spanish. It picks your browser's language, and you can switch it from the ⋯ menu. The receiving page follows the language of the person sharing, with a one-tap switch.

## Far away or on another network

Click **Share over the internet**. A new code and a 4-digit key appear. The phone's code already includes the key; from a computer, type the address and then the key.

While it's on, everyone needs the key, also on your WiFi. Files go through Cloudflare's servers (a free service that may be unavailable). When you click **Stop sharing**, or **Go back to sharing over WiFi only**, the internet link stops working.

## What it doesn't promise

On your WiFi, anyone connected to that same network who has the link can see what you share while the app is open. Files never leave your network, but they are not encrypted inside it. Don't use Pasame on a network you don't trust.
- On your WiFi, anyone connected to that same network who has the link can see what you share while the app is open.
- Over the internet, files are encrypted up to Cloudflare, but Cloudflare could see them.
- Don't use Pasame on a network you don't trust.

## Status

**v0.1 · local network.** Working today: sharing files and folders, QR code and short address, several receivers at once, on-the-fly ZIP, resumable downloads, sending files back (including drag and drop onto the page), English and Spanish, single instance.
**v0.3 · local network and internet.** Working today: sharing files and folders, QR code and short address, several receivers at once, on-the-fly ZIP, resumable downloads, sending files back, sharing over the internet with a 4-digit key, dropping files onto the Mac icon, `.dmg` and `.deb`, English and Spanish.

Next (see the [plan](docs/superpowers/plans/2026-09-21-pasame-02-tunel-y-distribucion.md), in Spanish): sharing over the internet with a 4-digit code, a Mac app signed by Apple, installers, and the [pasame.com.ar](https://pasame.com.ar) website.
Next: a Mac app verified by Apple (it needs an Apple Developer account) and the [pasame.com.ar](https://pasame.com.ar) domain.

## For developers

Go 1.27, a single binary with no system dependencies (`CGO_ENABLED=0`) and two direct dependencies ([zenity](https://github.com/ncruces/zenity) for native dialogs and [go-qrcode](https://github.com/skip2/go-qrcode)). The interface is plain HTML, CSS and JavaScript with no framework, embedded in the binary; the receiving page even works with JavaScript turned off.
Go 1.27, a single binary with no system dependencies (`CGO_ENABLED=0`) and two direct dependencies ([zenity](https://github.com/ncruces/zenity) for native dialogs and [go-qrcode](https://github.com/skip2/go-qrcode)), plus [mdns](https://github.com/hashicorp/mdns) only in builds with `-tags mdns`. To share over the internet it downloads [cloudflared](https://github.com/cloudflare/cloudflared) the first time, with a pinned version and SHA-256. The interface is plain HTML, CSS and JavaScript with no framework, embedded in the binary; the receiving page even works with JavaScript turned off.

```bash
make test # unit and integration tests (go test -race)
make build # ./pasame
make cross # builds all 7 targets (Windows, macOS, Linux; x64 and ARM)
./pasame photo.jpg video.mp4 # opens already sharing those files
scripts/release.sh 0.1.0 # builds the release files into dist/ (on macOS)
go build -tags mdns ./cmd/pasame # with pasame.local
goreleaser release --snapshot --clean --skip=sign # a release's files, in dist/
```

Releases: pushing a `vX.Y.Z` tag runs `.github/workflows/release.yml` (GoReleaser + `.dmg`). For an Apple-verified Mac build, add the `MACOS_*` secrets (see Task 8 of [plan 2](docs/superpowers/plans/2026-09-21-pasame-02-tunel-y-distribucion.md), in Spanish); without them the release ships as a pre-release. Before a stable version: `test/manual/matriz.md` and `test/manual/tunel.md` complete.

| Folder | What's inside |
|---|---|
| `cmd/pasame` | The binary: wires everything together, opens the browser, handles shutdown. |
| `internal/share` | What the receiver sees (port 8080): page, downloads, ZIP, uploads. |
| `internal/control` | The sender's interface, only on `127.0.0.1` and protected by a token. |
| `internal/core` | Orchestrates the session, the addresses and the auto-quit rule. |
| `internal/addr` | Picks the right network (ignores VPNs, Docker and the like). |
| `internal/tunnel` | Downloads, verifies and runs `cloudflared` to share over the internet. |
| `site/` | The download website (GitHub Pages). |
| `packaging/` | Icons, the Mac `.app`, `.exe` metadata and the Linux launcher. |
| `internal/i18n` | Every string on the receiving page, in Spanish and English. |
| `web/` | HTML, CSS and JS for both screens. |
| `docs/marca` | [Brand guidelines](docs/marca/manual-de-marca.html) (in Spanish), logos and colors. |
Expand Down
Loading
Loading