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

Publish PPA automatically #1088

Open
fujiapple852 opened this issue Apr 4, 2024 · 1 comment
Open

Publish PPA automatically #1088

fujiapple852 opened this issue Apr 4, 2024 · 1 comment
Labels
enhancement New feature or request package

Comments

@fujiapple852
Copy link
Owner

fujiapple852 commented Apr 4, 2024

Inspired by:

https://github.com/yuezk/publish-ppa-package/blob/main/build.sh

This script needs to be updated to reflect the cargo vendoring step needed (see https://github.com/fujiapple852/trippy/blob/master/debian/README.debian).

Note that this script is able to publish for all supported Ubuntu versions.

@fujiapple852 fujiapple852 added enhancement New feature or request package labels Apr 4, 2024
@fujiapple852
Copy link
Owner Author

Step (roughyl) to publish manually (for 0.10.0 on Jammy):

docker run -it -v (pwd):/data ubuntu:jammy
apt update && apt install build-essential devscripts debhelper cargo wget

cd /data

wget https://github.com/fujiapple852/trippy/archive/refs/tags/0.10.0.tar.gz
mv 0.10.0.tar.gz.1 trippy_0.10.0.orig.tar.gz

mkdir build
mv debian build
cd build

# build vendored dep crates
./debian/rules vendor

# setup gpg and import launchpad key pair
# gpg --import ...

# build PPA source package
debuild --prepend-path ~/.cargo/bin -S -sa

# publish to launchpad
dput ppa:fujiapple/trippy ../trippy_0.10.0-1ubuntu0.1~jammy1_source.changes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request package
Projects
None yet
Development

No branches or pull requests

1 participant