Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build and release boson in Windows and Linux #32

Open
albireox opened this issue Feb 4, 2024 · 0 comments
Open

Build and release boson in Windows and Linux #32

albireox opened this issue Feb 4, 2024 · 0 comments

Comments

@albireox
Copy link
Owner

albireox commented Feb 4, 2024

Using the albireox-upgrade-electron-28 branch I tried to run boson in development mode in xubuntu. I had some initial success, which required installing certain dependencies to make yarn install complete without errors. It seems at least some of these are needed

sudo apt install libpixman-1-dev
sudo apt install libcairo2 libcairo2-dev
brew install pkg-config cairo pango libpng jpeg giflib librsvg

in addition to Node 21 and yarn (npm install -g yarn). But then yarn start raises

> start:renderer
> cross-env NODE_ENV=development NODE_OPTIONS="--no-warnings --loader esbuild-register/loader -r esbuild-register" webpack serve --config ./.erb/configs/webpack.config.renderer.dev.ts

Starting preload.js builder...
Starting Main Process...
<i> [webpack-dev-server] Project is running at:
<i> [webpack-dev-server] Loopback: http://localhost:1212/
<i> [webpack-dev-server] On Your Network (IPv4): http://172.16.175.136:1212/
<i> [webpack-dev-server] Content not from webpack is served from '/home/gallegoj/code/boson/public' directory
<i> [webpack-dev-server] 404s will fallback to '/index.html'

> start:main
> cross-env NODE_ENV=development NODE_OPTIONS="--no-warnings --loader esbuild-register/loader -r esbuild-register" electronmon .


> start:preload
> cross-env NODE_ENV=development NODE_OPTIONS="--no-warnings --loader esbuild-register/loader -r esbuild-register" webpack --config ./.erb/configs/webpack.config.preload.dev.ts

[electronmon] waiting for a change to restart it
App threw an error during load
TypeError: Invalid Version: 0.0
    at new SemVer (/home/gallegoj/code/boson/node_modules/semver/classes/semver.js:38:13)
    at compare (/home/gallegoj/code/boson/node_modules/semver/functions/compare.js:3:32)
    at Object.eq (/home/gallegoj/code/boson/node_modules/semver/functions/eq.js:2:29)
    at ElectronStore._migrate (/home/gallegoj/code/boson/node_modules/conf/dist/source/index.js:432:78)
    at new Conf (/home/gallegoj/code/boson/node_modules/conf/dist/source/index.js:150:18)
    at new ElectronStore (/home/gallegoj/code/boson/node_modules/electron-store/index.js:69:3)
    at Object.<anonymous> (/home/gallegoj/code/boson/src/main/store/store.ts:16:15)
    at Module._compile (node:internal/modules/cjs/loader:1271:14)
    at Module._compile (/home/gallegoj/code/boson/node_modules/esbuild-register/dist/node.js:2258:26)
    at Module._extensions..js (node:internal/modules/cjs/loader:1326:10)
[electronmon] uncaught exception occured
[electronmon] waiting for any change to restart the app
boson encountered an error
TypeError: Invalid Version: 0.0
    at new SemVer (/home/gallegoj/code/boson/node_modules/semver/classes/semver.js:38:13)
    at compare (/home/gallegoj/code/boson/node_modules/semver/functions/compare.js:3:32)
    at Object.eq (/home/gallegoj/code/boson/node_modules/semver/functions/eq.js:2:29)
    at ElectronStore._migrate (/home/gallegoj/code/boson/node_modules/conf/dist/source/index.js:432:78)
    at new Conf (/home/gallegoj/code/boson/node_modules/conf/dist/source/index.js:150:18)
    at new ElectronStore (/home/gallegoj/code/boson/node_modules/electron-store/index.js:69:3)
    at Object.<anonymous> (/home/gallegoj/code/boson/src/main/store/store.ts:16:15)
    at Module._compile (node:internal/modules/cjs/loader:1271:14)
    at Module._compile (/home/gallegoj/code/boson/node_modules/esbuild-register/dist/node.js:2258:26)
    at Module._extensions..js (node:internal/modules/cjs/loader:1326:10)
[electronmon] ignoring exit with code 1
^C<i> [webpack-dev-server] Gracefully shutting down. To force exit, press ^C again. Please wait...

So this really points to needing to get rid of electron-store (see #31).

Regardless, we should try to get boson to at least build in Linux, ideally also Windows, and be able to develop/run from source at least in Linux, and have some clear instructions about how to install in Ubuntu.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant