Comments (16)
@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.
Mac binary works
from hostctl.
hostctl_0.5.1_macOS_64-bit.tar.gz
works fine on macOS 10.15.3
from hostctl.
Done: https://aur.archlinux.org/packages/hostctl/
from hostctl.
Looks good, thanks for taking the time to fully automate it.
from hostctl.
Can confirm it works on elementary OS 5 using the deb file.
from hostctl.
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.
@BarbUk Can you confirm that it can be installed on Arch Linux? thanks
from hostctl.
For the last release, I don't see an archlinux package:
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.
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.
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.
@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.
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.
thanks @devopsbrett. Please feel free to add the issue and I'll create the new repo to improve brew
installation.
from hostctl.
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.
@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)
- more render targets HOT 1
- Update asciinema/gif on README
- Add a better logger to stdout
- Multiple "DO NOT EDIT" comments in etc/hosts HOT 2
- Display version number as part of --help HOT 4
- fix aur-publish step HOT 9
- hostctl adds entries for the same domain + ip HOT 3
- Comments turn into entries
- Support not etc/hosts config files,such as sysctl.conf and limits.conf HOT 1
- brew install guumaster/tap/hostctl does not work on Apple M1 HOT 7
- v1.1.1 - Access Denied on Windows 10 while running as administrator HOT 2
- i really want to use this by yum or dnf. HOT 1
- runtime error HOT 1
- SegFault - profile.RemoveHostNames - HOT 1
- Windows 11 profiles are not set
- Extremely slow for large files HOT 2
- installation page not found (404) HOT 4
- hostctl removes multi-value domain aliases when adding any domain
- hostctl strips ::0 off ipv6 addresses when adding any domain
- The snap package conflicts with the compiled binary package
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hostctl.