Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
8b2af6c
build(deps): bump agp, gradle wrapper, spotless, robolectric and dokka
pasichDev Nov 26, 2026
177879e
fix(editor): selection handles, keyboard copy, forward delete, table …
pasichDev Nov 26, 2026
4cf0364
feat(lock): fit the PIN screen to short windows and show only typed dots
pasichDev Nov 26, 2026
0076865
perf(import): scan JSON exports item by item and merge in batches
pasichDev Nov 26, 2026
2914742
docs: add the security wording review rule and the Weblate maintenanc…
pasichDev Nov 26, 2026
00c64d5
chore(release): 3.1.0
pasichDev Nov 26, 2026
7e3e7e5
fix(security): keep every OS lock on Linux and hold the forced PIN re…
pasichDev Nov 26, 2026
8e20ab0
ci(release): build, verify and attach the Linux packages on a release…
pasichDev Nov 26, 2026
439ed57
build(deps): keep dokka at 2.2.0
pasichDev Nov 26, 2026
100b0ba
docs(readme): list the platforms, move the screenshots and the donati…
pasichDev Nov 26, 2026
968e08c
feat(security): put the unlock secret behind a policy and add slot ve…
pasichDev Nov 26, 2026
0ef6266
feat(desktop): stretch a passphrase with Argon2id for the desktop vault
pasichDev Nov 26, 2026
65c0452
feat(lock): type a passphrase where the vault secret is one, and wait…
pasichDev Nov 26, 2026
e9681ba
feat(desktop): bind the passphrase policy and keep a known lock when …
pasichDev Nov 26, 2026
cd27bbb
ci(release): build the .deb on Ubuntu 22.04, verify it on five system…
pasichDev Nov 26, 2026
246b110
docs: describe the Linux release, the desktop passphrase and what it …
pasichDev Nov 26, 2026
ed45db3
fix(desktop): ask the keyring through its own prompt and stop reading…
pasichDev Nov 26, 2026
eab536e
ci(release): keep --in-place across the fakeroot re-exec and let the …
pasichDev Nov 26, 2026
70d9622
docs: describe the keyring prompt, the key-not-found state and the Li…
pasichDev Nov 26, 2026
c91c2e1
test(keystore): expect a deleted Secret Service item to be not found,…
pasichDev Nov 26, 2026
9b73857
fix(i18n): keep "Tap" in the texts a phone shows and add the Paste label
pasichDev Nov 27, 2026
8dff3f5
fix(desktop): offer Paste on a right click in the passphrase field an…
pasichDev Nov 27, 2026
e74773f
fix(lock): clear a lock that raced the erase of the vault
pasichDev Nov 27, 2026
3799626
ci(release): build Linux packages only on a manual run behind a repos…
pasichDev Nov 27, 2026
3286977
docs: describe 3.1.0 as an Android release and the desktop app as not…
pasichDev Nov 27, 2026
b05a0c7
feat(desktop): show the entry screens as a centred card with the acti…
pasichDev Nov 27, 2026
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
97 changes: 97 additions & 0 deletions .github/workflows/_verify-linux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
name: Verify the Linux packages

# Called by android.yml (pull requests, main) and release.yml (a manual run), so both run exactly the same checks:
# desktopApp/packaging/verify-linux-packages.sh on clean machines. It installs the .deb the way a user does and checks
# the installed files; the Flatpak bundle is installed and checked on one machine. The window is never opened.
#
# ubuntu the .deb on every Ubuntu LTS runner image (22.04 is the oldest supported system, see desktopApp/README.md;
# `ubuntu-latest` is 26.04 at the time of writing and moves on by itself), and on `ubuntu-latest` also
# the Flatpak bundle.
# debian the .deb in Debian containers (12 is the oldest supported one).
#
# The artifacts are those of the calling workflow run (they are named by the inputs).

on:
workflow_call:
inputs:
ref:
description: 'Git ref whose desktopApp/packaging/verify-linux-packages.sh is run (empty: the ref of the run)'
type: string
default: ''
deb-artifact:
description: 'Name of the workflow artifact that holds the .deb'
type: string
required: true
flatpak-artifact:
description: 'Name of the workflow artifact that holds the .flatpak'
type: string
required: true

