mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-14 00:53:34 +08:00
@@ -264,6 +264,26 @@ px4fmu_firmware: \
|
||||
check_px4_fmu-v5x_default \
|
||||
sizes
|
||||
|
||||
# Create a one-file AppImage for PX4 SITL
|
||||
.PHONY: AppImage
|
||||
appimage: build/px4_sitl_default/bin/px4 build/px4_sitl_default/romfs_files.tar
|
||||
@$(MAKE) px4_sitl_default # ensure the SITL binary & romfs tar are up-to-date
|
||||
@$(RM) -rf build/px4.AppDir
|
||||
@mkdir -p \
|
||||
build/px4.AppDir/usr/bin \
|
||||
build/px4.AppDir/usr/share/px4/romfs/etc \
|
||||
build/px4.AppDir/usr/share/px4/romfs/bin \
|
||||
build/px4.AppDir/usr/share/applications \
|
||||
build/px4.AppDir/usr/share/icons/hicolor/scalable/apps
|
||||
@cp build/px4_sitl_default/bin/px4 build/px4.AppDir/usr/bin/
|
||||
@tar xf build/px4_sitl_default/romfs_files.tar -C build/px4.AppDir/usr/share/px4/romfs/etc
|
||||
@cp build/px4_sitl_default/bin/px4-* build/px4.AppDir/usr/share/px4/romfs/bin/
|
||||
@cp Tools/appimage/px4.desktop build/px4.AppDir/
|
||||
@cp Tools/appimage/px4.svg build/px4.AppDir/
|
||||
@cp Tools/appimage/AppRun build/px4.AppDir/
|
||||
@chmod +x build/px4.AppDir/AppRun
|
||||
@cd build && appimagetool px4.AppDir
|
||||
|
||||
misc_qgc_extra_firmware: \
|
||||
check_nxp_fmuk66-v3_default \
|
||||
check_mro_x21_default \
|
||||
|
||||
Executable
+8
@@ -0,0 +1,8 @@
|
||||
#!/usr/bin/env bash
|
||||
set -e
|
||||
|
||||
export LD_LIBRARY_PATH="$APPDIR/usr/lib:$LD_LIBRARY_PATH"
|
||||
WORKDIR=$(mktemp -d)
|
||||
cp -a "$APPDIR/usr/share/px4/romfs/." "$WORKDIR"
|
||||
export PATH="$WORKDIR/bin:$WORKDIR:$PATH"
|
||||
exec "$APPDIR/usr/bin/px4" -w "$WORKDIR" "$@"
|
||||
@@ -0,0 +1,6 @@
|
||||
[Desktop Entry]
|
||||
Type=Application
|
||||
Name=PX4 Autopilot SITL
|
||||
Exec=px4 %F
|
||||
Icon=px4
|
||||
Categories=Development;
|
||||
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 25 KiB |
Reference in New Issue
Block a user