diff --git a/build-synfigstudio.sh b/build-synfigstudio.sh index ab56097..42026ab 100755 --- a/build-synfigstudio.sh +++ b/build-synfigstudio.sh @@ -57,5 +57,5 @@ run_nsis() { run_appimage linux 64 run_appimage linux 32 -#run_nsis win 64 -#run_nsis win 32 +run_nsis win 64 +run_nsis win 32 diff --git a/docker-builder-data/build/script/packet/synfigstudio-master.files/loaders.cache b/docker-builder-data/build/script/packet/synfigstudio-master.files/loaders.cache new file mode 100644 index 0000000..6983509 --- /dev/null +++ b/docker-builder-data/build/script/packet/synfigstudio-master.files/loaders.cache @@ -0,0 +1,118 @@ +# GdkPixbuf Image Loader Modules file +# Automatically generated file, do not edit +# Created by gdk-pixbuf-query-loaders.exe from gdk-pixbuf-2.36.0 +# +# LoaderDir = ../lib/gdk-pixbuf-2.0/2.10.0/loaders/ +# +"../lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-ani.dll" +"ani" 4 "gdk-pixbuf" "Windows animated cursor" "LGPL" +"application/x-navi-animation" "" +"ani" "" +"RIFF ACON" " xxxx " 100 + +"../lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-gdip-bmp.dll" +"bmp" 5 "gdk-pixbuf" "BMP" "LGPL" +"image/bmp" "image/x-bmp" "image/x-MS-bmp" "" +"bmp" "" +"BM" "" 100 + +"../lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-gdip-emf.dll" +"emf" 4 "gdk-pixbuf" "EMF" "LGPL" +"application/emf" "application/x-emf" "image/x-emf" "image/x-mgx-emf" "" +"emf" "" +"\001" "" 100 + +"../lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-gdip-gif.dll" +"gif" 5 "gdk-pixbuf" "GIF" "LGPL" +"image/gif" "" +"gif" "" +"GIF8" "" 100 + +"../lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-gdip-ico.dll" +"ico" 4 "gdk-pixbuf" "Windows icon" "LGPL" +"image/x-icon" "image/x-ico" "" +"ico" "cur" "" +" \001 " "zz znz" 100 +" \002 " "zz znz" 100 + +"../lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-gdip-jpeg.dll" +"jpeg" 5 "gdk-pixbuf" "JPEG" "LGPL" +"image/jpeg" "" +"jpeg" "jpe" "jpg" "" +"\377\330" "" 100 + +"../lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-gdip-tiff.dll" +"tiff" 5 "gdk-pixbuf" "TIFF" "LGPL" +"image/tiff" "" +"tiff" "tif" "" +"MM *" " z " 100 +"II* " " z" 100 + +"../lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-gdip-wmf.dll" +"wmf" 4 "gdk-pixbuf" "WMF" "LGPL" +"image/x-wmf" "" +"wmf" "apm" "" +"\327\315\306\232" "" 100 +"\001" "" 100 + +"../lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-icns.dll" +"icns" 4 "gdk-pixbuf" "MacOS X icon" "GPL" +"image/x-icns" "" +"icns" "" +"icns" "" 100 + +"../lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-png.dll" +"png" 5 "gdk-pixbuf" "PNG" "LGPL" +"image/png" "" +"png" "" +"\211PNG\r\n\032\n" "" 100 + +"../lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-pnm.dll" +"pnm" 4 "gdk-pixbuf" "PNM/PBM/PGM/PPM" "LGPL" +"image/x-portable-anymap" "image/x-portable-bitmap" "image/x-portable-graymap" "image/x-portable-pixmap" "" +"pnm" "pbm" "pgm" "ppm" "" +"P1" "" 100 +"P2" "" 100 +"P3" "" 100 +"P4" "" 100 +"P5" "" 100 +"P6" "" 100 + +"../lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-qtif.dll" +"qtif" 4 "gdk-pixbuf" "QuickTime" "LGPL" +"image/x-quicktime" "image/qtif" "" +"qtif" "qif" "" +"abcdidsc" "xxxx " 100 +"abcdidat" "xxxx " 100 + +"../lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.dll" +"svg" 6 "gdk-pixbuf" "Scalable Vector Graphics" "LGPL" +"image/svg+xml" "image/svg" "image/svg-xml" "image/vnd.adobe.svg+xml" "text/xml-svg" "image/svg+xml-compressed" "" +"svg" "svgz" "svg.gz" "" +" > "$TARGET_INSTALL" + foreachfile "$FILE" pkfunc_register_file + echo "RMDir \"\$INSTDIR\\${WIN_FILE:2}\"" >> "$TARGET_UNINSTALL" + else + echo "File \"/oname=${WIN_FILE:2}\" \"${WIN_FILE:2}\"" >> "$TARGET_INSTALL" + echo "Delete \"\$INSTDIR\\${WIN_FILE:2}\"" >> "$TARGET_UNINSTALL" + fi + fi +} + +pkinstall_release() { + local LOCAL_INSTALLER_DIR="$INSTALL_RELEASE_PACKET_DIR/installer" + local LOCAL_CACHE_DIR="$INSTALL_RELEASE_PACKET_DIR/cache" + + # create temporary dir + rm -rf "$LOCAL_INSTALLER_DIR" + mkdir -p "$LOCAL_INSTALLER_DIR" + cd "$LOCAL_INSTALLER_DIR" || return 1 + + # copy files + copy "$ENVDEPS_RELEASE_PACKET_DIR" "./" || return 1 + + # move examples + mv "./share/synfig/examples" "./" + + # download portable python + mkdir -p "$LOCAL_CACHE_DIR" + cd "$LOCAL_CACHE_DIR" || return 1 + wget -c --no-check-certificate \ + "https://download.tuxfamily.org/synfig/packages/sources/portable-python-3.2.5.1.zip" \ + -O "portable-python-3.2.5.1.zip" || return 1 + rm -rf "python" + unzip "portable-python-3.2.5.1.zip" || return 1 + mv "python" "$LOCAL_INSTALLER_DIR/" || return 1 + cd "$LOCAL_INSTALLER_DIR" || return 1 + + # get version + local LOCAL_VERSION_FULL=$(cat $ENVDEPS_RELEASE_PACKET_DIR/version-synfigstudio-*) + local LOCAL_VERSION=$(echo "$LOCAL_VERSION_FULL" | cut -d - -f 1) + local LOCAL_VERSION2=$(echo "$LOCAL_VERSION" | cut -d . -f -2) + local LOCAL_COMMIT=$(echo "$LOCAL_VERSION_FULL" | cut -d - -f 2) + + # create file lists + echo "create file lists" + touch files-install.nsh + touch files-ffmpeg-install.nsh + touch files-examples-install.nsh + touch files-uninstall.nsh + pkfunc_register_file . + echo "created" + + # copy NSIS configuration + cp "$FILES_PACKET_DIR/synfigstudio.nsi" "./" || return 1 + + # create config.nsh (see opentoons.nsi) + cat > config.nsh << EOF +!define PK_NAME "synfigstudio" +!define PK_NAME_FULL "Synfig Studio" +!define PK_ARCH "$ARCH" +!define PK_VERSION "${LOCAL_VERSION2}" +!define PK_VERSION_FULL "${LOCAL_VERSION}-${LOCAL_COMMIT:0:5}" +!define PK_EXECUTABLE "bin\\synfigstudio.exe" +EOF + + # let's go + makensis synfigstudio.nsi || return 1 + + # remove temporary dir + cd "$INSTALL_RELEASE_PACKET_DIR" || return 1 + mv "$LOCAL_INSTALLER_DIR"/*.exe ./ || return 1 + rm -rf "$LOCAL_INSTALLER_DIR" +}