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

Make a deb package #239

Closed
ThomasVon2021 opened this issue Jan 17, 2025 · 0 comments
Closed

Make a deb package #239

ThomasVon2021 opened this issue Jan 17, 2025 · 0 comments

Comments

@ThomasVon2021
Copy link
Owner

ThomasVon2021 commented Jan 17, 2025

### Create package dir (when dpkg -b blikvm-1.5.5 will create blikvm-1.5.5.deb package)
VERSION="1.5.5"

mkdir -p blikvm-$VERSION
cd blikvm-$VERSION
mkdir -p DEBIAN

cat < CONTROL > DEBIAN/control
Package: blikvm
Version: $VERSION
Architecture: arm64
Maintainer: [email protected]
Depends: libconfig-dev
Description: Installs blikvm-$VERSION-alpha on the BliKVM
CONTROL

### add the files you want to add to the package
tar cf - /usr/local/bin/ | tar xf -
tar cf - /mnt/upload/ | tar xf -
tar cf - /mnt/exec/ | tar xf -
tar cf - /mnt/msd/ | tar xf -
tar cf - /usr/bin/blikvm | tar xf -
tar cf - /lib/systemd/system/kvmd* | tar xf -
tar cf - /opt/janus/ | tar xf -

### create deb package using the contents of blikvm-$VERSION directory
cd ..
dpkg -b blikvm-$VERSION

# show contents of the deb package and make sure this is what you want
dpkg -c blikvm-$VERSION.deb

# when ready, copy the blikvm-$VERSION.deb package to new blikvm v4 package, and run `dpkg -i blikvm-$VERSION.deb` to install it

# verify that blikvm works properly by enabling/starting kvmd-web.service
systemctl enable --now kvmd-web
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant