Skip to content
SiperbPublic

About

Lift your snaps to the store — a Transporter-style uploader for the Snap Store edge channel.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Snaplift

Lift your snaps to the store. A Transporter-style desktop app that gives Snap Store uploads the same clean, one-window experience Apple developers get from Transporter — drop in your builds, deliver to the edge channel, done.

A small, single-binary, Transporter-style desktop app for delivering .snap packages to the Snap Store edge channel — the Snap equivalent of Apple TestFlight / Android Internal testing.

It wraps the official snapcraft CLI in a visual UI that is always aware of both AMD64 and ARM64 builds, shows a live view of each upload, and links straight to the Snap Store dashboard where you log in to promote a tested build up to release (edge → beta → candidate → stable) — exactly the way you promote on Apple, Google and Microsoft.

Built with Wails (Go + native webview), so it ships as one self-contained executable:

Platform You hand the reseller They need to install
Windows 10/11 Snaplift_<version>_windows-amd64.exe (one file) nothing (WebView2 ships with Windows)
macOS (Intel + Apple Silicon) Snaplift.app, one universal bundle (~16 MB) nothing

No Python, no runtime, no installer — double-click and go. (Until builds are signed, the first launch needs a one-time approval: see First launch.)


What it does

  • Detects the snap tooling. On launch it checks for snapcraft (and snap) and shows a green/red badge. Click it to re-check after installing.
  • Points at an auth file. Auth is a Snap Store exported login file. The app auto-finds one next to itself, or use Import auth file… to pick the file snapcraft export-login produced. Your password / 2FA never touch this app — it passes the credential to snapcraft via SNAPCRAFT_STORE_CREDENTIALS.
  • Two architecture slots, always. AMD64 (x86-64) and ARM64 (aarch64) side by side. Drop or choose a .snap into each. Dropped files are routed to the matching slot automatically.
  • Reads the snap's own details, like Transporter. Snaplift reads meta/snap.yaml and the icon straight out of the .snap (no unpacking, no extra tools) and shows a card per architecture: icon, title, snap name, version, summary, architecture, size, base, grade and confinement. It warns when a file sits in the wrong slot, when the two files are different snaps or different versions, and when a devel-grade snap can't be promoted past beta. If a snap's metadata can't be read, the details fall back to the filename.
  • Pick and put, like Transporter. Nothing to type: the snap's name and version come from the files you pick. One Deliver button runs snapcraft upload <file> --release=edge per architecture and streams the output live. Builds always go to edge; you choose what gets promoted in the Snap Store.
  • Promote in the browser. Open Snap Store opens snapcraft.io/<name>/releases, where you log in to the Snap backend and promote the tested edge build up to a release channel.

Versioning & releases

Snaplift follows the Siperb convention:

  • The version lives in VERSION (e.g. 0.0.1, no trailing newline).
  • wails.json (productVersion) and version.go carry a __VERSION__ placeholder. CI reads VERSION and replaces the placeholders before building; the version then shows in the app's title bar, the macOS bundle and the Windows exe properties.
  • Bump VERSION with each change. Commits are titled Version X.Y.Z.
  • Work lands on main. Pushing to the release branch runs .github/workflows/build.yml, which tests and builds on GitHub's Windows and macOS runners. Only when both pass does it publish GitHub Release v<VERSION>, with:
    • Snaplift_<VERSION>_windows-amd64.exe
    • Snaplift_<VERSION>_macos-universal.zip (one .app for Intel + Apple Silicon)

You never build on a reseller's machine: hand them the files from the Release.

Building locally

Prerequisites on the build machine only:

  • Go (version per go.mod)
  • Wails CLI: go install github.com/wailsapp/wails/v2/cmd/wails@latest (plus Xcode CLT on macOS; WebView2 SDK is automatic on Windows)

Then:

./build.sh      # macOS -> build/bin/Snaplift.app (universal); Linux -> build/bin/Snaplift
build.bat       # Windows -> build\bin\Snaplift.exe

Both scripts stamp the build with VERSION and put the __VERSION__ placeholders back afterwards, so the committed files never change. Use them rather than a bare wails build: a placeholder version fails the Windows build. Live development with hot reload: wails dev (shows as dev).


First launch (until builds are signed)

Release builds aren't signed with an Apple Developer ID or a Windows code-signing certificate yet, so the OS blocks them the first time you open them. You approve each download once.

macOS

macOS 15 and later (including macOS 26) no longer allow right-click → Open for this. Use either way below.

System Settings (no Terminal):

  1. Unzip Snaplift_<version>_macos-universal.zip and double-click Snaplift.
  2. When macOS says it can't verify the app, click Done, not Move to Trash.
  3. Open System Settings → Privacy & Security and scroll down to Security.
  4. Next to "Snaplift" was blocked to protect your Mac, click Open Anyway, approve with Touch ID or your password, then click Open.

Terminal: clear the download quarantine flag, and the app then opens like any other:

xattr -dr com.apple.quarantine ~/Downloads/Snaplift.app

