Files
logseq/docs/Build LogSeq Desktop for windows on Ubuntu.md
megayu 79c25837cb Migrate from yarn to pnpm (#12529)
* migrate yarn to pnpm

* chore: update pnpm version to 10.33.0 across all package.json files

* chore: update .npmrc and package.json for improved dependency management

* chore: unify Clojure, Node, and Java version in workflow files

* fix: enable shamefully-hoist for now and add electron, keytar to onlyBuiltDependencies

* feat: add cider/piggieback dependency and update nREPL middleware configuration to silence warnings

* ensure pnpm setup prior to node setup

* fix: update logseq/bb-tasks git SHA

* feat: add pnpm configuration for onlyBuiltDependencies in package.json

* feat: add onlyBuiltDependencies configuration for better-sqlite3 in pnpm settings

* chore: update pnpm lockfile

* fix: resolve merge conflicts

* fix: remove invisible characters from markdown headers

* fix: update .npmrc comments for clarity on lockfile usage

* Revert "feat: add cider/piggieback dependency and update nREPL middleware configuration to silence warnings"

This reverts commit 70a111936f.

* fix: remove invisible characters from various README files and add .editorconfig

* fix: clarify lockfile resolution process in SKILL.md

---------

Co-authored-by: Tienson Qin <tiensonqin@gmail.com>
2026-04-24 23:40:25 +08:00

1.3 KiB

Building Logseq Desktop app for Windows on Ubuntu

Intro

My Logseq dev machine is on Ubuntu 18.x and my production machine is running Windows 10, I needed a way to compile the Logseq desktop APP for Windows. I tried & failed to make the "build" run on my windows machine but I did, however, succeed in letting my Ubuntu machine make Windows x64 files

Pre-requisites

These are the steps I took to make it work on my Ubuntu machine, sharing them hoping it helps someone else. I assume you have all the basic pre-requisites for Logseq, if not you can find them at https://github.com/logseq/logseq#1-requirements

  1. clone Logseq repo if you haven't already git clone https://github.com/logseq/logseq/
  2. Install wine
sudo dpkg --add-architecture i386
sudo apt update
sudo apt install wine64 wine32
  1. Install winetricks & install dotnet using winetricks
sudo apt install winetricks

winetricks dotnet46
  1. Install nuget and mono (N.B. I had to install mono-complete for it to work)
sudo apt install nuget

sudo apt-get install mono-complete
  1. in ~/logseq/resources/package.json line 10 "electron:make": "electron-forge make --platform=win32 --arch=x64 --asar",
  2. Compile using
cd logseq
pnpm install
pnpm release
pnpm release-electron

the executable should be in the static/out/make/squirrel.windows/x64/ folder