Skip to content

Instantly share code, notes, and snippets.

@CreatureSurvive
Created May 3, 2019 19:25
Show Gist options
  • Save CreatureSurvive/abba1c21d9d74ba9b5e2b700cd9ea985 to your computer and use it in GitHub Desktop.
Save CreatureSurvive/abba1c21d9d74ba9b5e2b700cd9ea985 to your computer and use it in GitHub Desktop.
Example of using DPKG to generate a deb, and update a Packages file for a repository
#!/bin/bash
# if your on ios, run this as root
# cd to your repo directory first eg: `cd /path/to/my/repo/`
# your project folder is the folder containing your DEBIAN folder
#build debs
echo building
dpkg-deb -b /path/to/project/folder debs
#packages
echo building Packages
dpkg-scanpackages -m . /dev/null >Packages
#compress
echo compressing Packages
bzip2 -fks Packages
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment