diff --git a/contrib/release/debian/package.zip b/contrib/release/debian/package.zip new file mode 100644 index 00000000..8007257a Binary files /dev/null and b/contrib/release/debian/package.zip differ diff --git a/contrib/release/release.sh b/contrib/release/release.sh index dfec32ba..87f7f5ec 100755 --- a/contrib/release/release.sh +++ b/contrib/release/release.sh @@ -34,13 +34,21 @@ create_dir "$BUILD_DIR" OUT_DIR="$BUILD_DIR" ./contrib/reproducible/guix/guix-build.sh TARGET_DIR="$BUILD_DIR" ./contrib/reproducible/docker/docker-build.sh -# Create the Linux archive +# Create the Linux archive and Debian binary package. ( cd "$BUILD_DIR" create_dir "$LINUX_DIR_NAME" cp "$BUILD_DIR/release/lianad" "$BUILD_DIR/release/liana-cli" "$BUILD_DIR/gui/release/liana-gui" ../README.md "$LINUX_DIR_NAME" tar -czf "$LINUX_ARCHIVE" "$LINUX_DIR_NAME" cp "$LINUX_ARCHIVE" "$RELEASE_DIR" + + unzip ../contrib/release/debian/package.zip + sed -i "s/VERSION_PLACEHOLDER/$VERSION/g" ./package/DEBIAN/control + cp "$BUILD_DIR/release/lianad" "$BUILD_DIR/release/liana-cli" "$BUILD_DIR/gui/release/liana-gui" ../README.md ./package/usr/local/bin/ + DIRNAME="liana_$VERSION-1_amd64" + mv ./package "$DIRNAME" + dpkg-deb --build "$DIRNAME" + mv "$DIRNAME.deb" "$RELEASE_DIR" ) # Create the Windows archive and the raw executable