File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -868,6 +868,19 @@ RUN arch=$([ "$TARGETARCH" = "arm64" ] && echo "aarch64" || echo "$TARGETARCH")
868
868
869
869
RUN cd plrust && cargo pgrx package --profile=release --features trusted -c /usr/bin/pg_config --out-dir=/tmp
870
870
871
+ # build .deb package
872
+ ENV PLRUST_PACKAGE_DIR /tmp/plrust-${plrust_release}-pg${postgresql_major}-$TARGETARCH-unknown-linux-gnu
873
+ RUN mkdir -p $PLRUST_PACKAGE_DIR/DEBIAN
874
+ RUN touch $PLRUST_PACKAGE_DIR/DEBIAN/control
875
+ RUN echo 'Package: plrust' >> $PLRUST_PACKAGE_DIR/DEBIAN/control
876
+ RUN echo 'Version: ' ${plrust_release} >> $PLRUST_PACKAGE_DIR/DEBIAN/control
877
+ RUN echo 'Architecture: ' $TARGETARCH >> $PLRUST_PACKAGE_DIR/DEBIAN/control
878
+ RUN echo 'Maintainer: TCDI' >> $PLRUST_PACKAGE_DIR/DEBIAN/control
879
+ RUN echo 'Description: PL for the Rust programming language' >> $PLRUST_PACKAGE_DIR/DEBIAN/control
880
+ RUN mv /tmp/usr $PLRUST_PACKAGE_DIR
881
+
882
+ RUN dpkg-deb --build --root-owner-group $PLRUST_PACKAGE_DIR
883
+
871
884
# ###################
872
885
# internal/supautils.yml
873
886
# ###################
You can’t perform that action at this time.
0 commit comments