aaronjanse / 3mux

Terminal multiplexer inspired by i3
MIT License
1.82k stars 45 forks source link

Binary release builds #67

Closed arjvik closed 4 years ago

arjvik commented 4 years ago

Hi,

3mux looks really cool, and I would love to try it out. Unfortunately, I don't have a go toolchain setup, so I would rather download a single binary and run it. Would it be possible for you to upload the binary outputted by go into the github releases?

Thanks!

aaronjanse commented 4 years ago

This is a good idea. I'll try to get this done tomorrow evening.

talentlessguy commented 4 years ago

Probably semantic-release is worth trying

aaronjanse commented 4 years ago

Ooh, this looks interesting. I definitely want to automate the build process for releases.

aaronjanse commented 4 years ago

This is a good idea. I'll try to get this done tomorrow evening.

Ahhh. I'm now aiming for this weekend for the sessions release :tada:

kcthrn commented 4 years ago

Build for ARM too please.

talentlessguy commented 4 years ago

@aaronjanse if you don't want to mess with JavaScript ecosystem, there's a go rewrite.

aaronjanse commented 4 years ago

The latest release of 3mux on Github now has pre-built binaries for linux-amd64, linux-arm64, and darwin-amd64.

@kcthrn I've used my Raspberry Pi to verify that the arm64 binary works (it does!)

kcthrn commented 4 years ago

@aaronjanse I have 32-bit ARM (armv7). I intend to run 3mux on Termux. Is 32-bit arm possible? Btw, thanks for the other binaries!

aaronjanse commented 4 years ago

@kcthrn would you mind checking if the attached binary works? If so, I'll add it to the v1.0.0 release. Future release should have a 32-bit arm binary automatically built and attached.

3mux-v1.0.0-linux-arm.tar.gz

kcthrn commented 4 years ago

@aaronjanse In Termux I get this:

panic: open /tmp/3mux/: no such file or directory

goroutine 1 [running]:
main.defaultPrompt(0x0, 0x0, 0x0)
        /home/nixos/.go/src/github.com/aaronjanse/3mux/main.go:234 +0xf44
main.main()
        /home/nixos/.go/src/github.com/aaronjanse/3mux/main.go:121 +0x53c

Termux's tmp directory is actually TMPDIR=/data/data/com.termux/files/usr/tmp. I believe 3mux fails because the tmp directory may be hardcoded.

Wikipedia states for POSIX, the TMPDIR environment variable is used to set the system's temporary directory. Others include TEMP, TEMPDIR and TMP for non-POSIX OSs.

Source: https://en.wikipedia.org/wiki/TMPDIR

3mux does work in a PRoot environment (Alpine Linux) within Termux however.

aaronjanse commented 4 years ago

Whoa, 3mux within Termux is crazy cool!

I'll fix that tonight. Thanks for investigating.

aaronjanse commented 4 years ago

@kcthrn would you mind trying v1.0.1? It has an ARM binary on the releases page

kcthrn commented 4 years ago

@aaronjanse It works! Thank you!

aaronjanse commented 4 years ago

Yes!!!