Blame docker-builder-data/build/script/packet/papagayong-appimage.sh

8224ab
DEPS="appimagekit-master papagayong-testing"
369e6c
369e6c
PK_APPIMAGEKIT_DIR=$PACKET_DIR/appimagekit-master/
369e6c
PK_APPDIR_NAME="papagayong"
369e6c
369e6c
pkinstall() {
369e6c
	# copy files from envdeps (install requires envdeps explicit)
369e6c
	
369e6c
	local APPDIR="$INSTALL_PACKET_DIR/$PK_APPDIR_NAME.AppDir"
369e6c
	mkdir -p "$APPDIR/usr"
369e6c
	mkdir -p "$APPDIR/usr/bin"
369e6c
	mkdir -p "$APPDIR/usr/lib"
369e6c
	
369e6c
	cp --remove-destination "$ENVDEPS_PACKET_DIR/bin/AppRun" "$APPDIR/" || return 1
369e6c
	cp --remove-destination "$ENVDEPS_PACKET_DIR/bin/desktopintegration" "$APPDIR/usr/bin/papagayong.wrapper"|| return 1
369e6c
369e6c
	cp --remove-destination "$FILES_PACKET_DIR/papagayong.desktop" "$APPDIR/" || return 1
369e6c
	cp --remove-destination "$FILES_PACKET_DIR/launch.sh" "$APPDIR/usr/bin/" || return 1
369e6c
	cp --remove-destination "$FILES_PACKET_DIR/papagayong" "$APPDIR/usr/bin/" || return 1
369e6c
b16af1
    copy_system_gcc_libs        "$APPDIR/usr/lib/" || return 1
369e6c
	copy_system_lib libudev     "$APPDIR/usr/lib/" || return 1
369e6c
	copy_system_lib libpng12    "$APPDIR/usr/lib/" || return 1
369e6c
	copy_system_lib libffi      "$APPDIR/usr/lib/" || return 1
369e6c
	copy_system_lib libdb       "$APPDIR/usr/lib/" || return 1
369e6c
	copy_system_lib libpcre     "$APPDIR/usr/lib/" || return 1
369e6c
	copy_system_lib libdirect   "$APPDIR/usr/lib/" || return 1
369e6c
	copy_system_lib libfusion   "$APPDIR/usr/lib/" || return 1
369e6c
	copy_system_lib libbz2      "$APPDIR/usr/lib/" || return 1
369e6c
}
369e6c
369e6c
pkinstall_release() {
369e6c
    if ! copy "$INSTALL_PACKET_DIR" "$INSTALL_RELEASE_PACKET_DIR"; then
369e6c
        return 1
369e6c
    fi
369e6c
369e6c
	# copy files from envdeps_release (install_release requires envdeps_release explicit)
369e6c
369e6c
	local APPDIR="$INSTALL_RELEASE_PACKET_DIR/$PK_APPDIR_NAME.AppDir"
369e6c
	copy "$ENVDEPS_RELEASE_PACKET_DIR" "$APPDIR/usr" || return 1
369e6c
	cp "$APPDIR/usr/share/icons/default/128x128/apps/papagayong.png" "$APPDIR/" || return 1
369e6c
369e6c
	cd "$INSTALL_RELEASE_PACKET_DIR" || return 1
369e6c
	rm -f "$PK_APPDIR_NAME.tar.gz" || return 1
369e6c
	tar -czf "$PK_APPDIR_NAME.tar.gz" "$PK_APPDIR_NAME.AppDir" || return 1
369e6c
	rm -f "$INSTALL_RELEASE_PACKET_DIR/$PK_APPDIR_NAME.appimage" || return 1
369e6c
	AppImageAssistant "$APPDIR" "$INSTALL_RELEASE_PACKET_DIR/$PK_APPDIR_NAME.appimage" || return 1
369e6c
	
369e6c
	rm -rf "$APPDIR"
369e6c
}