Skip to content

x7c1/barley

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Barley

Electron sample built with Yew.

Goal

This repository aims to contain:

  • Yew sample to generate wasm.
  • Electron sample using them.
  • Basic samples most apps will need:

Requirements

How to build

[1] Build Docker image :

$ make docker-image

[2] Build Electron app :

$ make assemble
...
app-builder_1  | + ls -lh out/make/deb/x64
app-builder_1  | total 55M
app-builder_1  | -rw-r--r-- 1 root root 55M Dec 22 15:51 barley_0.0.1_amd64.deb
barley_app-builder_1 exited with code 0

Run app

$ make electron-start
...
> electron-forge start

✔ Checking your system
✔ Locating Application
✔ Preparing native dependencies
✔ Launching Application

Or install the app directly through deb.

$ sudo apt-get --reinstall install ./project-js/out/make/deb/x64/barley_0.0.1_amd64.deb

You can launch and remove it by command line:

# useful to watch logs of main process.
$ /lib/barley/barley

# to uninstall app after debugging.
$ sudo apt remove barley
...
Removing barley (0.0.1) ...
...