Skip to main content

A native project and a documented format

The code lives on GitLab. The Apple apps are built on SwiftUI and a Swift core independent of platform APIs; the Linux version reuses that core behind a GTK interface. An independent Python reader is used to verify exports.

Build the Apple apps​

On a Mac with Xcode and XcodeGen, from a clone of the repository:

brew install xcodegen
xcodegen generate
open Envorenn.xcodeproj

The project gathers the iOS app, the macOS app, the share extension and the widgets. Choose your signing team and a device in Xcode. The source of the generated project is project.yml. See the repository README for prerequisites and validation limits.

Build the Linux version​

On Debian 12, with Swift 6.2, libssl-dev, pkg-config, dpkg-dev and desktop-file-utils:

./Linux/build-deb.sh

The script produces a .deb package for the current architecture; Docker lets you target amd64 or arm64.

Run the tests​

swift test --package-path Packages/EnvorennCore
python3 -m unittest discover -s tools -p 'test_*.py'
bash scripts/check-architecture.sh
bash scripts/check-journal-search.sh

Tests against a real server are separate from local tests; configure only a test account and a test folder, following the repository instructions. Never put credentials in an issue or a commit.

Understand the storage​

The journal keeps immutable snapshots, with explicit parent versions. File names rest on the identifier and the digest of the stored bytes. WebDAV folders use stable identifiers; local tree-move operations have a recoverable preparation step.

Notes and their memberships stay in the same document. The working folder publishes, in parallel, Markdown files reconciled by identity and digest. Export and conflicts are part of the format, not just the interface.

Edit this site​

Source pages live in website/docs/, translations in website/i18n/<language>/. Each language has the eleven pages, with the same document identifiers.

cd website
npm ci
npm start
npm run build

Screenshots come from the localized App Store captures. python3 website/scripts/build-screenshots.py resizes them into website/static/img/shots/<language>/ and writes the manifest read by the <Screenshot> component, which serves the reader’s language and falls back to French.

The GitLab pipeline builds the site on branches and publishes the public/ result from the default branch. The shell runner gets a pinned Node in its workspace, without depending on the system version. CI_PAGES_URL provides the publication address; PAGES_URL can replace it for a custom domain.

A change to the French source requires updating the translations: npm run check:translations rejects a missing page, or one whose Markdown structure, links or code examples have changed.

To contribute, open an issue or a merge request describing the change and how it was validated. Use only synthetic examples in screenshots and test files.