Skip to content

Commit

Permalink
more wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Zubnix committed Oct 31, 2023
1 parent 0d3877f commit 0eb9679
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 26 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ or WebAssembly applications directly in your browser.

Visit the [documentation](http://udev.be/greenfield), or have [a look on how it all began](https://wayouttheresoftware.blogspot.com/2023/07/some-history-about-greenfield.html)

![img_3.png](docs/pages/getting_started/img_3.png)
![img_3.png](docs/hello.png)
Binary file added docs/hello.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ or WebAssembly applications directly in your browser.
[Getting started](pages/getting_started/){: .btn .btn-primary .fs-5 .mb-4 .mb-md-0 .mr-2 }
[View it on GitHub](https://github.com/udevbe/greenfield){: .btn .fs-5 .mb-4 .mb-md-0 }

![hello.png](hello.png)

<sub>
or have a [look on how it all began](https://wayouttheresoftware.blogspot.com/2023/07/some-history-about-greenfield.html)
or take a [look on how it all began](https://wayouttheresoftware.blogspot.com/2023/07/some-history-about-greenfield.html)
</sub>

![img_3.png](pages/getting_started/img_3.png)
8 changes: 4 additions & 4 deletions docs/pages/design/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -173,20 +173,20 @@ After starting an application, you should see a message appear in the log output
## Packaged build
It's also possible to build a distributable release.
It's also possible to build a distributable single binary.
```shell
yarn workspace @gfld/compositor-proxy-cli package
````
This creates a set of files in the `package` directory. The `run.sh` script accepts the same parameters as the Compositor Proxy CLI.
The following set of dependencies need to be available for mesa & nvidia support, if you're running a Debian based distro you can run:
This creates a single binary `compositor-proxy-cli` in the `package` directory.
The following set of dependencies need to be available for mesa & nvidia support. If you're running a Debian based distro you can run:
```
apt-get install libffi8 libudev1 libgbm1 libgraphene-1.0-0 gstreamer1.0-plugins-base gstreamer1.0-plugins-good \
gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-gl libosmesa6 libdrm2 libdrm-intel1 \
libopengl0 libglvnd0 libglx0 libglapi-mesa libegl1-mesa libglx-mesa0 libnvidia-egl-wayland1 libnvidia-egl-gbm1 \
xwayland xauth xxd inotify-tools libnode108
xwayland xauth xxd inotify-tools
```

## Docker
Expand Down
2 changes: 1 addition & 1 deletion packages/compositor-proxy-cli/.gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
dist
node_modules
src/app-config.d.ts
package/main
package/compositor-proxy-cli
package/libproxy-encoding.so
package/libwayland-server.so.0
package/libwestfield.so
18 changes: 17 additions & 1 deletion packages/compositor-proxy-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"build": "yarn run rimraf dist && yarn run tsc",
"start": "yarn tsx src/main.ts --applications=./example-applications.json",
"run": "yarn node dist/main.js",
"package": "yarn run pkg --compress Brotli --no-native-build --config pkg-config.json dist/main.js"
"package": "yarn run pkg --compress Brotli --no-native-build package.json"
},
"dependencies": {
"@gfld/compositor-proxy": "workspace:^",
Expand Down Expand Up @@ -43,6 +43,22 @@
"tsx": "^3.14.0",
"typescript": "^5.2.2"
},
"pkg": {
"scripts": [
"dist/**/*.js",
"node_modules/@gfld/compositor-proxy/dist/protocol/*.js"
],
"assets": [
"dist/**/*.json",
"node_modules/@gfld/compositor-proxy/dist/addons/libproxy-encoding.so",
"node_modules/@gfld/compositor-proxy/dist/addons/libwayland-server.so.0",
"node_modules/@gfld/compositor-proxy/dist/addons/libwestfield.so"
],
"targets": [
"node18-linux-x64"
],
"outputPath": "package"
},
"author": "Erik De Rijcke",
"homepage": "https://www.greenfield.app",
"license": "AGPL-3.0-or-later",
Expand Down
16 changes: 0 additions & 16 deletions packages/compositor-proxy-cli/pkg-config.json

This file was deleted.

0 comments on commit 0eb9679

Please sign in to comment.