Use the app's actual path if you've moved it. Keep Snaplift.app and your snapcraft-login file together in their own folder (e.g. ~/Snaplift/). Don't turn off Gatekeeper system-wide; the single-app steps above are enough.

Windows

  1. If the browser warns that the file isn't commonly downloaded, keep it. In Edge: … → Keep → Show more → Keep anyway.
  2. Run the .exe. When Windows protected your PC appears, click More info → Run anyway.

Or unblock the file before running it, either way:

  • Right-click the .exe → Properties → General → tick Unblock → OK.
  • PowerShell:
    Unblock-File "$env:USERPROFILE\Downloads\Snaplift_*_windows-amd64.exe"

Smart App Control: on Windows 11 PCs where Smart App Control is On, unsigned apps are blocked outright, with no Run anyway. Turning it off weakens that PC's protection, and on many PCs it can't be turned back on without resetting Windows. For those PCs the answer is a signed build (see below).


Signing (removes the first-launch step)

Until builds are signed, every reseller has to do the first-launch steps above. It happens with an unsigned binary in any language:

  • macOS Gatekeeper: "Apple could not verify "Snaplift" is free of malware…"
  • Windows SmartScreen: "Windows protected your PC" (or a hard block under Smart App Control)

Snaplift's builds are only ad-hoc self-signed. To distribute cleanly:

  • macOS: sign + notarize with an Apple Developer ID ($99/yr):
    codesign --deep --force --options runtime \
      --sign "Developer ID Application: YOUR NAME (TEAMID)" "build/bin/Snaplift.app"
    xcrun notarytool submit "Snaplift.app.zip" --apple-id … --team-id … --password … --wait
    xcrun stapler staple "build/bin/Snaplift.app"
  • Windows: sign the .exe with a code-signing certificate (signtool sign /fd sha256 /tr <timestamp-url> "Snaplift.exe"). An OV/EV cert removes the SmartScreen prompt.

Both can be wired into the CI workflow using encrypted repo secrets.


Getting the auth file

On any machine that can log in to the Snap Store (has snapcraft):

snapcraft export-login --snaps YOUR-SNAP-NAME --channels edge,beta,candidate snapcraft-login

The file can have any name or extension (snapcraft-login, siperb.auth, login.txt…):

  • Import auth file… accepts any file. Snaplift checks the contents and shows an amber dot if the file doesn't look like an exported login. The file is copied next to the app as snapcraft-login.
  • Auto-locate finds it next to the app (on macOS, in the folder that holds Snaplift.app) when it's named snapcraft-login, *.auth, *.cred, *.credentials or snap-auth…, or when a .txt / extension-less file holds the token.

It is a bearer credential — keep it private. It is git-ignored here.


Requirements / notes

  • snapcraft must be installed on the machine doing the upload. This app is a visual front-end; it does not bundle snapcraft. snapcraft is Linux-first (sudo snap install snapcraft --classic); on macOS use Homebrew (brew install snapcraft, which also installs squashfs: snapcraft runs unsquashfs to read the snap before uploading; if it's missing, Snaplift says brew install squashfs). Red badge ⇒ upload disabled until it is found; the app shows the exact install steps for your OS.
  • Windows: snapcraft runs inside WSL. Snaplift finds it there and runs the upload through wsl.exe. The badge shows "· WSL", file paths are converted with wslpath, and the login is passed in through WSLENV, never on the command line. One-time setup:
    1. PowerShell as administrator: wsl --install, then restart (installs Ubuntu).
    2. In the Ubuntu terminal: sudo snap install snapcraft --classic. If snap says systemd isn't running, add [boot] / systemd=true to /etc/wsl.conf, run wsl --shutdown in PowerShell, and try again.
  • Uploading only delivers to edge. Promotion to a public release channel is done by logging in to the Snap Store dashboard — use the in-app button.

Project layout

CLAUDE.md, MEMORY.md    project guide + persistent memory (decisions, session log)
VERSION                 the version (Siperb convention)
main.go                 Wails app: window, options, bindings
app.go                  backend: auth, snap inspection, upload, dashboard
snapmeta.go             reads meta/snap.yaml + icon from inside the .snap (pure Go)
tools.go                snapcraft/snap detection: native, or inside WSL on Windows
testdata/               tiny fixture snaps + make-fixtures.sh (for the tests)
proc_*.go               hide console windows for child processes (Windows)
tools_test.go           unit tests: `go test ./...` (CI runs them on Windows + macOS)
version.go              Version (__VERSION__ placeholder) + GetVersion()
wails.json              Wails project config (productVersion placeholder)
frontend/dist/          the UI (index.html, style.css, app.js)
frontend/wailsjs/       generated Go↔JS bindings (created by `wails build`)
build/                  Wails build resources (app icon, Info.plist template)
build.sh / build.bat    local single-binary builds, stamped from VERSION
.github/workflows/      CI: on push to `release`, builds + publishes v<VERSION>
prototype-python/       the earlier pywebview version, kept for reference

About

Lift your snaps to the store — a Transporter-style uploader for the Snap Store edge channel.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages