Open psydvl opened 1 year ago
Hi @psydvl, thanks for working on go-appimage. I understand "Follow Standard Go Project Layout", but what else do you want to achieve? In other words, why do you think this should be refactored?
Mostly written in commit messages, but general points:
Of course, I may be wrong about some changes and open to discuss any
Also, some fixes done due
Steps I want to do in next commits:
Inspired by: https://go.dev/doc/effective_go https://google.github.io/styleguide/go
This looks great. I do have a couple things to mention.
goappimage
? goappimage
is meant to interact with existing AppImages, whereas creating AppImages is the job of appimagetool
/mkappimage
. If someone were to create AppImages they should be using appimagetool not goappimage..close()
. In particular you "properly" handled an os.File
which will only return an error if the file has already been closed. If an error from close matters then it really shouldn't be defered. Again not something that actually matters, just something that irritates me unreasonably.Yes, let's not introduce the need for a makefile.
mkappimage
andappimagetool
filesGenerateAppImage
function intogoappimage
packageExcludeLibraries