lameta icon indicating copy to clipboard operation
lameta copied to clipboard

Compiling for Linux

Open hatton opened this issue 5 years ago • 3 comments

I took some personal time to work on getting a linux build. I was only semi-successful, but we can use this issue to track progress.

Had to get node 12 installed... will add that to the readme. yarn && yarn build && yarn start runs lameta. In /app/package.json, I had to add a bogus email address... will commit that. yarn && yarn package fails, but doesn't say why. Something is going wrong with webpack.config.renderer.production.js In package.json had to change the build-production-renderer script to instead run webpack.config.renderer.development.js That succeeded, and now /release/ has an .AppImage which runs when I click it, and a .deb, which I haven't tried yet.

So I think the next step is to get more error information out of webpack to figure out what is going wrong with webpack.config.renderer.production.js

hatton avatar Jul 11 '20 16:07 hatton

FYI:

  1. I get the application to "run" when I:

    $ yarn
    $ yarn lingui-compile
    $ yarn dev
    
  2. I don't know what the screen is supposed to look like. If I make screenshots for the readme, do you want them?

  3. I don't know what sort of interactivity is supposed to happen. Are the language names in Unicode? the second one is garbled... looks like an encoding error. Screenshot from 2020-07-11 22-12-49 Is the People menu supposed to be grayed out when one is not on the people tab? Screenshot from 2020-07-11 22-14-53 Are the language names supposed to be automatically added if one provides a language code? Screenshot from 2020-07-11 22-13-13

  4. here is the errors I get when I run yarn package: https://gist.github.com/HughP/272ab7da284a3e4767f02160129f8df6

HughP avatar Jul 11 '20 20:07 HughP

The email thing is fixed. The AppImage that is produced in the release/ folder looks usable.

Remaining known issues:

  • electron-builder does not create an icon for the output. I spent an hour on it with no joy.
  • I have not tested the deb output, just the AppImage.
  • https://github.com/onset/lameta/issues/10 mentions some dpkg problems that he worked around.

hatton avatar Jul 12 '20 20:07 hatton

I've updated the lameta-unofficial snap package to the latest 2.3.9-beta release. If this route proves to be functionally sound (i.e. I'd like to get actual user feedback), I'd be happy to figure out how to roll it into the official project so that there's an auto-built snap package for each release.

n8marti avatar Sep 07 '24 08:09 n8marti