From 8ef679277f4e6a02f864b165360cd2b151e5a2a8 Mon Sep 17 00:00:00 2001 From: Ivan Mahonin Date: Apr 06 2017 17:30:31 +0000 Subject: synfig examples --- diff --git a/docker-builder-data/build/script/packet/synfigcore-master.sh b/docker-builder-data/build/script/packet/synfigcore-master.sh index 7b592a9..01713f7 100644 --- a/docker-builder-data/build/script/packet/synfigcore-master.sh +++ b/docker-builder-data/build/script/packet/synfigcore-master.sh @@ -104,4 +104,7 @@ pkinstall() { if ! make install; then return 1 fi + + # add examples + cp -r "$BUILD_PACKET_DIR/$PK_DIRNAME/synfig-core/examples" "$INSTALL_PACKET_DIR/share/synfig/" || return 1 } diff --git a/docker-builder-data/build/script/packet/synfigstudio-appimage.sh b/docker-builder-data/build/script/packet/synfigstudio-appimage.sh index 1f102da..9feaa99 100644 --- a/docker-builder-data/build/script/packet/synfigstudio-appimage.sh +++ b/docker-builder-data/build/script/packet/synfigstudio-appimage.sh @@ -4,19 +4,19 @@ PK_APPIMAGEKIT_DIR=$PACKET_DIR/appimagekit-master/ PK_APPDIR_NAME="synfigstudio" pkinstall() { - # copy files from envdeps (install requires envdeps explicit) - - local APPDIR="$INSTALL_PACKET_DIR/$PK_APPDIR_NAME.AppDir" - mkdir -p "$APPDIR/usr" - mkdir -p "$APPDIR/usr/bin" - mkdir -p "$APPDIR/usr/lib" - - cp --remove-destination "$ENVDEPS_PACKET_DIR/bin/AppRun" "$APPDIR/" || return 1 - cp --remove-destination "$ENVDEPS_PACKET_DIR/bin/desktopintegration" "$APPDIR/usr/bin/synfigstudio.wrapper"|| return 1 - - cp --remove-destination "$FILES_PACKET_DIR/synfigstudio.desktop" "$APPDIR/" || return 1 - cp --remove-destination "$FILES_PACKET_DIR/synfigstudio.png" "$APPDIR/" || return 1 - cp --remove-destination "$FILES_PACKET_DIR/launch.sh" "$APPDIR/usr/bin/" || return 1 + # copy files from envdeps (install requires envdeps explicit) + + local APPDIR="$INSTALL_PACKET_DIR/$PK_APPDIR_NAME.AppDir" + mkdir -p "$APPDIR/usr" + mkdir -p "$APPDIR/usr/bin" + mkdir -p "$APPDIR/usr/lib" + + cp --remove-destination "$ENVDEPS_PACKET_DIR/bin/AppRun" "$APPDIR/" || return 1 + cp --remove-destination "$ENVDEPS_PACKET_DIR/bin/desktopintegration" "$APPDIR/usr/bin/synfigstudio.wrapper"|| return 1 + + cp --remove-destination "$FILES_PACKET_DIR/synfigstudio.desktop" "$APPDIR/" || return 1 + cp --remove-destination "$FILES_PACKET_DIR/synfigstudio.png" "$APPDIR/" || return 1 + cp --remove-destination "$FILES_PACKET_DIR/launch.sh" "$APPDIR/usr/bin/" || return 1 } pkinstall_release() { @@ -24,31 +24,35 @@ pkinstall_release() { return 1 fi - # copy files from envdeps_release (install_release requires envdeps_release explicit) - - local APPDIR="$INSTALL_RELEASE_PACKET_DIR/$PK_APPDIR_NAME.AppDir" - copy "$ENVDEPS_RELEASE_PACKET_DIR" "$APPDIR/usr" || return 1 - - # clean bin - #rm -f $APPDIR/usr/bin/* || return 1 - #cp $INSTALL_PACKET_DIR/$PK_APPDIR_NAME.AppDir/usr/bin/* $APPDIR/usr/bin/ || return 1 - #cp $ENVDEPS_RELEASE_PACKET_DIR/bin/melt $APPDIR/usr/bin/ || return 1 - #cp $ENVDEPS_RELEASE_PACKET_DIR/bin/identify $APPDIR/usr/bin/ || return 1 - #cp $ENVDEPS_RELEASE_PACKET_DIR/bin/synfig $APPDIR/usr/bin/ || return 1 - #cp $ENVDEPS_RELEASE_PACKET_DIR/bin/synfigstudio $APPDIR/usr/bin/ || return 1 - - # clean boost - rm -f $APPDIR/usr/lib/libboost_* || return 1 - cp $ENVDEPS_RELEASE_PACKET_DIR/lib/libboost_chrono.* $APPDIR/usr/lib/ || return 1 - cp $ENVDEPS_RELEASE_PACKET_DIR/lib/libboost_filesystem.* $APPDIR/usr/lib/ || return 1 - cp $ENVDEPS_RELEASE_PACKET_DIR/lib/libboost_program_options.* $APPDIR/usr/lib/ || return 1 - cp $ENVDEPS_RELEASE_PACKET_DIR/lib/libboost_system.* $APPDIR/usr/lib/ || return 1 - - cd "$INSTALL_RELEASE_PACKET_DIR" || return 1 - rm -f "$PK_APPDIR_NAME.tar.gz" || return 1 - tar -czf "$PK_APPDIR_NAME.tar.gz" "$PK_APPDIR_NAME.AppDir" || return 1 - rm -f "$INSTALL_RELEASE_PACKET_DIR/$PK_APPDIR_NAME.appimage" || return 1 - AppImageAssistant "$APPDIR" "$INSTALL_RELEASE_PACKET_DIR/$PK_APPDIR_NAME.appimage" || return 1 - - rm -rf "$APPDIR" + # copy files from envdeps_release (install_release requires envdeps_release explicit) + + local APPDIR="$INSTALL_RELEASE_PACKET_DIR/$PK_APPDIR_NAME.AppDir" + copy "$ENVDEPS_RELEASE_PACKET_DIR" "$APPDIR/usr" || return 1 + + # clean bin + #rm -f "$APPDIR/usr/bin/"* || return 1 + #cp "$INSTALL_PACKET_DIR/$PK_APPDIR_NAME.AppDir/usr/bin/"* "$APPDIR/usr/bin/" || return 1 + #cp "$ENVDEPS_RELEASE_PACKET_DIR/bin/melt" "$APPDIR/usr/bin/" || return 1 + #cp "$ENVDEPS_RELEASE_PACKET_DIR/bin/identify" "$APPDIR/usr/bin/" || return 1 + #cp "$ENVDEPS_RELEASE_PACKET_DIR/bin/ffmpeg" "$APPDIR/usr/bin/" || return 1 + #cp "$ENVDEPS_RELEASE_PACKET_DIR/bin/synfig" "$APPDIR/usr/bin/" || return 1 + #cp "$ENVDEPS_RELEASE_PACKET_DIR/bin/synfigstudio" "$APPDIR/usr/bin/" || return 1 + + # clean boost + rm -f "$APPDIR/usr/lib/libboost_"* || return 1 + cp "$ENVDEPS_RELEASE_PACKET_DIR/lib/libboost_chrono."* "$APPDIR/usr/lib/" || return 1 + cp "$ENVDEPS_RELEASE_PACKET_DIR/lib/libboost_filesystem."* "$APPDIR/usr/lib/" || return 1 + cp "$ENVDEPS_RELEASE_PACKET_DIR/lib/libboost_program_options."* "$APPDIR/usr/lib/" || return 1 + cp "$ENVDEPS_RELEASE_PACKET_DIR/lib/libboost_system."* "$APPDIR/usr/lib/" || return 1 + + # clean examples + rm -rf "$APPDIR/share/synfig/examples" || return 1 + + cd "$INSTALL_RELEASE_PACKET_DIR" || return 1 + rm -f "$PK_APPDIR_NAME.tar.gz" || return 1 + tar -czf "$PK_APPDIR_NAME.tar.gz" "$PK_APPDIR_NAME.AppDir" || return 1 + rm -f "$INSTALL_RELEASE_PACKET_DIR/$PK_APPDIR_NAME.appimage" || return 1 + AppImageAssistant "$APPDIR" "$INSTALL_RELEASE_PACKET_DIR/$PK_APPDIR_NAME.appimage" || return 1 + + rm -rf "$APPDIR" }