Repository navigation
DISTRIBUTION
Generated from
docs/DISTRIBUTION.mdin the repository. Do not edit this page: change the file indocs/and runscripts\sync-wiki.ps1.
Two package managers, for one reason: an install done by a package manager does not carry the "downloaded from the internet" mark, so SmartScreen does not interrupt the user. Neither of them replaces a trusted signature. They reduce the friction of one.
Scoop takes the portable edgepass.exe, not the NSIS installer. The installer
writes to %LOCALAPPDATA%, creates a logon task and registers an uninstaller, and
none of that survives a Scoop upgrade cleanly. The portable binary is the right
shape for a scoop bucket.
Create a public repository named scoop-bucket. Inside it, a bucket/ folder with
edgepass.json, copied from packaging/scoop/edgepass.json.
scoop-bucket/
bucket/
edgepass.json
Push it. That is the whole bucket.
scoop bucket add xhuk https://github.com/Xhuk/scoop-bucket
scoop install edgepassTo upgrade later:
scoop update
scoop update edgepassUpdate two fields in bucket/edgepass.json: version and the hash of the new
edgepass.exe. checkver and autoupdate handle the URL. Do not type the hash by
hand: copy it from Get-FileHash.
The manifest also carries the thin parts of the lifecycle Scoop does not infer:
-
notessays to quit the widget beforescoop update(Windows cannot replace a running.exe), to install the WebView2 Runtime, and that config/index/logs live in%APPDATA%\edgePassand survive an uninstall. -
post_uninstallunregisters theedgePasslogon task. Scoop never runs the NSIS uninstaller, so without this the task outlives the binary.
packaging/scoop/edgepass.json in this repo and bucket/edgepass.json in the
bucket must stay byte-identical: the bucket is the published copy, the repo copy
is what gets reviewed in a PR.
winget uses the NSIS installer, and it goes into the central catalog
microsoft/winget-pkgs. The manifest is three files, not one: the catalog
rejects a singleton with Manifest type not supported. They live in
packaging/winget/ and travel together:
| File | ManifestType |
|---|---|
Xhuk.EdgePass.yaml |
version |
Xhuk.EdgePass.locale.en-US.yaml |
defaultLocale |
Xhuk.EdgePass.installer.yaml |
installer |
winget validate --manifest packaging\wingetA pass here is not proof that the PR will pass: winget validate accepts a
singleton and answers "succeeded", while the catalog does not. The only real
proof is the check on the pull request. See docs/WINGET-SUBMISSION.md.
Install the tool once:
winget install Microsoft.WingetCreateThen let it open the pull request:
wingetcreate submit packaging\winget\Xhuk.EdgePass.yamlThe first submission is reviewed by a person. Later versions go through the same path, faster.
Update PackageVersion, InstallerUrl, InstallerSha256, ReleaseDate and
ReleaseNotesUrl. The SHA256 is the one of the signed setup file.
Which repo. The bucket downloads from
Xhuk/EdgePass(public). The workflows below only run where they are committed, so the release must be cut in the public repo. A tag pushed to the privateedgepass-devremote produces an asset the bucket cannot download.
- Bump
versioninpackage.json,src-tauri/Cargo.tomlandsrc-tauri/tauri.conf.json(andsrc-tauri/Cargo.lock, whichcargorewrites). Put the same version at the top ofCHANGELOG.md. - Commit, tag
vX.Y.Z, push the tag..github/workflows/release.ymlbuilds the portable exe and the NSIS setup, writesSHA256SUMS.txtwith both, signs them whenWINDOWS_CERT_PFX_BASE64andWINDOWS_CERT_PASSWORDexist, and attaches all three files to the GitHub release. Without a certificate the binaries are unsigned, which is what the manifest notes say. -
Wait for the asset to answer at
https://github.com/Xhuk/EdgePass/releases/download/vX.Y.Z/edgepass.exe. Do not touch the bucket before that: a manifest pointing at a 404 breaksscoop updatefor everyone. - Hash the published files, not the local build:
Get-FileHash edgepass.exe -Algorithm SHA256for Scoop, and the same foredgePass_X.Y.Z_x64-setup.exefor winget. - Update
version,urlandhashin the bucket, then copy the same file intopackaging/scoop/edgepass.json(they must stay identical). - On a second machine:
scoop update; scoop update edgepass, launch it, and check{"op":"ping"}returns the new version. - winget: update
PackageVersion,InstallerUrl,InstallerSha256(the setup, not the portable exe) andReleaseDateinpackaging/winget/, thenwingetcreate submit.
The 0.5.0 binary is Authenticode-signed with the project certificate
CN=Firma Instalador (self-signed, code-signing EKU, valid until 2028-11-05),
which lives in the Windows certificate store. Locally:
& "C:\Program Files (x86)\Windows Kits\10\bin\10.0.22621.0\x64\signtool.exe" sign `
/fd SHA256 /td SHA256 /tr http://timestamp.digicert.com `
/sha1 DFB044D2258C3A8361CBF68DC3B86A644898BCB3 /d "edgePass" `
src-tauri\target\release\edgepass.exeFor CI, the private key was exported from that store entry and the two secrets
WINDOWS_CERT_PFX_BASE64 and WINDOWS_CERT_PASSWORD are set in
Xhuk/EdgePass; release.yml signs only when they exist.
Limitation, stated plainly: a self-signed certificate is not trusted by anyone else's machine, so SmartScreen still warns until the root is installed. Removing that warning for every user requires an OV/EV code-signing certificate from a public CA. The signature still proves the binary was not modified after the build, and the timestamp keeps it valid past the certificate's expiry.
| Scope | Install | Upgrade | Works offline | |
|---|---|---|---|---|
| Scoop | user, portable | scoop install edgepass |
scoop update edgepass |
yes, after first download |
| winget | user, installer | winget install Xhuk.EdgePass |
winget upgrade |
no |
Scoop is faster to publish: the bucket is yours, no review. winget reaches more people but validates every submission.
- The signature. A package manager avoids the SmartScreen path; it does not make the binary trusted. For a CA-backed signature see the SignPath Foundation program in the README discussion, or a paid certificate.
- The prerequisite. OpenBao must exist and be unsealed before the app is useful. The installer cannot do that for the user.
- Bump the version in
tauri.conf.json,Cargo.tomlandpackage.json. - Build:
npm run tauri build -- --bundles nsis --target x86_64-pc-windows-msvc. - Sign the setup and the portable exe.
- Upload both to the release.
- Copy the two SHA256 values.
- Update
packaging/scoop/edgepass.json(version, hash) and the three files inpackaging/winget/(version, url, sha, date). - Push the bucket, submit the winget manifests.
The winget pull request needs a signed Contributor License Agreement, once, from
the account that opens it. The bot asks and the account answers
@microsoft-github-policy-service agree. Without that the PR cannot merge.