Repository navigation
Conversation
Nejcc
force-pushed
the
feat/linux-install
branch
from
October 19, 2026 08:22
01a82a5 to
166eaf8
Compare
12 tasks done
Nejcc
force-pushed
the
feat/linux-install
branch
from
October 19, 2026 09:19
166eaf8 to
9e6578c
Compare
…nstalls the newest one
make linux builds flock-<version>-linux-{x64,arm64}.tar.gz with their .sha256; build.yml keeps
them as artifacts and betas and releases require them. install.sh picks the newest release (the
newest beta until there is a stable one), checks the archive and runs flock install.
util-linux owns /usr/bin/flock, so the package installs /usr/lib/flock-php/flock with a /usr/bin/flock-php link; flock-php install sets Flock up for the user.
The archives hold flock-php, install.sh runs it, and the AUR package installs /usr/bin/flock-php directly. The comments name the right folder, ~/.config/Flock/bin.
Nejcc
force-pushed
the
feat/linux-install
branch
from
October 19, 2026 09:42
9e6578c to
89d0784
Compare
Member
|
@lukas-frey Let me know if this fits into your Linux plans or if you'd prefer another solution. |
Member
|
Hi @Nejcc, thanks for this :) Linux in #61 ships as |
Author
|
Thanks for the explanation, makes sense with #61. 👍 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refs #12.
Summary
This makes Flock installable on Linux. Every release now ships prebuilt Linux CLI archives. A one-line
install.shdownloads, verifies and installs the newest one, and an AUR package,flock-php-bin, does the same on Arch.curl -fsSL https://raw.githubusercontent.com/flock-php/flock/main/install.sh | shWhat's included
Release archives
make linuxbuildsflock-<version>-linux-x64.tar.gzandflock-<version>-linux-arm64.tar.gz, each with a.sha256file. They're static binaries (CGO_ENABLED=0), so they run on any distribution.flock-phpbinary,LICENSE,NOTICEandTHIRD_PARTY_NOTICES.build.ymlhas a Linux job that keeps the archives as run artifacts.beta.ymlandrelease.ymlrequire them next to the.dmgand the.exe, and attach them with the other release assets.install.shreleases/latestreturns 404 then).FLOCK_VERSION=1.0.0pins a release.x86_64oraarch64, and checks forcurl,tarandsha256sumfirst..sha256before anything runs. A mismatch stops the script.flock-php installfrom a temporary folder, which copies the CLI to~/.config/Flock/bin. Running the script again updates Flock.sh -s --goes toflock-php install.flock-php installgets/dev/tty. That waysudocan still ask for the password.AUR package:
flock-php-bin/usr/bin/flock-php. The binary isn't namedflock, because util-linux already ownsflock.flock-php installafter installing, and again after upgrades, to refresh~/.config/Flock/bin/flock-phpflock-php uninstallbefore removing the packagePKGBUILDtargets1.0.0-beta.10withSKIPchecksums, because no release has Linux archives yet.Testing
make linuxsha256sum -cand the binary's version checkinstall.shlintinstall.shflowscurl, withinstall --helpso nothing is installed: run directly, piped (sh -s --) undershandbash, and withFLOCK_VERSION=v….sha2561.0.0-beta.9makepkguninstall --purge, and upgrades between #12's headsNot yet run:
install.shagainst a real release, because none has Linux archives yet.After the first release with Linux archives
cd packaging/aur/flock-php-bin && updpkgsums && makepkg --printsrcinfo > .SRCINFO.