drone-cli
drone-cli copied to clipboard
Implement snap packaging
This pull request implements the necessary changes to package drone-cli as a snap, Snaps are universal linux packages.
This PR should supersede #122 in terms of completeness, credits goes to @mikeroyal who provides most if not all the details needs to be taken care of, though this PR includes the following notable changes:
-
Changing the snap and command name from
drone-clitodroneto match documented usage -
Using my selective checkout scriptlet to checkout and build latest tagged release if the
stablechannel yet have one -
(Hopefully) Fix version tagging:
$ drone --version drone version 1.2.1-6-geef6428-dirty -
Using my locales-launch launcher script to fix locales at runtime
-
Adding an app-specific maintenance launcher to check confinement status and for future conveniences.
This snap has been successfully built on amd64, armhf, and arm64 architectures, and is runnable on an amd64 system.
Signed-off-by: 林博仁(Buo-ren, Lin) [email protected]
Some notes regarding the snap name:
- The
dronesnap name is currently reserved by the Snap Store but is claimable via https://dashboard.snapcraft.io/register-snap/?name=drone - I've registered the
drone-clisnap name (rest assured that the snap name is easily transferable), however using this name will require us to file a auto-alias request so that we can continue using thedronecommand name instead ofdrone-cli.droneordrone-cli, refer Commands and aliases | Snapcraft documentation and Process for aliases, auto-connections and tracks - store-requests - snapcraft.io, Requesting default aliases for FeatherPad - store-requests - snapcraft.io for more info.
This looks good 🥇 we have created a proposal https://github.com/drone/proposal/issues/4 to gauge support for this feature, as we would need to setup the infrastructure / support for maintaining this going forward. If you want it give it a 👍
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.
This PR has been automatically closed due to inactivity.