Skip to content
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: Add get.chezmoi.io/lb and chezmoi.io/getlb install scripts #3024

Merged
merged 1 commit into from
Jun 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,7 @@ jobs:
- name: prepare-get.chezmoi.io
run: |
cp assets/scripts/install.sh assets/get.chezmoi.io/index.html
cp assets/scripts/install-local-bin.sh assets/get.chezmoi.io/lb
cp assets/scripts/install.ps1 assets/get.chezmoi.io/ps1
cp LICENSE assets/get.chezmoi.io/LICENSE
- name: push-get.chezmoi.io
Expand All @@ -451,3 +452,4 @@ jobs:
destination-repository-name: get.chezmoi.io
target-branch: gh-pages
commit-message: 'chore: Update from ORIGIN_COMMIT'
user-email: [email protected]
1 change: 1 addition & 0 deletions assets/chezmoi.io/docs/hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ def on_post_build(config, **kwargs):

# copy installation scripts
utils.copy_file('../scripts/install.sh', os.path.join(site_dir, 'get'))
utils.copy_file('../scripts/install-local-bin.sh', os.path.join(site_dir, 'getlb'))
utils.copy_file('../scripts/install.ps1', os.path.join(site_dir, 'get.ps1'))

# copy cosign.pub
Expand Down
10 changes: 8 additions & 2 deletions assets/chezmoi.io/docs/install.md.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,11 @@ with a single command:
sh -c "$(curl -fsLS get.chezmoi.io)" -- init --apply [email protected]:$GITHUB_USERNAME/dotfiles.git
```

!!! hint

If you want to install chezmoi in `./.local/bin` instead of `./bin` you can
use `get.chezmoi.io/lb` or `chezmoi.io/getlb` instead.

!!! hint

To install the chezmoi binary in a different directory, use the `-b` option,
Expand Down Expand Up @@ -295,8 +300,9 @@ Verify the signature of the checksum file with cosign.

cosign should print `Verified OK`

Verify the that the SHA256 sum of your downloads match the SHA256 sum in the
verified checksum file. All your downloads must be in the current directory.
Verify the that the SHA256 sum of your downloads matches the SHA256 sum in the
verified checksum file. All the downloaded files must be in the current
directory.

=== "Linux"

Expand Down
Loading