permissions: {}

jobs:
ubuntu:
name: ubuntu ${{ matrix.os }}
runs-on: ${{ matrix.os }}
timeout-minutes: 30
permissions:
contents: read
strategy:
fail-fast: false
matrix:
include:
- { os: ubuntu-22.04, flatpak: '0' }
- { os: ubuntu-24.04, flatpak: '0' }
- { os: ubuntu-latest, flatpak: '1' }
env:
ENCLY_VERIFY_FLATPAK: ${{ matrix.flatpak }}
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
ref: ${{ inputs.ref }}
persist-credentials: false

- name: Download the .deb
uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
with:
name: ${{ inputs.deb-artifact }}
path: linux

- name: Download the Flatpak bundle
if: matrix.flatpak == '1'
uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
with:
name: ${{ inputs.flatpak-artifact }}
path: linux

- name: Install the packages and check them
run: desktopApp/packaging/verify-linux-packages.sh linux

debian:
name: debian ${{ matrix.image }}
runs-on: ubuntu-latest
timeout-minutes: 30
permissions:
contents: read
# A minimal Debian has no desktop and no system menu directory, like a bare window-manager install.
container: ${{ matrix.image }}
strategy:
fail-fast: false
matrix:
image: ['debian:12', 'debian:13']
env:
ENCLY_VERIFY_FLATPAK: '0'
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
ref: ${{ inputs.ref }}
persist-credentials: false

- name: Download the .deb
uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
with:
name: ${{ inputs.deb-artifact }}
path: linux

- name: Install the package and check it
run: desktopApp/packaging/verify-linux-packages.sh linux
54 changes: 43 additions & 11 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,12 @@ jobs:
fail-fast: false
matrix:
include:
- { os: ubuntu-latest, task: packageDeb, pattern: 'desktopApp/build/compose/binaries/main/deb/*.deb' }
# The .deb is built on ubuntu-22.04, the oldest supported system: jpackage writes the package's `Depends:`
# from the machine it runs on, and on Ubuntu 24.04 and later that names `libasound2t64` and the like, which
# Ubuntu 22.04 and Debian 12 do not have (release.yml builds it the same way). The Flatpak bundle is built
# on ubuntu-latest, with the newer flatpak-builder; its leg uploads the bundle, not an installer.
- { os: ubuntu-22.04, task: packageDeb, pattern: 'desktopApp/build/compose/binaries/main/deb/*.deb' }
- { os: ubuntu-latest, task: createDistributable, flatpak: true }
- { os: windows-latest, task: packageMsi, pattern: 'desktopApp/build/compose/binaries/main/msi/*.msi' }
- { os: macos-15, task: packageDmg, pattern: 'desktopApp/build/compose/binaries/main/dmg/*.dmg' }
defaults:
Expand Down Expand Up @@ -289,7 +294,7 @@ jobs:

# jpackage builds a .deb with dpkg-deb and fakeroot.
- name: Linux packaging tools
if: runner.os == 'Linux'
if: matrix.task == 'packageDeb' && runner.os == 'Linux'
run: sudo apt-get update && sudo apt-get install -y fakeroot

# macOS: the Developer ID certificate goes into a keychain of its own that exists for this job only
Expand Down Expand Up @@ -329,6 +334,18 @@ jobs:
if: runner.os != 'macOS' || steps.signing.outputs.signed != 'true'
run: ./gradlew :desktopApp:${{ matrix.task }}

