Am Wed, May 04, 2022 at 22:12:20 +0200 schrieb Tino Mettler: > Am Wed, May 04, 2022 at 15:17:05 -0400 schrieb Antoine Beaupré: > > [...] > > > maybe we could just use a +ds tarball then. add the files to redact in > > debian/copyright and then uscan will just do the right thing for us, no > > need to worry about the git stuff. > > We need the images/ and tips/ folders from the upstream git repository. > > This script would work. I already prepared a package using the +dfsg upstream > source generated by the script. The resources are compiles during > build, the result looks good.
I forgot to git add the upgrade.py. Furthermore, Damon mentioned install.py. And yes, it contains another binary blob (the same ZIP archive as upgrade.py, I guess). Here is an improved script: #!/bin/sh -ex git reset --hard $1 VERSION=$(sed '/^-------------/,$d' CHANGES.md | tail -n 1 | cut -d' ' -f1) echo > upgrade.py echo > install.py git add upgrade.py install.py git rm raphodo/qrc_resources.py git commit -m "Remove source files with embedded binary blobs" git archive HEAD --prefix=rapid-photo-downloader-$VERSION/ -o ../rapid-photo-downloader_${VERSION}+dfsg.orig.tar.xz Regards, Tino