Compare commits

..

17 Commits

Author SHA1 Message Date
sammyette a88850357e
chore: merge from master 2021-05-21 21:11:41 -04:00
sammyette 7aa9fb9fe6
docs: shorten/simplify build steps 2021-05-20 19:21:28 -04:00
sammyette 459606618c
docs: add that precompiled binaries are provided, more details in install 2021-05-20 19:11:07 -04:00
sammyette 1f3162fc4f
ci: set fetch depth to 0 2021-05-20 18:48:16 -04:00
sammyette 439930a653
ci: upload artifact of compiled binary 2021-05-20 18:36:36 -04:00
sammyette 9e5dbfc7e0
ci: use latest go version 2021-05-20 18:31:30 -04:00
sammyette 571764a87f
ci: just build instead of trying to make release 2021-05-20 18:29:32 -04:00
sammyette c277c67786
ci: use build_flags instead 2021-05-20 18:19:54 -04:00
sammyette 35c0a0d386
ci: experiment with slightly changed build file - say hi again 2021-05-20 18:18:14 -04:00
sammyette aadb5f373c
chore(ci): removed github action - say goodbye to ci 2021-05-20 18:10:50 -04:00
sammyette 88f750f546
ci: go back to old action file 2021-05-20 18:08:55 -04:00
sammyette bbec5c3c14
ci: fix syntax errors 2021-05-20 18:06:56 -04:00
sammyette 92f9e51a15
chore(ci): use spaces instead of tabs 2021-05-20 18:05:56 -04:00
sammyette d3989e09ed
ci: use matrix.os for runs-on 2021-05-20 18:04:29 -04:00
sammyette b9864ce4c6
ci: try to build for linux only and install readline before 2021-05-20 18:03:28 -04:00
sammyette fd32275f70
ci: add github actions workflow to build on commit 2021-05-20 17:47:22 -04:00
sammyette e86c95818a
fix: added a return in lua command check 2021-05-20 05:36:00 -04:00
3 changed files with 58 additions and 16 deletions

31
.github/workflows/build.yml vendored 100644
View File

@ -0,0 +1,31 @@
name: Build
on:
- push
- pull_request
jobs:
build:
name: ${{ matrix.build }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- build: linux-amd64
os: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: '1.16.2'
- name: Build
run: make hilbiline
- uses: actions/upload-artifact@v2
with:
name: hilbish-${{ matrix.build }}
path: hilbish

View File

@ -25,16 +25,27 @@ but there may still be breaking changes in Lua modules.
- **[Gallery](https://github.com/Hilbis/Hilbish/discussions/36)** - See - **[Gallery](https://github.com/Hilbis/Hilbish/discussions/36)** - See
more screenshots of Hilbish in action more screenshots of Hilbish in action
# Building # Installation
Prebuilt binaries are not yet provided, so to try it out you'll have to manually compile.
**NOTE:** Hilbish is currently only officially supported and tested on Linux **NOTE:** Hilbish is currently only officially supported and tested on Linux
### Prerequisites ### Prebuilt binaries
Binaries are provided for the latest commit.
**Note that these use Hilbiline, not readline, and may be missing functionality
(moving the cursor, proper unicode support and backspace working properly)**
Click on the checkmark (or x) near the commit hash, then details for your platform
<br><img src="https://modeus.is-inside.me/dyr8UGGq.png"><br>
Then click on the artifacts drop down, and download artifact for your platform,
like what is highlighted in the screenshot.
<br><img src="https://modeus.is-inside.me/KJ0Puceb.png"><br>
### Manual Build
#### Prerequisites
- [Go 1.16](https://go.dev) - [Go 1.16](https://go.dev)
- GNU Readline - GNU Readline
On Fedora, readline can be installed with: On Fedora, readline can be installed with:
``` ```
sudo dnf install readline-devel sudo dnf install readline-devel
@ -50,28 +61,27 @@ On OpenSUSE, it can be installed with:
sudo zypper install readline-devel sudo zypper install readline-devel
``` ```
### Install #### Build
First, clone Hilbish: First, clone Hilbish:
```sh ```sh
git clone --recursive https://github.com/Hilbis/Hilbish git clone --recursive https://github.com/Hilbis/Hilbish
cd Hilbish cd Hilbish
``` # If you want the latest stable release, run this following command
Then build and install:
```sh
make dev
sudo make install
# Or
sudo make all
```
Or, if you want the latest stable release:
```
git checkout $(git describe --tags `git rev-list --tags --max-count=1`) git checkout $(git describe --tags `git rev-list --tags --max-count=1`)
make build
sudo make install
``` ```
And get dependencies and build:
```sh
go get -d
make dev
# If you want to use latest stable release,
make build
# or want to use Hilbiline,
make hilbiline
```
#### Install
`sudo make install`
Alternatively, if you use Arch Linux, you can compile Hilbish with an **(unofficial)** AUR package: Alternatively, if you use Arch Linux, you can compile Hilbish with an **(unofficial)** AUR package:
```sh ```sh
yay -S hilbish yay -S hilbish

View File

@ -62,6 +62,7 @@ func RunInput(input string) {
"Error in command:\n\n" + err.Error()) "Error in command:\n\n" + err.Error())
} }
hooks.Em.Emit("command.exit", exitcode) hooks.Em.Emit("command.exit", exitcode)
return
} }
// Last option: use sh interpreter // Last option: use sh interpreter