# jpackage's postinst fails on a machine without a desktop menu directory (a bare window manager); the finished
# .deb is patched before it is uploaded, so the file that is verified is the file that ships (release.yml does
# the same). desktopApp/README.md, "The .deb's postinst".
- name: Patch the .deb's postinst
if: matrix.task == 'packageDeb'
run: |
set -euo pipefail
shopt -s nullglob
debs=(desktopApp/build/compose/binaries/main/deb/*.deb)
[ "${#debs[@]}" -eq 1 ] || { echo "::error::expected one .deb, found ${#debs[@]}"; exit 1; }
desktopApp/packaging/deb/harden-postinst.sh --in-place "${debs[0]}"

# Gradle signs the app image (every binary, hardened runtime, desktopApp/packaging/macos/entitlements.plist)
# and the DMG; notarizeDmg submits it to Apple with notarytool, waits, and staples the ticket.
- name: Package, sign and notarize (macOS)
Expand Down Expand Up @@ -388,29 +405,27 @@ jobs:
"$signtool" verify /pa /v "$(cygpath -w "$msi")"

- name: Upload the installer
if: ${{ !matrix.flatpak }}
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: encly-desktop-${{ matrix.os }}${{ steps.signing.outputs.suffix }}
path: ${{ matrix.pattern }}
retention-days: 14
if-no-files-found: error

# Linux only: the Flatpak bundle (desktopApp/packaging/flatpak). flatpak-builder installs the freedesktop
# The ubuntu-latest leg only: the Flatpak bundle (desktopApp/packaging/flatpak). flatpak-builder installs the freedesktop
# runtime from Flathub; ubuntu-latest restricts unprivileged user namespaces, which bubblewrap needs.
- name: Flatpak tooling
if: runner.os == 'Linux'
if: matrix.flatpak
run: |
set -euo pipefail
sudo apt-get update
sudo apt-get install -y flatpak flatpak-builder appstream desktop-file-utils libxml2-utils
sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0 || true
flatpak remote-add --user --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo

- name: App image
if: runner.os == 'Linux'
run: ./gradlew :desktopApp:createDistributable

- name: Flatpak
if: runner.os == 'Linux'
if: matrix.flatpak
env:
ENCLY_FLATPAK_SKIP_GRADLE: '1'
ENCLY_FLATPAK_REQUIRE_LINT: '1'
Expand All @@ -419,15 +434,15 @@ jobs:
# For information only: Flathub's linter. It expects a source build and screenshots, so it reports things
# that do not apply to this bundle; it never fails the job.
- name: Flatpak lint
if: runner.os == 'Linux'
if: matrix.flatpak
continue-on-error: true
run: |
flatpak install --user -y flathub org.flatpak.Builder
flatpak run --command=flatpak-builder-lint org.flatpak.Builder manifest desktopApp/packaging/flatpak/io.github.pasichdev.Encly.yml
flatpak run --command=flatpak-builder-lint org.flatpak.Builder repo desktopApp/build/flatpak/repo

- name: Upload the Flatpak bundle
if: runner.os == 'Linux'
if: matrix.flatpak
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: encly-desktop-flatpak-unsigned
Expand All @@ -444,6 +459,23 @@ jobs:
security delete-keychain "$RUNNER_TEMP/encly-signing.keychain-db" 2> /dev/null || true
fi

# The Linux packages of the desktop installer jobs, installed on clean machines and checked (_verify-linux.yml, the
# same checks the release workflow runs on a tag): the .deb with apt on every Ubuntu LTS runner image and in Debian 12
# and 13 containers, the Flatpak bundle for the user, the installed files, the metadata, the sandbox permissions and
# the licence texts. The window is not opened. It runs when the installer job did not fail on the Linux legs, even if
# the Windows or macOS leg failed (a matrix cannot be depended on per leg); a missing Linux artifact then fails the
# download with a clear message.
desktop-linux-verify:
name: linux packages (verify)
needs: desktop-package
if: ${{ !cancelled() && github.actor != 'dependabot[bot]' && needs.desktop-package.result != 'skipped' }}
permissions:
contents: read
uses: ./.github/workflows/_verify-linux.yml
with:
deb-artifact: encly-desktop-ubuntu-22.04-unsigned
flatpak-artifact: encly-desktop-flatpak-unsigned

release:
name: release build (R8, lint, manifest)
# Dependabot bumps (build(deps) / ci(deps)) don't run CI on their own PR: they are merged in
Expand Down
Loading