Adds CI CD with deb for external deps
This commit is contained in:
82 files changed
+3547
-3
No files matched your search
@@ -0,0 +1,76 @@
|
||||
#!/bin/bash
|
||||
# ArcGIS DEB Package Build Script
|
||||
# Builds libarcgis-maps-sdk-qt-dev DEB package for internal SCM repository
|
||||
|
||||
set -e
|
||||
|
||||
PACKAGE_NAME="libarcgis-maps-sdk-qt-dev"
|
||||
VERSION="300.0.0"
|
||||
ARCHITECTURE="amd64"
|
||||
MAINTAINER="Legatus Team <legatus@defence-elec.de>"
|
||||
DESCRIPTION="ArcGIS Maps SDK for Qt - development files (embedded ini-file licenses)"
|
||||
|
||||
# Create package structure
|
||||
DEB_DIR="deb-package"
|
||||
rm -rf "$DEB_DIR"
|
||||
mkdir -p "$DEB_DIR/DEBIAN"
|
||||
mkdir -p "$DEB_DIR/opt/ArcGIS/MapsSDK_Qt_300.0.0"
|
||||
mkdir -p "$DEB_DIR/opt/offline-cache/arcgis"
|
||||
|
||||
# Copy ArcGIS files from external/ArcGIS
|
||||
if [ -d "../../external/ArcGIS" ]; then
|
||||
cp -r ../../external/ArcGIS/* "$DEB_DIR/opt/ArcGIS/MapsSDK_Qt_300.0.0/"
|
||||
fi
|
||||
|
||||
# Create control file
|
||||
cat > "$DEB_DIR/DEBIAN/control" << EOF
|
||||
Package: $PACKAGE_NAME
|
||||
Version: $VERSION
|
||||
Architecture: $ARCHITECTURE
|
||||
Maintainer: $MAINTAINER
|
||||
Depends: libqt6core6, libqt6gui6, libqt6widgets6, libqt6positioning6
|
||||
Section: libdevel
|
||||
Priority: optional
|
||||
Description: $DESCRIPTION
|
||||
ArcGIS Maps SDK for Qt (version 300.0.0) for Legatus.
|
||||
.
|
||||
License: Embedded ini-file licenses
|
||||
Map-specific licenses embedded in Lts/Viewer/SituationMap/Map/*.ini files.
|
||||
EOF
|
||||
|
||||
# Create postinst script
|
||||
cat > "$DEB_DIR/DEBIAN/postinst" << 'EOF'
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
echo "ArcGIS DEB package installed successfully"
|
||||
echo "License: Embedded ini-file licenses in Lts/Viewer/SituationMap/Map/*.ini"
|
||||
|
||||
# Set permissions
|
||||
chmod -R 755 /opt/ArcGIS
|
||||
|
||||
exit 0
|
||||
EOF
|
||||
|
||||
chmod 755 "$DEB_DIR/DEBIAN/postinst"
|
||||
|
||||
# Create postrm script
|
||||
cat > "$DEB_DIR/DEBIAN/postrm" << 'EOF'
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
echo "ArcGIS DEB package removed"
|
||||
|
||||
exit 0
|
||||
EOF
|
||||
|
||||
chmod 755 "$DEB_DIR/DEBIAN/postrm"
|
||||
|
||||
# Build DEB package
|
||||
echo "Building DEB package: ${PACKAGE_NAME}_${VERSION}_${ARCHITECTURE}.deb"
|
||||
cd "$DEB_DIR"
|
||||
dpkg-deb --build . "../${PACKAGE_NAME}_${VERSION}_${ARCHITECTURE}.deb"
|
||||
cd ..
|
||||
|
||||
echo "DEB package created: ${PACKAGE_NAME}_${VERSION}_${ARCHITECTURE}.deb"
|
||||
echo "Size: $(du -h ${PACKAGE_NAME}_${VERSION}_${ARCHITECTURE}.deb | cut -f1)"
|
||||
@@ -0,0 +1,7 @@
|
||||
libarcgis-maps-sdk-qt-dev (300.0.0) stable; urgency=medium
|
||||
|
||||
* Initial release for air-gapped environment
|
||||
* ArcGIS Maps SDK for Qt with embedded ini-file licenses
|
||||
* Installs to /opt/ArcGIS
|
||||
|
||||
-- Legatus Team <legatus@defence-elec.de> Mon, 01 Jan 2024 00:00:00 +0000
|
||||
@@ -0,0 +1 @@
|
||||
12
|
||||
@@ -0,0 +1,22 @@
|
||||
Source: libarcgis-maps-sdk-qt-dev
|
||||
Section: contrib/devel
|
||||
Priority: optional
|
||||
Maintainer: Legatus Team <legatus@defence-elec.de>
|
||||
Build-Depends: debhelper (>= 12), qt6-base-dev
|
||||
Standards-Version: 4.6.0
|
||||
Vcs-Browser: https://internal-repo.sl.defence-elec.de/#browse/browse:external-rpms:general
|
||||
Vcs-Git: https://internal-repo.sl.defence-elec.de/external-rpms/general/libarcgis-maps-sdk-qt-dev.git
|
||||
|
||||
Package: libarcgis-maps-sdk-qt-dev
|
||||
Architecture: amd64
|
||||
Depends: libqt6core6, libqt6gui6, libqt6widgets6, ${shlibs:Depends}, ${misc:Depends}
|
||||
Description: ArcGIS Maps SDK for Qt - development files (embedded ini-file licenses)
|
||||
ArcGIS Maps SDK for Qt 300.0.0 for Legatus.
|
||||
.
|
||||
License: Embedded ini-file licenses
|
||||
Map-specific licenses embedded in Lts/Viewer/SituationMap/Map/*.ini files.
|
||||
Customer has lifetime license contract.
|
||||
.
|
||||
This package contains the development files for ArcGIS Maps SDK for Qt.
|
||||
.
|
||||
Available from SCM: https://internal-repo.sl.defence-elec.de/#browse/browse:external-rpms:general
|
||||
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/make -f
|
||||
|
||||
# Allow override of source path for building in CI/CD or local environments
|
||||
# Default: /opt (production build machine)
|
||||
# Can be overridden via DEB_BUILD_OPT_PATH environment variable
|
||||
OPT_BASE ?= /opt
|
||||
|
||||
%:
|
||||
dh $@
|
||||
|
||||
override_dh_auto_install:
|
||||
dh_auto_install
|
||||
install -d debian/libarcgis-dev/opt/ArcGIS
|
||||
cp -r $(OPT_BASE)/ArcGIS/* debian/libarcgis-dev/opt/ArcGIS/
|
||||
|
||||
override_dh_strip:
|
||||
dh_strip --no-automatic-dbgsym
|
||||
@@ -0,0 +1 @@
|
||||
3.0 (native)
|
||||
Reference in new issue
Block a user