cartesi / machine-emulator

The off-chain implementation of the Cartesi Machine
GNU Lesser General Public License v3.0
58 stars 32 forks source link

feat: add debian source package files #249

Open mpolitzer opened 1 week ago

mpolitzer commented 1 week ago

workflow:

# install debian packaging tools
apt install -y --no-install-recommends build-essential dh-make devscripts 

# update the version on the changelog
dch -v `make -s version` "Release `make -s version`-1"

# recreate the debian./ folder and the  ".orig" tarball in ..
dh_make -y -l --createorig -c lgpl3 -p machine-emulator_`make -s version`

# or just the tarball
tar czf ../machine-emulator_`make -s version`.orig.tar.gz --exclude=.git .

# build the dsc
dpkg-source -b .

# build the binary package
dpkg-buildpackage -us -uc

# cleanup
dpkg-buildpackage -rfakeroot -Tclean
edubart commented 6 days ago

Could the workflow shared on this PR comment be a workflow in CI?

mpolitzer commented 5 days ago

Could the workflow shared on this PR comment be a workflow in CI?

Yes, I plan on replacing the binary version with this one on CI.

I just wanted to confirm the direction since the debian source packaging is so intrusive. Thus the draft.