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

e0593e
DEPS="opentoonz-master"
e0593e
DEPS_NATIVE="appimagekit-master"
b0fa99
b0fa99
PK_APPIMAGEKIT_DIR=$PACKET_DIR/appimagekit-master/
b0fa99
PK_APPDIR_NAME="opentoonz"
b0fa99
b0fa99
pkinstall() {
b0fa99
	# copy files from envdeps (install requires envdeps explicit)
b0fa99
	
e7b20d
	local APPDIR="$INSTALL_PACKET_DIR/$PK_APPDIR_NAME.AppDir"
ec0475
	mkdir -p "$APPDIR/usr"
ec0475
	mkdir -p "$APPDIR/usr/bin"
b3d675
	mkdir -p "$APPDIR/usr/lib"
e0593e
	cp --remove-destination "$ENVDEPS_NATIVE_PACKET_DIR/bin/AppRun" "$APPDIR/" || return 1
e0593e
	cp --remove-destination "$ENVDEPS_NATIVE_PACKET_DIR/bin/desktopintegration" "$APPDIR/usr/bin/launch-opentoonz.sh.wrapper" || return 1
abfde6
    cp --remove-destination "$FILES_PACKET_DIR/launch-opentoonz-appimage.sh" "$APPDIR/usr/bin" || return 1
35e704
    cp --remove-destination "$FILES_PACKET_DIR/opentoonz.desktop" "$APPDIR/" || return 1
35e704
    cp --remove-destination "$FILES_PACKET_DIR/opentoonz.png" "$APPDIR/" || return 1
6b8b0f
    mkdir -p "$APPDIR/usr/share/icons/default/128x128/apps/"
6b8b0f
    cp --remove-destination "$FILES_PACKET_DIR/opentoonz.png" "$APPDIR/usr/share/icons/default/128x128/apps/opentoonz.png" || return 1
b0fa99
}
b0fa99
b0fa99
pkinstall_release() {
b0fa99
    if ! copy "$INSTALL_PACKET_DIR" "$INSTALL_RELEASE_PACKET_DIR"; then
b0fa99
        return 1
b0fa99
    fi
b0fa99
ec0475
	# copy files from envdeps_release (install_release requires envdeps_release explicit)
b0fa99
	
b0fa99
	local APPDIR="$INSTALL_RELEASE_PACKET_DIR/$PK_APPDIR_NAME.AppDir"
ebb8fe
	copy "$ENVDEPS_RELEASE_PACKET_DIR" "$APPDIR/usr" || return 1
ebb8fe
	
ebb8fe
	# clean boost
ebb8fe
	rm -f $APPDIR/usr/lib/libboost_* || return 1
ebb8fe
	
ebb8fe
	(cd "$INSTALL_RELEASE_PACKET_DIR" && tar -czf "$PK_APPDIR_NAME.tar.gz" "$PK_APPDIR_NAME.AppDir") || return 1
ebb8fe
	AppImageAssistant "$APPDIR" "$INSTALL_RELEASE_PACKET_DIR/$PK_APPDIR_NAME.appimage" || return 1
b0fa99
	rm -rf "$APPDIR"
b0fa99
}