Folio/electron-builder.yml
avi 44b4737a20 fix(build): emit linux x86_64 tar.gz on every package run
The in-app updater installs the release asset matched by pickAsset
(tar.gz + linux + x86_64/amd64); the config only built AppImage+deb, so
plain 'npm run package' produced no updatable asset and required a second
electron-builder invocation plus a manual rename (as done for 0.1.13).
2026-10-05 10:42:41 -05:00

64 lines
1.8 KiB
YAML

appId: io.atitlan.folio
productName: Folio
directories:
buildResources: build
output: releases
files:
- dist/**
- package.json
# Bundled so the packaged binary can be exercised in-place (FOLIO_SELF_TEST).
# It is inert during normal launches.
- tests/selftest-scenario.js
linux:
icon: build/icons
category: Office
maintainer: Folio Contributors
executableName: folio
syncDesktopName: true
desktop:
entry:
StartupWMClass: folio
target:
- AppImage
- deb
# tar.gz is what the in-app updater installs (pickAsset looks for a
# linux x86_64/amd64 tarball); arch must be x64 so the asset name ends
# in -linux-x86_64 like every published release.
- target: tar.gz
arch: x64
# OS file associations: double-click / "Open with Folio" on Markdown and
# plain-text files imports them as books (see folio:openPathOrImport and
# fileArgFrom in src/main/index.ts). Without this the desktop environment
# never offers Folio for .txt/.md files.
fileAssociations:
- ext:
- md
- markdown
name: Folio Markdown document
description: Markdown document opened as a Folio book
role: Editor
mimeType: text/markdown
- ext:
- txt
name: Folio text document
description: Plain-text document opened as a Folio book
role: Editor
mimeType: text/plain
# Debian package options live at the config root in electron-builder v26.
# Setting `depends` replaces the auto-generated list, so keep its entries and
# add what Electron links but the defaults omit — notably libasound2 (ALSA),
# which barebones desktop installs can lack.
deb:
depends:
- libgtk-3-0
- libnotify4
- libnss3
- libxss1
- libxtst6
- xdg-utils
- libatspi2.0-0
- libuuid1
- libsecret-1-0
- libasound2