Skip to content

Commit

Permalink
docs: update install from source section
Browse files Browse the repository at this point in the history
  • Loading branch information
Aylur committed Nov 12, 2024
1 parent 2373858 commit 5ec5640
Showing 1 changed file with 18 additions and 5 deletions.
23 changes: 18 additions & 5 deletions docs/guide/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

maintainer: [@kotontrion](https://github.com/kotontrion)

```sh [<i class="devicon-archlinux-plain"></i> Arch]
```sh
yay -S aylurs-gtk-shell-git
```

Expand All @@ -20,7 +20,7 @@ Read more about it on the [nix page](./nix)

2. Install the Astal js package

```sh [<i class="devicon-linux-plain"></i> From Source]
```sh
git clone https://github.com/aylur/astal
cd astal/lang/gjs
meson setup --prefix /usr build
Expand All @@ -29,9 +29,22 @@ meson install -C build

2. Install AGS

```sh [<i class="devicon-linux-plain"></i> From Source]
# Install AGS
```sh
git clone https://github.com/aylur/ags.git
cd ags
go build

go install -ldflags "\
-X 'main.gtk4LayerShell=$(pkg-config --variable=libdir gtk4-layer-shell-0)/libgtk4-layer-shell.so' \
-X 'main.astalGjs=$(pkg-config --variable=srcdir astal-gjs)'"
```

:::tip
`go install` will install to `$GOPATH/bin/ags` or `$HOME/go/bin/ags`.
You might wish to move the binary to more traditional linux directories.

```sh
sudo mv $GOPATH/bin/ags /usr/bin/ags
mv $GOPATH/bin/ags ~/.local/bin/ags
```

:::

0 comments on commit 5ec5640

Please sign in to comment.