Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

windows needs to install bzip2 first? #59

Open
lzytaro opened this issue Sep 3, 2024 · 2 comments
Open

windows needs to install bzip2 first? #59

lzytaro opened this issue Sep 3, 2024 · 2 comments

Comments

@lzytaro
Copy link

lzytaro commented Sep 3, 2024

command in powershell:

PS E:\go_project\src\test_selfupdate\go-selfupdate\example> .\go-selfupdate.exe hello-updater.exe 1.3
panic: exec: "bzip2": executable file not found in %PATH%

goroutine 1 [running]:
main.createUpdate({0xc0000b0030, 0x11}, {0x3b49a2, 0xd})
        E:/go_project/src/test_selfupdate/go-selfupdate/cmd/go-selfupdate/main.go:121 +0xa6b
main.main()
        E:/go_project/src/test_selfupdate/go-selfupdate/cmd/go-selfupdate/main.go:182 +0x29a
@sanbornm
Copy link
Owner

sanbornm commented Sep 4, 2024

Dang, I didn't realize it shelled out to bzip2. Looks like it should probably be fixed upstream here: kr/binarydist#5 Fix: https://github.com/kr/binarydist/pull/9/files or install bzip2 on Windows.

@gedw99
Copy link

gedw99 commented Sep 27, 2024

Stuffbin is kind of another option .

https://github.com/knadh/stuffbin

Been using this and it’s solid.

in this case the things needed can be pushed into the binary after the build , and then pulled out of the binary before the client side unpacking .

it’s a different take on go embed ..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants