Skip to content

Make sure Linux works #351

@idofrizler

Description

@idofrizler

Goal

Ensure Cooper works on Linux and create distributable packages.

Priority

P2 - Platform support - 4-6 hours

Implementation Details

1. Test Build on Linux

Set up Linux environment (VM or GitHub Actions):

  • Test npm install
  • Test npm run build
  • Fix any node-pty or native module issues

2. Common Linux Issues

  • node-pty compilation: needs build-essential, python3
  • Electron sandbox: may need --no-sandbox flag
  • File permissions

3. Create Linux Packages

Add to electron-builder config:

linux target: AppImage, deb
category: Development

4. Update CI

Add Linux to build matrix in GitHub Actions.

Files to Modify

  • package.json (electron-builder config)
  • .github/workflows/ (CI for Linux)
  • README.md (Linux prerequisites)

Prerequisites for Linux Users

  • Node.js 18+
  • build-essential: sudo apt install build-essential
  • Python 3: sudo apt install python3

Acceptance Criteria

  • npm install succeeds on Ubuntu 22.04+
  • npm run build succeeds
  • AppImage runs correctly
  • Added to CI build matrix

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions