Skip to content

logseq/com.logseq.Logseq

 
 

Repository files navigation

Logseq Flatpak

How to update to a new version

Set the VERSION environment variable

export VERSION=0.8.0

Download the latest release from https://github.com/logseq/logseq/releases

curl -L -o logseq-$VERSION.tar.gz https://github.com/logseq/logseq/archive/refs/tags/$VERSION.tar.gz

Generate the sha256sum

sha256sum logseq-$VERSION.tar.gz

Update the release url and the sha257sum in the com.logseq.Logseq.json file.

Uncompress the file

tar xf logseq-$VERSION.tar.gz

Generate missing yarn lock file

cd logseq-$VERSION/resources
yarn
cp yarn.lock ../../static/yarn.lock

Install flatpak-node-generator from flatpak-builder-tools

Generate generated-sources.json

flatpak-node-generator -r yarn \
  logseq-$VERSION/yarn.lock --electron-node-headers -o generated-sources.json

Finally we may also need to update the clojure dependencies.

First we need to build the new release to force download dependencies.

rm -rf ~/.m2/repository
cd logseq-$VERSION
yarn
yarn gulp:build && yarn cljs:release-electron

Then update the maven-sources.json file

python3 flatpak-clj-generator-from-cache.py > maven-sources.json

Finally, test the build

flatpak-builder --user --install --force-clean build-dir/ com.logseq.Logseq.yml

If all goes well, we can commit and push a new release.

Releases

No releases published

Packages

No packages published

Languages

  • Shell 62.0%
  • Python 38.0%