Skip to content

Commit a56f1b3

Browse files
committed
Add an app launcher example + update build commands
`purs-backend-es` can't accept esbuild arguments, which is necessary to bundle it because the library makes use of external imports.
1 parent 52185fa commit a56f1b3

File tree

7 files changed

+1401
-3
lines changed

7 files changed

+1401
-3
lines changed

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,7 @@ export default { windows: main().windows }
4545
#### 2. Compile and bundle the project
4646

4747
```shell
48-
> spago build
49-
> purs-backend-es bundle-module -m '<entrypoint module>'
48+
> spago bundle --bundle-type module --bundler-args '--external:gi://*' --module '<entrypoint module>'
5049
```
5150

5251
#### 3. Run AGS

examples/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ A sample entrypoint JS file is provided for reference as well.
66

77
```shell
88
cd <project-name>
9-
spago build && purs-backend-es bundle-module
9+
spago bundle --bundle-type module --bundler-args '--external:gi://*'
1010
ags -c ./entrypoint.js
1111
```
1212

examples/app-launcher/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
This project demonstrates usage of `purescript-ags-bindings` for a simple `.desktop` app info-based app launcher.
2+
3+
The launcher uses the default GTK theme with no extra styling and includes app icons and a search bar.
4+
5+
## Building
6+
7+
See building instructions in the parent directory's [README.md](../README.md)
8+
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import { main } from './index.js'
2+
3+
export default
4+
{ windows: main().windows
5+
}
6+

0 commit comments

Comments
 (0)