Giter Club home page Giter Club logo

Comments (16)

guumaster avatar guumaster commented on May 27, 2024 2

@BarbUk after a long while of trial/error I was finally able to automate it 😓

I've created a new Github Action to manage the whole process, you can check it here in case you are interested on reading it or even improving it. (needs a bit of polishing and docs, but it works).

from hostctl.

pacodes avatar pacodes commented on May 27, 2024 1

Mac binary works

from hostctl.

fivesmallq avatar fivesmallq commented on May 27, 2024 1

hostctl_0.5.1_macOS_64-bit.tar.gz works fine on macOS 10.15.3

from hostctl.

BarbUk avatar BarbUk commented on May 27, 2024 1

Done: https://aur.archlinux.org/packages/hostctl/

image

from hostctl.

BarbUk avatar BarbUk commented on May 27, 2024 1

Looks good, thanks for taking the time to fully automate it.

from hostctl.

spekulatius avatar spekulatius commented on May 27, 2024 1

Can confirm it works on elementary OS 5 using the deb file.

from hostctl.

BarbUk avatar BarbUk commented on May 27, 2024 1

As per #42 (comment)

If you wanna supply a hostctl-bin package, too, I would use it. Less carbon footprint.

Bin package is now available: https://aur.archlinux.org/packages/hostctl-bin/

@guumaster, you are co-maintainer of the package.
No modification need to be done to the github action, but you need to call it for the hostctl-bin package too.

Let me know if I can help.

from hostctl.

guumaster avatar guumaster commented on May 27, 2024

@BarbUk Can you confirm that it can be installed on Arch Linux? thanks

from hostctl.

BarbUk avatar BarbUk commented on May 27, 2024

For the last release, I don't see an archlinux package:
image

hostctl_0.5.1_linux_64-bit.tar.gz is a linux binary that works on archlinux.

The package from https://aur.archlinux.org/packages/hostctl/ is built from the source code.
Do you have an option in your Github Action workflow to update the aur package ?

from hostctl.

guumaster avatar guumaster commented on May 27, 2024

I can't find anything to automate it with Github. Did you create v0.5.1 manually or automatically? If it was automatically, I'm ok with it.

I have no experience with AUR, if you can elaborate how it is done, or point to a guide on how you did it, it'd be apreciated.

from hostctl.

BarbUk avatar BarbUk commented on May 27, 2024

I can't find anything to automate it with Github. Did you create v0.5.1 manually or automatically? If it was automatically, I'm ok with it.

It's created automatically via a pkgbuild.
The release is updated manually (release number and corresponding sha256).

I have no experience with AUR, if you can elaborate how it is done, or point to a guide on how you did it, it'd be apreciated.

See the pkgbuild here for info: https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=hostctl
Updates done are visible here: https://aur.archlinux.org/cgit/aur.git/log/?h=hostctl

We can automate archlinux package creation to publish in your release page, but the package submission to aur must be done manually as far as I know.

The linux release is working for archlinux and other distribution, so people who want to try the app can download and use hostctl_0.5.1_linux_64-bit.tar.gz.

The aur package provide a way to install your app from an aur helper, i.e., yay -S hostctl

from hostctl.

guumaster avatar guumaster commented on May 27, 2024

@BarbUk thanks for the info and patience 👍

We can automate archlinux package creation to publish in your release page, but the package submission to aur must be done manually as far as I know.

Understood, so, what part can I do on this repo to simplify your submission to AUR? Which file should be generated?

The linux release is working for archlinux and other distribution, so people who want to try the app can download and use hostctl_0.5.1_linux_64-bit.tar.gz.

Thanks! I've used Arch and AUR before, but never created a package myself.

from hostctl.

devopsbrett avatar devopsbrett commented on May 27, 2024

Hi, firstly let me thank you for a great tool, love it. Regarding #13 the current setup doesn't really follow brew best practices. You should create a new repo called homebrew-hostctl and place your Formula directory there (I know, seems pointless to create a whole repo just for that). With this change people would be able to run brew tap guumaster/hostctl. I can issue a pull request for the changes needed to your goreleaser file.

from hostctl.

guumaster avatar guumaster commented on May 27, 2024

thanks @devopsbrett. Please feel free to add the issue and I'll create the new repo to improve brew installation.

from hostctl.

BarbUk avatar BarbUk commented on May 27, 2024

Understood, so, what part can I do on this repo to simplify your submission to AUR? Which file should be generated?

For the moment, I watch your repo to be notified when a new release is available and update the PKGBUILD.

I use a script, so it's definitely automatisable.
You just need a private key to be able to push to aur:

#!/bin/bash

set -o errexit -o pipefail -o nounset

readonly new_release="$1"

sed -i "s/pkgver=.*$/pkgver=$new_release/" PKGBUILD
sed -i "s/sha256sums=.*$/$(makepkg -g 2>/dev/null)/" PKGBUILD

# Test build
makepkg -c

# Update srcinfo
makepkg --printsrcinfo > .SRCINFO

# Update aur
git add PKGBUILD .SRCINFO
git commit -m "Update to $new_release"
git push

from hostctl.

guumaster avatar guumaster commented on May 27, 2024

@BarbUk I've created an account on AUR and uploaded my ssh key. Can you add me as maintainer on hostctl repo so I can try to automate it? Thanks.

from hostctl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.