-
Notifications
You must be signed in to change notification settings - Fork 70
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
feat: Allow providing manual branch name #78
base: master
Are you sure you want to change the base?
Conversation
Currently, go-appimage does not allow to provide the branch / tag name / channel from where github releases can be updated (updateinformation). This is useful for releasing apps to, `beta`, `nightly` channels, by setting APPIMAGETOOL_GH_BRANCH_DEPLOY environment variable to the required branch/channel name.
@probonopd kindly provide your suggestions 😇 |
I guess, it would be better to rename the environmental name APPIMAGETOOL_GH_BRANCH_DEPLOY -> APPIMAGETOOL_GH_DEPLOY_CHANNEL to make it more meaningful |
Thanks @srevinsaju. Were you able to test this fully, including that updates work when using multiple different channels? |
I tested it here, sorry for the repository name 😄
You may see the for easier reference: before
after exporting the env var
|
That looks good. Could you perform an end-to-end test, actually updating, when you have more than one channel? |
I did not understand, did you mean to implement this in Firefox-AppImage or a similar repository, so that you will be able to see? |
Yes, if that's not too much to ask :-) |
Ok, may I know if I would be able to download the build artifact from Travis CI? Because, it would make things easier for me 😄 , if not, I will try to build |
Ok, I am porting the scripts/build.sh to GitHub actions, I am not sure if you are its fan, but I will try it on my fork 😄 |
GitHub Actions is something that I'd like to support anyway. When I had started working on go-appimage it was not there yet (or at least I had no clue about it at that time). |
Sure, I have created a go-appimage GitHub Action to build every commit and provide an artifact for download for PRs with their base branch as Regarding adding it to Firefox-AppImage, because of #68 I will not be adding this yet, but I would try to fix #68 before this, as its quite important. Its the only blocker which I see now, which prevents me from using go-appimagetool. Until then, I will create nightly and beta builds of go-appimagetool on my fork as a demo. Right now, you can see the releases for x86_64 and i386 are generated using your script. |
Good. Just ping me when you think everything is end-to-end tested well enough that you consider this safe to merge. Thanks! |
@probonopd Done!, you can see this Firefox repository and its channels. |
Thank you very muich @srevinsaju for the implementation and testing. Thinking about it some more, can we do without the For this tool, my objective is zero need (and ability) to configure anything. Because in my experience, anything that can be configured will lead to complexity, and issueseventually. I love tools that just do their job without the user having to configure anything manually. The tool should know to do the right thing without flags, environment variables etc. (We are not quite there yet but that is the direction I would like to take with this tool.) |
@probonopd I understand your idea, but I feel that the core tools should be extensively configurable, and end-users should never use low level tools like appimagetool, but instead, they should use higher level tools like pkg2appimage, or appimage-builder. Restricting the ability to configure low level applications makes it almost impossible to configure them on higher level helper tools (unless we fork go-appimage) Regarding branches, actually, the right term I should have used is |
The name I guess my bad naming choice has led to a lot of misconceptions, also for other community members. Let's come up with a better name for this tool, something that conveys "High-level fully-automagic zero-configuration AppImage all in one creation tool". |
oh I see. I thought its a new rewrite of the old appimagetool, which was supposed to be the low-level tool which was supposed to just convert an AppDir to appimagetool. |
It isn't - it's a naming screwup. (It started out being that, but then I just kept coding, adding more and more functionality toward a full blown "do it all" tool, so the name no longer is a good match.) |
We could ask for suggestions on a new issue for a cool new name. The community would be interested to provide some inputs, but this repository is less discoverable than AppImageKit, would this repository be moved some day? |
Currently, go-appimage does not allow to provide the branch / tag name / channel from where
github releases can be updated (updateinformation). This is useful for releasing apps to,
beta
,nightly
channels, by setting APPIMAGETOOL_GH_BRANCH_DEPLOY environment variable to the required branch/channel name.Use case, in the Firefox-AppImage, I would like to maintain Beta, Nightly, Stable, ESR Releases in a single repository. I could achieve this by doing something like this
I am open to changes / feel free to close this PR if it seems redundant