10
310
Fork
You've already forked codeberg-cli
33

feat: Build deb files for Ubuntu and Debian #239

Closed
timstoop wants to merge 27 commits from timstoop:add-docker-and-build-script into main
pull from: timstoop:add-docker-and-build-script
merge into: Aviac:main
Aviac:main
Contributor
Copy link

Hi,
I wanted to contribute this code, assuming you're interested. Most of it is written by Claude Code, but it's working and I checked it all, so any mistake or issue is mine.

It's a simple script that allows you to build a .deb file from the code, making the application easier to install for people running any Debian derivative.

Hi, I wanted to contribute this code, assuming you're interested. Most of it is written by Claude Code, but it's working and I checked it all, so any mistake or issue is mine. It's a simple script that allows you to build a .deb file from the code, making the application easier to install for people running any Debian derivative.
timstoop force-pushed add-docker-and-build-script from 1c12286579 to 65a4e4d106 2025年09月25日 19:55:21 +02:00 Compare
timstoop changed title from (削除) Build deb files for Ubuntu and Debian (削除ここまで) to feat: Build deb files for Ubuntu and Debian 2025年09月25日 19:55:43 +02:00
- Replace duplicate binary approach with proper symlink via postinst script
- Reduces package size from 4.9MB to 2.5MB (no 9MB binary duplication)
- Add maintainer scripts (postinst/prerm) to create/remove symlink
- Users can still use both 'berg' and 'codeberg-cli' commands
- Follows Debian packaging best practices for command naming
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
Aviac left a comment
Owner
Copy link

I don't know about this. I generally want to prevent clutter. If more people want this, then I'm willing to merge this.

In the mean time I would just let it sit and wait for reactions. Nevertheless I will also prepare a place to put docs like this.

I don't know about this. I generally want to prevent clutter. If more people want this, then I'm willing to merge this. In the mean time I would just let it sit and wait for reactions. Nevertheless I will also prepare a place to put docs like this.
deb/Dockerfile Outdated
@ -0,0 +1,13 @@
FROM rust:1.82-bullseye
Owner
Copy link

why is this using such an old rust version? Latest is 1.90

why is this using such an old rust version? Latest is 1.90
Author
Contributor
Copy link

Fixed!

Fixed!
timstoop force-pushed add-docker-and-build-script from dfbbcedf44 to 202ba0dc3b 2025年09月28日 09:05:28 +02:00 Compare
Author
Contributor
Copy link

I don't know about this. I generally want to prevent clutter. If more people want this, then I'm willing to merge this.

Totally understand that. In that case, do you mind if I publish the deb on my own fork? Basically just your code, but makes it easier for me to use the tool on several machines when there's a published deb.

> I don't know about this. I generally want to prevent clutter. If more people want this, then I'm willing to merge this. Totally understand that. In that case, do you mind if I publish the deb on my own fork? Basically just your code, but makes it easier for me to use the tool on several machines when there's a published deb.
- Change Dockerfile from bullseye to bookworm base image
- This makes deb package compatible with modern distributions (Debian 12+, Ubuntu 22.04+)
- Add README-LIBSSL.md explaining OpenSSL compatibility and build options
- Document how to modify Dockerfile for older distributions if needed
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
Owner
Copy link

@timstoop Yeah sure, I'm fine with that :)

@timstoop Yeah sure, I'm fine with that :)
Not everyone uses Nix :-) And having your .envrc breaks by direnv, hence I think it's nicer to just not commit it. Perfectly fine if you think otherwise, just wanted to offer this.
Reviewed-on: #240
Reviewed-by: Aviac <aviac@noreply.codeberg.org>
Co-authored-by: Tim Stoop <tim@kumina.nl>
Co-committed-by: Tim Stoop <tim@kumina.nl>
- `issue create`, `issue view` and `issue edit` have higher test
 coverage now
- `issue edit` didn't support CLI args yet, this is implemented now
- `issue create` didn't propagate CLI args properly, this is fixed now
- implement non-interactive feature for a bunch of new commands (`label
 create`, all of the issue commands above)
Add optional --repo flag to `berg issue list` and `berg pull list`
commands to allow querying repositories without being in a git
directory. The flag accepts OWNER/REPO format.
- Add --repo flag to issue list (-r short option)
- Add --repo flag to pull list (-R short option)
- Make parse_owner_and_repo() pub(crate) for reuse
- Improve error message consistency
- Change ListPullRequestArgs from Copy to Clone for String field
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
Reviewed-on: #242
Reviewed-by: Aviac <aviac@noreply.codeberg.org>
Co-authored-by: Tim Stoop <tim@kumina.nl>
Co-committed-by: Tim Stoop <tim@kumina.nl>
We want to have more tests that are based on the `vhs` tool which can be used both for integration testing and for producing GIFs of command line tools
Reviewed-on: #244
Co-authored-by: aviac <aviac@mailbox.org>
Co-committed-by: aviac <aviac@mailbox.org>
timstoop closed this pull request 2025年10月06日 16:57:57 +02:00
Author
Contributor
Copy link

Ugh I accidentally removed this branch while doing some maintenance. Let me know if you'd like to see it returned, though, I'll open a new PR.

Ugh I accidentally removed this branch while doing some maintenance. Let me know if you'd like to see it returned, though, I'll open a new PR.

Pull request closed

This pull request cannot be reopened because the branch was deleted.
Sign in to join this conversation.
No reviewers
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Aviac/codeberg-cli!239
Reference in a new issue
Aviac/codeberg-cli
No description provided.
Delete branch "timstoop:add-docker-and-build-script"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?